php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19048 Segmentation fault $HTTPD -DSSL
Submitted: 2002-08-22 10:40 UTC Modified: 2002-09-21 02:03 UTC
From: pescobar at ns dot ulat dot ac dot pa Assigned:
Status: No Feedback Package: Sybase-ct (ctlib) related
PHP Version: 4.2.2 OS: Red Hat 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
12 + 14 = ?
Subscribe to this entry?

 
 [2002-08-22 10:40 UTC] pescobar at ns dot ulat dot ac dot pa
./configure --with-pgsql=/usr/local/pgsql --enable-track-vars --disable-debug -with-apxs=/usr/local/apache/bin/apxs --enable-versioning --with-config-file-path=/usr/php4/lib --enable-libgcc --with-imap=/usr/local/lib --enable-ftp  --with-mysql --with-kerberos --with-openssl=../openssl-0.9.6g/ --with-sybase-ct=/opt/sybase-11.9.2/ --with-pdflib=/usr/local --with-pdfdir=../pdflib-4.0.3/bind/c  --with-kerberos --with-imap-ssl --with-ldap  --enable-sockets

PHP compile good, but start apache send this message:
# /usr/local/apache/bin/apachectl startssl
/usr/local/apache/bin/apachectl: line 184: 31541 Segmentation fault      $HTTPD -DSSL
/usr/local/apache/bin/apachectl startssl: httpd could not be started

I use:
php-4.2.2
apache-1.3.26
openssl-0.9.6g
imap-2002.RC2
openldap-2.0.25

Thanks







Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-22 10:48 UTC] sander@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2002-08-22 12:00 UTC] pescobar at ns dot ulat dot ac dot pa
This is backtrace

Loaded symbols for /usr/local/lib/libcrypto.so.0.9.6
Reading symbols from /usr/local/lib/libssl.so.0.9.6...done.
Loaded symbols for /usr/local/lib/libssl.so.0.9.6
Reading symbols from /opt/sybase-11.9.2//lib/libinsck.so...done.
Loaded symbols for /opt/sybase-11.9.2//lib/libinsck.so
Reading symbols from /opt/sybase-11.9.2//lib/libsybtcl.so...done.
Loaded symbols for /opt/sybase-11.9.2//lib/libsybtcl.so
Reading symbols from /opt/sybase-11.9.2//lib/libintl.so...done.
Loaded symbols for /opt/sybase-11.9.2//lib/libintl.so
Reading symbols from /opt/sybase-11.9.2//lib/libcomn.so...done.
Loaded symbols for /opt/sybase-11.9.2//lib/libcomn.so
Reading symbols from /opt/sybase-11.9.2//lib/libct.so...done.
Loaded symbols for /opt/sybase-11.9.2//lib/libct.so
Reading symbols from /opt/sybase-11.9.2//lib/libcs.so...done.
Loaded symbols for /opt/sybase-11.9.2//lib/libcs.so
Reading symbols from /usr/local/pgsql/lib/libpq.so.2...done.
Loaded symbols for /usr/local/pgsql/lib/libpq.so.2
Reading symbols from /usr/local/lib/libpdf.so.1...done.
Loaded symbols for /usr/local/lib/libpdf.so.1
Reading symbols from /usr/local/lib/libiodbc.so.2...done.
Loaded symbols for /usr/local/lib/libiodbc.so.2
Reading symbols from /usr/local/lib/libldap.so.2...done.
Loaded symbols for /usr/local/lib/libldap.so.2
Reading symbols from /usr/local/lib/liblber.so.2...done.
Loaded symbols for /usr/local/lib/liblber.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/kerberos/lib/libgssapi_krb5.so.2...done.
Loaded symbols for /usr/kerberos/lib/libgssapi_krb5.so.2
Reading symbols from /usr/kerberos/lib/libkrb5.so.3...done.
Loaded symbols for /usr/kerberos/lib/libkrb5.so.3
Reading symbols from /usr/kerberos/lib/libk5crypto.so.3...done.
Loaded symbols for /usr/kerberos/lib/libk5crypto.so.3
Reading symbols from /usr/kerberos/lib/libcom_err.so.3...done.
Loaded symbols for /usr/kerberos/lib/libcom_err.so.3
Reading symbols from /lib/libssl.so.2...done.
Loaded symbols for /lib/libssl.so.2
Reading symbols from /lib/libcrypto.so.2...done.
Loaded symbols for /lib/libcrypto.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0  0x40191fbd in main_arena () from /lib/libc.so.6
 [2002-08-22 14:45 UTC] sander@php.net
Please enter bt at the gdb prompt and copy the output here. This isn't a backtrace :)
 [2002-08-22 15:14 UTC] pescobar at ns dot ulat dot ac dot pa
Excuse me

#0  0x40191fbd in main_arena () from /lib/libc.so.6
#1  0x400c352a in buffered_vfprintf () from /lib/libc.so.6
#2  0x400be6d7 in vfprintf () from /lib/libc.so.6
#3  0x400c8059 in fprintf () from /lib/libc.so.6
#4  0x405f5722 in com_perr () from /opt/sybase-11.9.2//lib/libcomn.so
#5  0x405e73ed in com_intl_verify_ctxloc ()
   from /opt/sybase-11.9.2//lib/libcomn.so
#6  0x4068a4a9 in cs_ctx_alloc () from /opt/sybase-11.9.2//lib/libcs.so
#7  0x4039bd7a in ssl_expr_yyval () from /usr/local/apache/libexec/libphp4.so
#8  0x4039bf4e in ssl_expr_yyval () from /usr/local/apache/libexec/libphp4.so
#9  0x402f5f53 in ssl_expr_yyval () from /usr/local/apache/libexec/libphp4.so
#10 0x402ffd1f in ssl_expr_yyval () from /usr/local/apache/libexec/libphp4.so
#11 0x403084a5 in ssl_expr_yyval () from /usr/local/apache/libexec/libphp4.so
#12 0x403000e9 in ssl_expr_yyval () from /usr/local/apache/libexec/libphp4.so
#13 0x402fd0bc in ssl_expr_yyval () from /usr/local/apache/libexec/libphp4.so
#14 0x402fdc6e in ssl_expr_yyval () from /usr/local/apache/libexec/libphp4.so
#15 0x08086656 in ap_init_modules ()
#16 0x0809152c in main ()
#17 0x400891c4 in __libc_start_main () from /lib/libc.so.6
 [2002-08-22 15:28 UTC] sander@php.net
Does the segfault still occur when you remove the LoadModule line of php4 from your httpd.conf? And what happens when you remove the ssl loadmodule line? SSL and PHP might conflict when compiled in the wrong order (you need to configure, compile and install Apache + mod_ssl first, then configure, compile and install PHP).
 [2002-08-22 16:30 UTC] pescobar at ns dot ulat dot ac dot pa
Hi...

I compile PHP with:
./configure --with-pgsql=/usr/local/pgsql --enable-track-vars --disable-debug -with-apxs=/usr/local/apache/bin/apxs --enable-versioning --with-config-file-path=/usr/php4/lib --enable-libgcc --with-imap=/usr/local/lib --enable-ftp  --with-mysql --with-sybase-ct=/opt/sybase-11.9.2 --with-pdflib=/usr/local --with-pdfdir=../pdflib-4.0.3/bind/c  --with-kerberos --enable-sockets  --with-imap-ssl

and delete lines ssl LoadModule from httpd.conf y send the same error


backtrace

#0  0x40191fbd in main_arena () from /lib/libc.so.6
#1  0x400c352a in buffered_vfprintf () from /lib/libc.so.6
#2  0x400be6d7 in vfprintf () from /lib/libc.so.6
#3  0x400c8059 in fprintf () from /lib/libc.so.6
#4  0x404fe722 in com_perr () from /opt/sybase-11.9.2/lib/libcomn.so
#5  0x404f03ed in com_intl_verify_ctxloc () from /opt/sybase-11.9.2/lib/libcomn.so
#6  0x405934a9 in cs_ctx_alloc () from /opt/sybase-11.9.2/lib/libcs.so
#7  0x402a7d5e in __libc_utmp_lock () from /usr/local/apache/libexec/libphp4.so
#8  0x402a7f32 in __libc_utmp_lock () from /usr/local/apache/libexec/libphp4.so
#9  0x40207423 in __libc_utmp_lock () from /usr/local/apache/libexec/libphp4.so
#10 0x402111ef in __libc_utmp_lock () from /usr/local/apache/libexec/libphp4.so
#11 0x40219975 in __libc_utmp_lock () from /usr/local/apache/libexec/libphp4.so
#12 0x402115b9 in __libc_utmp_lock () from /usr/local/apache/libexec/libphp4.so
#13 0x4020e58c in __libc_utmp_lock () from /usr/local/apache/libexec/libphp4.so
#14 0x4020f13e in __libc_utmp_lock () from /usr/local/apache/libexec/libphp4.so
#15 0x08086656 in ap_init_modules ()
#16 0x0809152c in main ()
#17 0x400891c4 in __libc_start_main () from /lib/libc.so.6
 [2002-08-22 17:09 UTC] sniper@php.net
Check bug report #3161 which has something about locales..
And check what you have for locales.

This seems to be sybase related issue. Reclassified.




 [2002-09-21 02:03 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2007-08-03 10:50 UTC] indika at pooranee dot com
o bugs that are not open. They will be removed witDo NOT use the comment system to ask questions related to bug reports, nor add "this is how I solved it" or "this might help you" comments to bugs that are not open. They will be removed without warning.hout warning.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC