Bug #60260 [Opn->Fbk]: Test ext/sockets/socket_sentto_recvfrom_unix hangs and cannot be killed

From: Date: Fri, 08 Jan 2021 11:28:04 +0000
Subject: Bug #60260 [Opn->Fbk]: Test ext/sockets/socket_sentto_recvfrom_unix hangs and cannot be killed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231444@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60260&edit=1 ID: 60260 Updated by: cmb@php.net Reported by: m4rw3r at gmail dot com Summary: Test ext/sockets/socket_sentto_recvfrom_unix hangs and cannot be killed -Status: Open +Status: Feedback Type: Bug Package: Sockets related Operating System: Darwin Kernel Version 10.8.0 PHP Version: 5.4.0RC1 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Is that still an issue with any of the actively supported PHP versions[1]? [1] <https://www.php.net/supported-versions.php> Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#231444) next »