Re: Segmentation fault (core dumped) when using pthreads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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




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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux