php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gerald at ethereal dot com
New email:
PHP Version: OS:

 

 [2001-12-12 13:01 UTC] gerald at ethereal dot com
As described in https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=57421
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

http://www.ethereal.com/lists/ethereal-dev/200112/msg00148.html
http://www.ethereal.com/lists/ethereal-dev/200112/msg00150.html
http://www.ethereal.com/lists/ethereal-dev/200112/msg00153.html

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-18 06:13 UTC] derick@php.net
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
http://bugs.php.net/bugs-generating-backtrace.php

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] eru@php.net
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.
Closing.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 03:01:29 2024 UTC