php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4427 Databases compiled in crashes apache
Submitted: 2000-05-12 12:52 UTC Modified: 2002-10-01 14:44 UTC
From: truth at ichaos dot com Assigned:
Status: Wont fix Package: Reproducible Crash
PHP Version: 3.0.16 OS: RedHat 6.1 (latest patches)
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: truth at ichaos dot com
New email:
PHP Version: OS:

 

 [2000-05-12 12:52 UTC] truth at ichaos dot com
I can't compile any code into PHP that uses threads apparently (both DB2 and MySQL uses them). I can compile MySQL as an extension (had to go through the RPM .spec file to figure it out) and it works just fine. IBM DB2 I don't know how to compile as a module. Please give me some pointers!!!

Here are the relevant files:

######## makephp3 script ##########
[root@Sleepy src]# cat makephp3
#!/bin/sh
#
#       --with-ldap \
#       --with-dbase \
#       --with-filepro \
#       --with-mysql \
#       --with-yp \
#       --with-informix \
#       --with-jpeg-dir=/usr \
#       --with-zlib-dir=/usr \
#       --with-tiff-dir=/usr \
#       --with-png-dir=/usr \
#       --with-pdflib=/usr/local \
#       --with-pdflib-dir=/usr/local
INFORMIXDIR=/usr/local/Informix
export INFORMIXDIR
./configure \
        --x-libraries=/usr/local/lib \
        --with-apxs=/usr/sbin/apxs \
        --prefix=/usr \
        --enable-safe-mode \
        --with-exec-dir=/usr/bin \
        --with-zlib \
        --with-config-file-path=/etc/php3/apache \
        --disable-debug \
        --enable-magic-quotes \
        --enable-debugger \
        --enable-bcmath \
        --enable-track-vars \
        --with-imap \
        --with-ibm-db2 \
        --with-system-regex \
        --without-gd
make
gcc -shared -fPIC -DCOMPILE_DL=1 -I. -I/usr/include/apache -I/usr/include/mysql
-o mysql.so ./functions/mysql.c -L/usr/lib/mysql -lmysqlclient -lc

# These don't work for some reason. Need to find out why.
#cp config.hdb2 config.h
#gcc -shared -fPIC -DCOMPILE_DL=1 -I. -I/usr/include/apache -I/home/db2inst1/sql
lib/include -o db2.so ./functions/unified_odbc.c -L/home/db2inst1/sqllib/lib -ld
b2 -lc
#cp config.hifx config.h
#gcc -shared -fPIC -DCOMPILE_DL=1 -I. -I/usr/include/apache -I/usr/local/Informi
x/incl/esql -o ifx.so ./functions/ifx.c -L/usr/local/Informix/lib/esql -L/usr/lo
cal/Informix/lib -lifsql -lifasf -lifgen -lifos -lifgls /usr/local/Informix/lib/
esql/checkapi.o -lifglx -lc

########### gdb output ##############
[root@Sleepy /tmp]# gdb /usr/sbin/httpd core
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(no debugging symbols found)...
Core was generated by `httpd -X'.
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/libdb.so.3...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/lib/gconv/ISO8859-1.so...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /etc/httpd/modules/mod_vhost_alias.so...done.
Reading symbols from /etc/httpd/modules/mod_env.so...done.
Reading symbols from /etc/httpd/modules/mod_log_config.so...done.
Reading symbols from /etc/httpd/modules/mod_log_agent.so...done.
Reading symbols from /etc/httpd/modules/mod_log_referer.so...done.
---Type <return> to continue, or q <return> to quit---
Reading symbols from /etc/httpd/modules/mod_mime.so...done.
Reading symbols from /etc/httpd/modules/mod_negotiation.so...done.
Reading symbols from /etc/httpd/modules/mod_status.so...done.
Reading symbols from /etc/httpd/modules/mod_info.so...done.
Reading symbols from /etc/httpd/modules/mod_include.so...done.
Reading symbols from /etc/httpd/modules/mod_autoindex.so...done.
Reading symbols from /etc/httpd/modules/mod_dir.so...done.
Reading symbols from /etc/httpd/modules/mod_cgi.so...done.
Reading symbols from /etc/httpd/modules/mod_asis.so...done.
Reading symbols from /etc/httpd/modules/mod_imap.so...done.
Reading symbols from /etc/httpd/modules/mod_actions.so...done.
Reading symbols from /etc/httpd/modules/mod_userdir.so...done.
Reading symbols from /etc/httpd/modules/mod_alias.so...done.
Reading symbols from /etc/httpd/modules/mod_rewrite.so...done.
Reading symbols from /etc/httpd/modules/mod_access.so...done.
Reading symbols from /etc/httpd/modules/mod_auth.so...done.
Reading symbols from /etc/httpd/modules/mod_auth_anon.so...done.
Reading symbols from /etc/httpd/modules/mod_auth_db.so...done.
Reading symbols from /etc/httpd/modules/mod_digest.so...done.
Reading symbols from /etc/httpd/modules/libproxy.so...done.
Reading symbols from /etc/httpd/modules/mod_expires.so...done.
Reading symbols from /etc/httpd/modules/mod_headers.so...done.
Reading symbols from /etc/httpd/modules/mod_usertrack.so...done.
---Type <return> to continue, or q <return> to quit---
Reading symbols from /etc/httpd/modules/mod_setenvif.so...done.
Reading symbols from /etc/httpd/modules/libphp3.so...done.
Reading symbols from /home/db2inst1/sqllib/lib/libdb2.so.1...done.
Reading symbols from /usr/lib/libz.so.1...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.
Reading symbols from /lib/libpthread.so.0...done.
#0  0x40ab26a8 in ?? ()
(gdb) bt
#0  0x40ab26a8 in ?? ()
#1  0x400f43fa in _IO_new_file_close_it (fp=0x80a21b0) at fileops.c:136
#2  0x400f027d in _IO_new_fclose (fp=0x80a21b0) at iofclose.c:50
#3  0x4022833f in php3_init_config () at ./configuration-parser.y:226
#4  0x4021dcf7 in php3_config_ini_startup () at main.c:947
#5  0x4021e862 in php3_module_startup () at main.c:1238
#6  0x4021c32a in php3_create_dir () from /etc/httpd/modules/libphp3.so
#7  0x8053fd4 in ap_single_module_configure ()
#8  0x804f14d in ap_get_server_built ()
#9  0x8052f44 in ap_clear_module_list ()
#10 0x805350c in ap_handle_command ()
#11 0x8053558 in ap_srm_command_loop ()
#12 0x80538c7 in ap_process_resource_config ()
#13 0x8053f44 in ap_read_config ()
#14 0x805ae47 in ap_child_terminate ()
#15 0x805b4fb in main ()
#16 0x400b71eb in __libc_start_main (main=0x805b290 <main>, argc=2,
    argv=0xbffffcf4, init=0x804e684 <_init>, fini=0x80794ec <_fini>,
    rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffcec)
    at ../sysdeps/generic/libc-start.c:90

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 14:44 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC