php.net |  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
Votes:1
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.
Password:
Status:
Package:
Bug Type:
Summary:
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
Description:
------------
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 libcrypto.so 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 (6.3.0.0-1.96rh)
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/libthread_db.so.1".

(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/libcrypto.so.4
(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/libcrypt-2.3.4.so
-rwxr-xr-x  1 root root 940992 Jan 13  2006 /lib/libcrypto.so.0.9.7a
lrwxrwxrwx  1 root root     19 Apr 24  2006 /lib/libcrypto.so.4 -> libcrypto.so.0.9.7a
lrwxrwxrwx  1 root root     17 Apr 24  2006 /lib/libcrypt.so.1 -> libcrypt-2.3.4.so
[root@server2 ~]# rpm -q -f /lib/libcrypto.so.0.9.7a
openssl-0.9.7a-43.16
[root@server2 ~]# rpm -q net-snmp
net-snmp-5.1.2-11.EL4.10



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-24 21:47 UTC] sniper@php.net
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 Apr 19 15:01:28 2024 UTC