Bug #18548 Updated: Segfault on httpd with PHP >4.1.2
| From: | kari dot paivarinta at viivatieto dot fi | Date: | Thu, 25 Jul 2002 19:49:03 +0000 |
| Subject: | Bug #18548 Updated: Segfault on httpd with PHP >4.1.2 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15237@lists.php.net to get a copy of this message | ||
ID: 18548
Updated by: kari.paivarinta@viivatieto.fi
Reported By: kari.paivarinta@viivatieto.fi
-Status: Feedback
+Status: Closed
Bug Type: Apache related
Operating System: Trustix Linux 1.2
PHP Version: 4.2.2
New Comment:
I removed the --with-openssl option from PHP configuration and now it's
working. Thanks a lot for your quick and accurate response. :)
Previous Comments:
------------------------------------------------------------------------
[2002-07-25 08:28:25] sniper@php.net
So it's curl that is causing it..you should propably check
that you're using SAME ssl libs for all those which use them. And if
that did not help, try remove the --with-openssl from your php
configure line.
------------------------------------------------------------------------
[2002-07-25 08:16:20] kari.paivarinta@viivatieto.fi
root@ns /usr/local/apache-broken/bin# gdb httpd
GNU gdb 5.2
(gdb) run
Starting program: /usr/local/apache-broken/bin/httpd
[Thu Jul 25 15:08:59 2002] [warn] module mod_webapp.c is already added,
skipping
Program received signal SIGSEGV, Segmentation fault.
strcmp (p1=0x0, p2=0x0) at ../sysdeps/generic/strcmp.c:38
38 ../sysdeps/generic/strcmp.c: No such file or directory.
in ../sysdeps/generic/strcmp.c
(gdb) bt
#0 strcmp (p1=0x0, p2=0x0) at ../sysdeps/generic/strcmp.c:38
#1 0x002aa5c0 in obj_name_cmp () from /usr/local/lib/libcurl.so.2
Cannot access memory at address 0x1
(gdb)
------------------------------------------------------------------------
[2002-07-24 20:10:13] sniper@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-07-24 17:35:39] kari.paivarinta@viivatieto.fi
Since version 4.1.2 I haven't been able to upgrade my PHP as everytime
I try to start httpd I get segmentation fault.
I've compiled PHP with following line:
"./configure --with-mysql=/usr/local --with-jpeg-dir=/usr/local
--with-png-dir=/usr/local --with-mm=/usr/local
--with-openssl=/usr/local/ssl --with-zlib=/usr/local
--with-freetype-dir=/usr/local --with-gd=/usr/local
--with-pdflib=/usr/local --with-apache=../apache_1.3.26 --with-curl
--with-imap-ssl "
And Apache with:
"./configure --prefix=/usr/local/apache
--activate-module=src/modules/ssl/libssl.a
--activate-module=src/modules/php4/libphp4.a
--enable-module=so"
Strace from "httpd":
"open("/usr/local/lib/php.ini", O_RDONLY) = 3
getcwd("/home/compile/php-4.2.2", 4095) = 24
lstat("/usr", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
lstat("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/lib/php.ini", {st_mode=S_IFREG|0600, st_size=28099,
...}) = 0
brk(0x8324000) = 0x8324000
ioctl(3, TCGETS, 0xbffff8ec) = -1 ENOTTY (Inappropriate
ioctl for device)
read(3, "[PHP]\n\n;;;;;;;;;;;\n; WARNING ;\n;"..., 8192) = 8192
read(3, "it = 8M ; Maximum amount of"..., 8192) = 8192
read(3, "l\n;extension=php_dotnet.dll\n;ext"..., 8192) = 8192
brk(0x8325000) = 0x8325000
read(3, "sion.entropy_length = 16\n\n;sessi"..., 8192) = 3523
read(3, "", 4669) = 0
brk(0x8326000) = 0x8326000
read(3, "", 8192) = 0
ioctl(3, TCGETS, 0xbfffed48) = -1 ENOTTY (Inappropriate
ioctl for device)
close(3) = 0
brk(0x8327000) = 0x8327000
brk(0x8328000) = 0x8328000
brk(0x8329000) = 0x8329000
brk(0x832a000) = 0x832a000
brk(0x832b000) = 0x832b000
brk(0x832c000) = 0x832c000
brk(0x832d000) = 0x832d000
brk(0x832e000) = 0x832e000
brk(0x832f000) = 0x832f000
brk(0x8330000) = 0x8330000
brk(0x8331000) = 0x8331000
brk(0x8332000) = 0x8332000
brk(0x8333000) = 0x8333000
brk(0x8334000) = 0x8334000
brk(0x8335000) = 0x8335000
brk(0x8336000) = 0x8336000
brk(0x8337000) = 0x8337000
brk(0x8338000) = 0x8338000
brk(0x8339000) = 0x8339000
brk(0x833a000) = 0x833a000
brk(0x833b000) = 0x833b000
brk(0x833c000) = 0x833c000
brk(0x833d000) = 0x833d000
brk(0x833f000) = 0x833f000
brk(0x8340000) = 0x8340000
brk(0x8341000) = 0x8341000
brk(0x8342000) = 0x8342000
brk(0x8343000) = 0x8343000
brk(0x8344000) = 0x8344000
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18548&edit=1