From:             
Operating system: Darwin Kernel Version 10.8.0
PHP version:      5.4.0RC1
Package:          Sockets related
Bug Type:         Bug
Bug description:Test ext/sockets/socket_sentto_recvfrom_unix hangs and cannot 
be killed

Description:
------------
During the make test the test ext/sockets/socket_sentto_recvfrom_unix hangs
right after the third warning (all three are expected). It cannot be killed
by either the Activity Monitor or sudo kill -9, instead the system has to
be restarted to remove these php processes from the output of ps -A.

I have attempted to run it with GDB, but that also results in a hang. From
adding output to the test itself, I can conclude that the error is caused
by the call to socket_sendto($socket, $msg, $len, 0, $address) at line 19
of the test file (php line).

Configure line used:

./configure --disable-short-tags --enable-bcmath --enable-calendar
--enable-cli --enable-exif --enable-ftp --enable-fpm --enable-gd-native-ttf
--enable-inline-optimization --enable-mbregex --enable-mbstring
--enable-pcntl --enable-shmop --enable-soap --enable-sockets
--enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-zip
--infodir=/usr/share/info --mandir=/usr/share/man --prefix=/usr
--sysconfdir=/private/etc --with-bz2=/opt/local
--with-config-file-path=/etc --with-curl=/opt/local --with-gd
--with-iconv=/opt/local --with-jpeg-dir=/opt/local
--with-kerberos=/opt/local --with-ldap-sasl=/opt/local
--with-ldap=/opt/local --with-libxml-dir=/opt/local --with-mcrypt
--with-mysql-sock=/var/mysql/mysql.sock --with-mysql=mysqlnd
--with-mysqli=mysqlnd --with-openssl=/opt/local
--with-pcre-regex=/opt/local --with-pdo-mysql=mysqlnd
--with-png-dir=/opt/local --with-xmlrpc --with-xsl=/opt/local
--with-zlib=/opt/local

I also use MacPorts to maintain all the stuff installed in /opt/local

Test script:
---------------
ext/sockets/tests/socket_sentto_recvfrom_unix.phpt

Expected result:
----------------
Warning: socket_create(): Unable to create socket [%d]: Protocol not
supported in %s on line %d

Warning: socket_recvfrom(): unable to recvfrom [%d]: Resource temporarily
unavailable in %s on line %d

Warning: socket_sendto() expects at least 5 parameters, 4 given in %s on
line %d
bool(false)
Received Ping!

Actual result:
--------------
Warning: socket_create(): Unable to create socket [43]: Protocol not
supported in
/Users/m4rw3r/Downloads/php-5.4.0RC1/php-5.4.0RC1/ext/sockets/tests/socket_sentto_recvfrom_unix.php
on line 2

Warning: socket_recvfrom(): unable to recvfrom [35]: Resource temporarily
unavailable in
/Users/m4rw3r/Downloads/php-5.4.0RC1/php-5.4.0RC1/ext/sockets/tests/socket_sentto_recvfrom_unix.php
on line 10

Warning: socket_sendto() expects at least 5 parameters, 4 given in
/Users/m4rw3r/Downloads/php-5.4.0RC1/php-5.4.0RC1/ext/sockets/tests/socket_sentto_recvfrom_unix.php
on line 18

 ** ERROR: process timed out **

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60260&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60260&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60260&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60260&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60260&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60260&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60260&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60260&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60260&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60260&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60260&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60260&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60260&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60260&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60260&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60260&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60260&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60260&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60260&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60260&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60260&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60260&r=mysqlcfg

Reply via email to