Bug #73937 [Opn->Fbk]: x86_64, kernel-4.9.1-gentoo

From: Date: Wed, 13 Jan 2021 18:24:27 +0000
Subject: Bug #73937 [Opn->Fbk]: x86_64, kernel-4.9.1-gentoo
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231544@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73937&edit=1 ID: 73937 Updated by: cmb@php.net Reported by: vadim dot gunter200 at outlook dot com Summary: x86_64, kernel-4.9.1-gentoo -Status: Open +Status: Feedback Type: Bug -Package: SNMP related +Package: opcache Operating System: Gentoo PHP Version: 7.0.14 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Do you still get the segfault with any of the actively supported PHP versions[1]? If so, please provide a backtrace with debug symbols[2]? Also, this looks more like an OPcache issue. [1] <https://www.php.net/supported-versions.php> [2] <https://bugs.php.net/bugs-generating-backtrace.php> Previous Comments: ------------------------------------------------------------------------ [2017-01-14 20:16:55] vadim dot gunter200 at outlook dot com Description: ------------ segmentation the error is in that function $sessionout = new SNMP(SNMP::VERSION_2C, $ip_addr_comm, "public"); $aout = @$sessionout->walk(array("ifOutOctets")); Similarly, this function snmpwalk($ip_addr_comm, "public", "ifOutOctets"); Test script: --------------- <?php class My extends Thread{ public function __construct($comm_ip){ $this->comm_ip=$comm_ip; } function run(){ $ip_addr_comm=$this->comm_ip; $sessionout = new SNMP(SNMP::VERSION_2C, $ip_addr_comm, "public"); $aout = @$sessionout->walk(array("ifOutOctets")); if ($sessionout->getErrno() == SNMP::ERRNO_TIMEOUT) { echo "234";}; $sessionout->close(); }} $row = array('ipaddres1' => '172.16.12.6','ipaddres2' => '172.16.12.5','ipaddres3' => '172.16.12.4','ipaddres4' => '172.16.12.7','ipaddres5' => '172.16.12.3','ipaddres6' => '172.16.11.3','ipaddres6' => '172.16.11.3'); foreach ($row as $d) { $comm_ip = $d; $pool[] = new My($comm_ip); } foreach($pool as $worker){ $worker->start(); } foreach($pool as $worker){ $worker->join(); } Expected result: ---------------- Segmentation fault Actual result: -------------- 7f7f417a0000-7f7f419a0000[7163]: ---p 00010000 08:03 1679689 /usr/lib64/php7.0/lib/extensions/no-debug-zts-20151012/ssh2.so 7f7f419a0000-7f7f419a1000 r--p 00010000 08:03 1679689 /usr/lib64/php7.0/lib/extensions/no-debug-zts-20151012/ssh2.so 7f7f419a1000-7f7f419a2000 rw-p 00011000 08:03 1679689 /usr/lib64/php7.0/lib/extensions/no-debug-zts-20151012/ssh2.so 7f7f419a2000-7f7f419a8000 r-xp 00000000 08:03 3039937 /lib64/librt-2.23.so 7f7f419a8000-7f7f41ba8000 ---p 00006000 08:03 3039937 /lib64/librt-2.23.so 7f7f41ba8000-7f7f41ba9000 r--p 00006000 08:03 3039937 /lib64/librt-2.23.so 7f7f41ba9000-7f7f41baa000 rw-p 00007000 08:03 3039937 /lib64/librt-2.23.so 7f7f41baa000-7f7f41bb2000 r-xp 00000000 08:03 1679690 /usr/lib64/php7.0/lib/extensions/no-debug-zts-20151012/sync.so 7f7f41bb2000-7f7f41db2000 ---p 00008000 08:03 167969 Jan 17 03:42:27 localhost php[7163]: Jan 17 03:42:27 localhost php[7163]: Jan 17 03:42:27 localhost php[7163]: Jan 17 03:42:27 localhost php(execute_ex+0x1b)[7163]: Jan 17 03:42:27 localhost /usr/lib64/php7.0/lib/extensions/no-debug-zts-20151012/pthreads.so(+0x8da5)[7163]: Jan 17 03:42:27 localhost php(zend_call_function+0x99b)[7163]: Jan 17 03:42:27 localhost /usr/lib64/php7.0/lib/extensions/no-debug-zts-20151012/pthreads.so(+0x13205)[7163]: Jan 17 03:42:27 localhost /usr/lib64/php7.0/lib/extensions/no-debug-zts-20151012/pthreads.so(+0x13307)[7163]: Jan 17 03:42:27 localhost /usr/lib64/php7.0/lib64/opcache.so 7f7f41ffd000-7f7f421fd000[7163]: ---p 00031000 08:03 3261137 /usr/lib64/php7.0/lib64/opcache.so 7f7f421fd000-7f7f421fe000 r--p 00031000 08:03 3261137 /usr/lib64/php7.0/lib64/opcache.so 7f7f421fe000-7f7f421ff000 rw-p 00032000 08:03 3261137 /usr/lib64/php7.0/lib64/opcache.so 7f7f421ff000-7f7f42400000 rw-p 00000000 00:00 0 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73937&edit=1

« previous php.bugs (#231544) next »