Re: Segmentation fault (core dumped) when using pthreads

From: Date: Fri, 14 Aug 2015 21:56:59 +0000
Subject: Re: Segmentation fault (core dumped) when using pthreads
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-325043@lists.php.net to get a copy of this message
On 14.08.2015 at 17:03, Maechler Philippe wrote: > I may have found THE or a critical line, but have no idea why this would > lead to a core dump and no idea how to solve this > > On 12.08.2015 11:05, Maechler Philippe wrote: > [snip] >> ----------------- >> class DataCollector extends Thread { > [snip] > >> public function run() { > [snip] >> # >> # get SNMP Data and process host->interfaces >> #------------------------------------------- >> $snmpdata_if = @snmp2_real_walk( >> $this->snmpHost->ip, >> $this->snmpHost->community, >> "interfaces.ifTable.ifEntry", >> SNMP_TIMEOUT, >> SNMP_RETRIES); > .... > > When I remove the @ in front of snmp2_real_walk I'll get a few errors like: > > PHP Warning: snmp2_real_walk(): Fatal error: in > scripts/DataCollector.php on line 89 > Warning: snmp2_real_walk(): Fatal error: in scripts/DataCollector.php > on line 89 > > But i also get Messages like > Warning: snmp2_real_walk(): Fatal error: in scripts/DataCollector.php > on line 89 > PHP Warning: snmp2_real_walk(): Fatal error: Failure in recvfrom (Bad > file descriptor) (Resource temporarily unavailable) in > scripts/DataCollector.php on line 89 I suggest to file a bug report on <https://bugs.php.net/>, because a PHP warning hinting to a fatal error looks like a bug, obviously. -- Christoph M. Becker

« previous php.general (#325043) next »