php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8083 3.0.17 causes segm. faults with --enable-versioning
Submitted: 2000-12-02 22:14 UTC Modified: 2001-02-10 14:59 UTC
From: php at dogz dot de Assigned:
Status: Closed Package: *General Issues
PHP Version: 3.0.17 OS: Linux 2.2.16 (SuSE based)
Private report: No CVE-ID: None
 [2000-12-02 22:14 UTC] php at dogz dot de
I can't get php3-mod 3.0.17 to work with --enable-versioning.

kernel: 2.2.16
gcc: 2.95.2
binutils: 2.9.5

Did Apache with:
./configure --prefix=/blah \
  --enable-shared=max
make
make install

Did Php3 3.0.17 with:
./configure --with-apxs=/blah/bin/apxs --enable-versioning
make
make install

copied php3.ini-dist as is

When i did apachectrl start i only saw a segmentation fault.
Php4-mod is running fine with --enable-versioning.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-02 22:22 UTC] php at dogz dot de
oups .. forgot apache-version: 1.3.14
 [2000-12-02 22:54 UTC] php at dogz dot de
huh .. took some time 2 install the debugger .. so here is the backtrace:


Core was generated by `/usr/local/apache_php/bin/httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /usr/local/apache_php/libexec/mod_env.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_log_config.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_mime.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_negotiation.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_status.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_include.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_autoindex.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_dir.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_cgi.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_asis.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_imap.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_actions.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_userdir.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_alias.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_access.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_auth.so...done.
Reading symbols from /usr/local/apache_php/libexec/mod_setenvif.so...done.
Reading symbols from /usr/local/apache_php/libexec/libphp3.so...done.
Reading symbols from /usr/lib/libpng.so.2...done.
Reading symbols from /usr/lib/libz.so.1...done.
Reading symbols from /usr/lib/libttf.so.2...done.
Reading symbols from /usr/lib/libgdbm.so.2...done.
Reading symbols from /lib/libpam.so.0...done.
Reading symbols from /lib/libresolv.so.2...done.
#0  0x400092df in _dl_relocate_object () at dl-reloc.c:135
135     dl-reloc.c: No such file or directory.



(gdb) bt

#0  0x400092df in _dl_relocate_object () at dl-reloc.c:135
#1  0x40133ed4 in dl_open_worker (a=0xbfffd43c) at dl-open.c:182
#2  0x4000a801 in _dl_catch_error () at dl-error.c:117
#3  0x4013403f in _dl_open () at dl-open.c:210
#4  0x4006436e in dlopen_doit (a=0xbfffd58c) at dlopen.c:41
#5  0x4000a801 in _dl_catch_error () at dl-error.c:117
#6  0x400649c1 in _dlerror_run (operate=0x40064340 <dlopen_doit>, args=0xbfffd58c)
    at dlerror.c:125
#7  0x400643b3 in __dlopen_check (
    file=0x80b3e4c "/usr/local/apache_php/libexec/libphp3.so", mode=258) at dlopen.c:53
#8  0x8072c57 in ap_os_dso_load ()
#9  0x804f4ed in load_module ()
#10 0x805557e in invoke_cmd ()
#11 0x8055ee2 in ap_handle_command ()
#12 0x8055f8d in ap_srm_command_loop ()
#13 0x80566b9 in ap_process_resource_config ()
#14 0x8057058 in ap_read_config ()
#15 0x8061fac in main ()
#16 0x4007fa8e in __libc_start_main () at ../sysdeps/generic/libc-start.c:93

 [2000-12-03 10:02 UTC] php at dogz dot de
after some lots of testing various things i finally made it.

php3-3.0.17 and php4-4.0.3pl1 now run as concurrent modules.

i just added  "--with-mm=/path/to/mm-libs" in the php3-configure-step.

both php-mods as DSO:

./configure --with-apxs=/path/to/myapache/bin/apxs \
--enable-track-vars \
--with-mysql=/path/to/mysql \
--with-mm=/path/to/mm-libs \
--enable-versioning \
--with-xml

make 
make install

dont know why this is working .. but it does
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC