php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18548 Segfault on httpd with PHP >4.1.2
Submitted: 2002-07-24 17:35 UTC Modified: 2002-07-25 15:49 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: kari dot paivarinta at viivatieto dot fi Assigned:
Status: Closed Package: Apache related
PHP Version: 4.2.2 OS: Trustix Linux 1.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kari dot paivarinta at viivatieto dot fi
New email:
PHP Version: OS:

 

 [2002-07-24 17:35 UTC] kari dot paivarinta at viivatieto dot 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 +++"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-24 20:10 UTC] 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-25 08:16 UTC] kari dot paivarinta at viivatieto dot 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-25 08:28 UTC] 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 15:49 UTC] kari dot paivarinta at viivatieto dot fi
I removed the --with-openssl option from PHP configuration and now it's working. Thanks a lot for your quick and accurate response. :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC