php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2596 segfaulting on startup
Submitted: 1999-10-24 07:30 UTC Modified: 2000-08-06 09:41 UTC
From: xmatl at fi dot muni dot cz Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.12 OS: Linux 2.2.12
Private report: No CVE-ID: None
 [1999-10-24 07:30 UTC] xmatl at fi dot muni dot cz
when i add php (or mysql support to php, i'm not really sure) into apache, it's segfaulting. to make in more interesting, when i run apache without, php it's ok,
if i then uncomment php loading options, it runs....

./configure  --prefix=$(PHP_DIR) \
--exec-prefix=$(PHP_DIR) \
--with-config-file-path=$(APACHE_DIR)/conf \
--with-apxs=$(APACHE_DIR)/bin/apxs \
--with-mysql=$(MYSQL_DIR) \
--with-zlib=$(ZLIB_DIR) \
--with-gd=$(GD_DIR) \
--with-gettext=$(GETTEXT_DIR) \
--with-ldap=$(OPENLDAP_DIR) \
--enable-memory-limit \
--enable-sysvsem \
--enable-sysvshm \
--enable-magic-quotes \
--enable-memory-limit \
--enable-track-vars; \

gdb backtrace:
#0  0x4000a6d1 in _dl_debug_state () at dl-debug.c:56
#1  0x4017d4e6 in _dl_close (map=0x80cc418) at dl-close.c:195
#2  0x4009e0c0 in dlclose_doit (handle=0x80cc418) at dlclose.c:26
#3  0x4000a3eb in _dl_catch_error (errstring=0x4009fd00, operate=0x4009e0a8 <dlclose_doit>, args=0x80cc418)
    at dl-error.c:141
#4  0x4009e549 in _dlerror_run (operate=0x4009e0a8 <dlclose_doit>, args=0x80cc418) at dlerror.c:125
#5  0x4009e08e in dlclose (handle=0x80cc418) at dlclose.c:32
#6  0x8070430 in ap_os_dso_unload ()
#7  0x804fbd0 in unload_module ()
#8  0x80519de in run_cleanups ()
#9  0x80501fd in ap_clear_pool ()
#10 0x8060633 in standalone_main ()
#11 0x8060ed9 in main ()
#12 0x400b81eb in __libc_start_main (main=0x8060b8c <main>, argc=2, argv=0xbffff944, 
    init=0x804f1d0 <_init>, fini=0x8096d2c <_fini>, rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffff93c)
    at ../sysdeps/generic/libc-start.c:90

strace:
open("./php3.ini", O_RDONLY)            = -1 ENOENT (No such file or directory)
open("/php3.ini", O_RDONLY)             = -1 ENOENT (No such file or directory)
open("/usr/local/stow/apache/conf/php3.ini", O_RDONLY) = 6
ioctl(6, TCGETS, 0xbfffc6d4)            = -1 ENOTTY (Inappropriate ioctl for device)
read(6, "", 8192)                       = 0
ioctl(6, TCGETS, 0xbfffc6c0)            = -1 ENOTTY (Inappropriate ioctl for device)
--- SIGSEGV (Segmentation fault) ---

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-06 09:41 UTC] rasmus@php.net
This is because the mysql library you are using is linked against pthreads.  You need a version of the library that isn't linked against pthreads.  Either compile the mysql client libs from the mysql sources, rebuild from the source rpm but remove the switch in the spec file that turns on pthread support, or wait for the mysql folks to put up non-phreads client rpms.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 19:01:29 2024 UTC