Bug #60260 [Fbk->NoF]: Test ext/sockets/socket_sentto_recvfrom_unix hangs and cannot be killed
Edit report at https://bugs.php.net/bug.php?id=60260&edit=1
ID: 60260
Updated by: php-bugs@lists.php.net
Reported by: m4rw3r at gmail dot com
Summary: Test ext/sockets/socket_sentto_recvfrom_unix hangs and
cannot be killed
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Sockets related
Operating System: Darwin Kernel Version 10.8.0
PHP Version: 5.4.0RC1
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2021-01-08 11:28:04] cmb@php.net
Is that still an issue with any of the actively supported PHP
versions[1]?
[1] <https://www.php.net/supported-versions.php>
------------------------------------------------------------------------
[2011-11-11 11:10:35] m4rw3r at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=60260&edit=1
Thread (3 messages)