#41488 [NEW]: corrupted php build when use --with-snmp option
| From: | didier dot broca at bet-scott dot com | Date: | Thu, 24 May 2007 12:59:35 +0000 |
| Subject: | #41488 [NEW]: corrupted php build when use --with-snmp option | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-112993@lists.php.net to get a copy of this message | ||
From: didier dot broca at bet-scott dot com
Operating system: RHEL4
PHP version: 5.2.2
PHP Bug Type: SNMP related
Bug description: corrupted php build when use --with-snmp option
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 bug report at http://bugs.php.net/?id=41488&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41488&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41488&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41488&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41488&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41488&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41488&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41488&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41488&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41488&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41488&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41488&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41488&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41488&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41488&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41488&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41488&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41488&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41488&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41488&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41488&r=mysqlcfg