Re: Segmentation fault (core dumped) when using pthreads
| From: | Maechler Philippe | Date: | Fri, 14 Aug 2015 15:03:30 +0000 |
| Subject: | Re: Segmentation fault (core dumped) when using pthreads | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-325042@lists.php.net to get a copy of this message | ||
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