|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-07 21:03 UTC] kalowsky@php.net
[2002-09-08 08:34 UTC] info at proustmedia dot de
[2002-09-24 14:31 UTC] jason@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 10:00:01 2025 UTC |
I cannot use the socket_create function on my Alpha, I only get a segmentation fault. I already noticed this problem with PHP4.2.2. $ cat socket_create.php <?php $socket = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP); ?> $ build/php -q socket_create.php php(25979): unaligned trap at 00000001201c0acc: 000000011fffe354 27 10 php(25979): unaligned trap at 00000001201c0acc: 000000011fffe35c 27 10 Erreur de segmentation [segmentation fault] $ gdb build/php GNU gdb 19990928 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "alphaev56-unknown-linux-gnu"... (gdb) run -q socket_create.php Starting program: /home/fric/make/php-standalone/build/php -q socket_create.php Program received signal SIGSEGV, Segmentation fault. 0x1200c5478 in zif_socket_create (ht=3, return_value=0x1203cfb90, this_ptr=0x0, return_value_used=1) at /home/fric/make/php-standalone/php-4.2.3/ext/sockets/sockets.c:888 888 php_sock->bsd_socket = socket(arg1, arg2, arg3); (gdb) bt #0 0x1200c5478 in zif_socket_create (ht=3, return_value=0x1203cfb90, this_ptr=0x0, return_value_used=1) at /home/fric/make/php-standalone/php-4.2.3/ext/sockets/sockets.c:888 #1 0x1201ffcd4 in execute (op_array=0x1203cfcc0) at ../../php-4.2.3/Zend/zend_execute.c:1598 #2 0x1201bf9a0 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at ../../php-4.2.3/Zend/zend.c:812 #3 0x12002a524 in php_execute_script (primary_file=0x11ffff8a8) at /home/fric/make/php-standalone/php-4.2.3/main/main.c:1383 #4 0x120025838 in main (argc=3, argv=0x11ffffaf8) at /home/fric/make/php-standalone/php-4.2.3/sapi/cgi/cgi_main.c:778 (gdb) My configuration was: ../php-4.2.3/configure \ --with-zlib \ --enable-calendar \ --enable-dbase \ --enable-ftp \ --with-gd=/usr \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --enable-gd-native-ttf \ --with-freetype-dir=/usr/local \ --with-mysql=/usr \ --with-pdflib \ --enable-exif \ --enable-sockets \ --enable-pcntl \ --enable-debug My system is a SX 164 Alpha running GNU/Linux Debian 2.2r3 with a 2.2.19 patched kernel for ext fs 3 support. $ uname -a Linux alpha 2.2.19ext3 #5 Sat May 25 16:33:30 CEST 2002 alpha unknown Please let me know if I can do something to help fix this problem. With best regards, Fabrice Haberer-Proust Proust Media Kerngasse 3/1 79576 Weil am Rhein Germany