|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41488 corrupted php build when use --with-snmp option
Submitted: 2007-05-24 12:59 UTC Modified: 2007-06-01 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: didier dot broca at bet-scott dot com Assigned:
Status: No Feedback Package: SNMP related
PHP Version: 5.2.2 OS: RHEL4
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.
Bug Type:
From: didier dot broca at bet-scott dot com
New email:
PHP Version: OS:


 [2007-05-24 12:59 UTC] didier dot broca at bet-scott dot com
I have a segmentation fault when I compile with the snmp support (--with-snmp).
I follow advices of the extension help (recompile net-snmp with #define NO_ZEROLENGTH_COMMUNITY 1).
According to gbd it is a error but snmp command line works fine.

sorry if I submit it twice...

Reproduce code:
./configure --with-apxs2=/usr/sbin/apxs --with-mysqli --with-curl --with-snmp
make test

Actual result:
[root@server2 php-5.2.2]#./configure --with-apxs2=/usr/sbin/apxs --with-mysqli --with-curl --with-snmp
[root@server2 php-5.2.2]#make test
Build complete.
Don't forget to run 'make test'.

/bin/sh: line 1: 18403 Segmentation fault      TEST_PHP_EXECUTABLE=/root/didier/php/php-5.2.2/sapi/cli/php TEST_PHP_SRCDIR=/root/didier/php/php-5.2.2 CC="gcc" /root/didier/php/php-5.2.2/sapi/cli/php -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' /root/didier/php/php-5.2.2/run-tests.php
make: [test] Error 139 (ignored)
You have new mail in /var/spool/mail/root
[root@server2 php-5.2.2]# /root/didier/php/php-5.2.2/sapi/cli/php
Segmentation fault
[root@server2 php-5.2.2]# man php
You have new mail in /var/spool/mail/root
[root@server2 php-5.2.2]# /root/didier/php/php-5.2.2/sapi/cli/php -i
Segmentation fault
[root@server2 php-5.2.2]# /root/didier/php/php-5.2.2/sapi/cli/php -version
Segmentation fault

[root@server2 php]# gdb /root/didier/php/php-5.2.2/sapi/cli/php
GNU gdb Red Hat Linux (
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/".

(gdb) run -X
Starting program: /root/didier/php/php-5.2.2/sapi/cli/php -X
[Thread debugging using libthread_db enabled]
[New Thread -1208067328 (LWP 16302)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208067328 (LWP 16302)]
0x001942a9 in EVP_DigestInit_ex () from /lib/
(gdb) quit
The program is running.  Exit anyway? (y or n) y

[root@server2 ~]# ll /lib/libcrypt*
-rwxr-xr-x  1 root root  27191 Feb  9  2006 /lib/
-rwxr-xr-x  1 root root 940992 Jan 13  2006 /lib/
lrwxrwxrwx  1 root root     19 Apr 24  2006 /lib/ ->
lrwxrwxrwx  1 root root     17 Apr 24  2006 /lib/ ->
[root@server2 ~]# rpm -q -f /lib/
[root@server2 ~]# rpm -q net-snmp


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-24 21:47 UTC]
Make sure you're using exactly same openssl libs with everything: apache, php, curl, snmp.

 [2007-06-01 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 13:01:30 2024 UTC