Web lists-archives.com

[PHP] Re: Segmentation fault (core dumped) when using pthreads




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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php