php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28297 (SNMP) make install or make test segfault
Submitted: 2004-05-06 13:55 UTC Modified: 2004-11-05 16:03 UTC
From: tony at unihost dot net Assigned:
Status: Closed Package: *Compile Issues
PHP Version: 5.0.0RC2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tony at unihost dot net
New email:
PHP Version: OS:

 

 [2004-05-06 13:55 UTC] tony at unihost dot net
Description:
------------
After a successful compile of RC2 (with a few warnings) running 'make test' or make install segfaults with an 'Error 139'

Bear with me, I'm not really a coder, so I've tried to include any needed information. I'll gladly provide any more if you need it.   I've compiled with --enable-debug and the backtrace in this report is from the core file from 'make test'.

Like I said, I'm not sure how helpful this is.  If you need more information, I'll be happy to provide it.  I couldn't find any other bugs matching this in the DB.

Cheers

T.



Reproduce code:
---------------
I've compiled RC2 with the following config options...

./configure --prefix=/usr/local/php5 --with-mysql=/usr --with-pgsql --enable-fastcgi --with-gd --with-openssl --with-ncurses \
--with-zlib --program-prefix=php5_ --enable-trans-sid --enable-sockets --with-xslt --with-mcrypt --with-ldap \
--enable-magic-quotes --with-dom --with-bz2 --with-curl --with-pdflib --with-cpdflib --with-snmp \
--enable-wddx --with-pdf --enable-gd-native-ttf --with-java --with-xpm-dir=/usr/X11R6/lib \
--with-png-dir=/usr/lib --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-tiff-dir=/usr/lib \
--enable-bcmath --with-pear --enable-debug

Core was generated by `/home/tony/src/php-5.0.0RC2/sapi/cli/php -d open_basedir= -d safe_mode=0 -d out'



Actual result:
--------------
Additionally, I've run the following command:

(gdb) bt
#0  0x4009e5eb in RSA_sign () from /usr/local/pgsql/lib/libpq.so.3
#1  0xbfffe250 in ?? ()
#2  0x4010e040 in md2_md () from /usr/local/pgsql/lib/libpq.so.3
#3  0x00000001 in ?? ()
#4  0x4009e5ac in RSA_sign () from /usr/local/pgsql/lib/libpq.so.3
#5  0x00000001 in ?? ()
#6  0x4065c000 in ?? ()
#7  0x4065c19c in ?? ()
#8  0xbfffe200 in ?? ()
#9  0x4000c6f1 in fixup (l=Variable "l" is not available.
) at dl-runtime.c:102
Previous frame inner to this frame (corrupt stack?)

Then followed by:

(gdb) frame 9
#9  0x4000c6f1 in fixup (l=Variable "l" is not available.
) at dl-runtime.c:102
102     dl-runtime.c: No such file or directory.
        in dl-runtime.c


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-06 19:28 UTC] magnus@php.net
I'm pretty sure it is the postgresql libs crashing. Remove --with-pgsql and try again.
You can remove --with-java too, it's not distributed with the man PHP distribution anymore.

If it still happends without postgresql support, reopen this report.

I'm pretty sure it's the postgresql libs crashing. Recompile postgresql with debugging turned on and submit a bug report to them or your distribution vendor.
 [2004-05-17 11:54 UTC] tony at unihost dot net
After much playing around, adding debugging to the PostgreSQL libs showed nothing of interest, however disabling SNMP support allowed error free compile and segfault free test and install.  I've had problems with SNMP in PHP for as long as I can remember.  

So although I have no valid technical feedback, I suggest the issue is with SNMP code in PHP since this is the only change from the previous segfaulting compile.  Whether you wish investigate further or simply close this one down is your call.

Cheers

T.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 18:01:35 2024 UTC