Quantcast
Channel: Serverphorums.com
Viewing all articles
Browse latest Browse all 23908

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

$
0
0
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

Viewing all articles
Browse latest Browse all 23908

Trending Articles