#41488 [Opn->Fbk]: corrupted php build when use --with-snmp option
| From: | sniper@php.net | Date: | Thu, 24 May 2007 21:47:33 +0000 |
| Subject: | #41488 [Opn->Fbk]: corrupted php build when use --with-snmp option | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113008@lists.php.net to get a copy of this message | ||
ID: 41488
Updated by: sniper@php.net
Reported By: didier dot broca at bet-scott dot com
-Status: Open
+Status: Feedback
Bug Type: SNMP related
Operating System: RHEL4
PHP Version: 5.2.2
New Comment:
Make sure you're using exactly same openssl libs with everything:
apache, php, curl, snmp.
Previous Comments:
------------------------------------------------------------------------
[2007-05-24 12:59:35] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41488&edit=1