|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14462 Red Hat-modified ucd-snmp packages cause php segmentation faults
Submitted: 2001-12-12 13:01 UTC Modified: 2002-07-04 18:11 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: gerald at ethereal dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.1.0 OS: Red Hat Linux 6.2 through 7.2
Private report: No CVE-ID: None
 [2001-12-12 13:01 UTC] gerald at ethereal dot com
As described in
recent versions (after ~August 2001) of the ucd-snmp packages redefine sprint_objid and sprint_value at the API and ABI level.  PHP's SNMP module calls both of these functions.

After building PHP 4.1.0 with SNMP support on a stock Red Hat 7.2 system, the following script dumps core:

  $sd = snmpwalk("<device address>", "public", ".iso");

  echo $sd;

This affects all systems running Red Hat Linux 6.2 through 7.1 with updated ucd-snmp packages applied, along with stock 7.2 systems.  Someone on the ethereal-dev mailing list reported that SuSE is affected as well.  SNMP support must be compiled into PHP for it to be affected, of course.

Related postings on the ethereal-dev list can be found at


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-18 06:13 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

 [2002-07-04 18:11 UTC]
Tested on a 7.3 RH (ucd-snmp-4.2.5-7.73.0) with 4.3.0-dev with Apache 1.3.26. Works like a charm with SAPI and CLI, no coredumps occured.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 18:01:34 2024 UTC