Login | Register
My pages Projects Community openCollabNet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Catacomb] [Grase] catacomb



Hi,

I made some further test and can now claim that catacomb isn't
likely to be the reason for the segm fault.
I compiled php4 for apache and run into the same problem (see backtrace
below). It appears that getservbyname() causes the problem when
ever it is called. There is just one call of getservbyname() in
php4 and that's the one making apache crash.
I'll see if I can file a bug report for apache or php4.

  Uwe

(gdb) bt
#0  0x00000000 in ?? ()
#1  0x0ed61690 in _nss_db_getspnam_r () from /lib/libnss_db.so.2
#2  0x0ed61794 in _nss_db_getspnam_r () from /lib/libnss_db.so.2
#3  0x0ed60afc in _nss_db_endservent () from /lib/libnss_db.so.2
#4  0x0ed60eb0 in _nss_db_getservbyname_r () from /lib/libnss_db.so.2
#5  0x0fb4ddb4 in getservbyname_r () from /lib/libc.so.6
#6  0x0fb4dbfc in getservbyname () from /lib/libc.so.6
#7  0x0f7eafb8 in OnMySQLPort (entry=0x10190ed0, new_value=0x0, new_value_length=3, mh_arg1=0x0, mh_arg2=0x0, mh_arg3=0x0, stage=1) at /home/cvs/php/php4/ext/mysql/php_mysql.c:326
#8  0x0f990fb8 in zend_register_ini_entries (ini_entry=0xf9d78d0, module_number=13) at /home/cvs/php/php4/Zend/zend_ini.c:152
#9  0x0f7eb124 in zm_startup_mysql (type=1, module_number=13) at /home/cvs/php/php4/ext/mysql/php_mysql.c:377
#10 0x0f98193c in zend_startup_module (module=0xf9d7824) at /home/cvs/php/php4/Zend/zend_API.c:1008
#11 0x0f930e4c in php_startup_extensions (ptr=0xfa1d314, count=23) at /home/cvs/php/php4/main/main.c:956
#12 0x0f99f6c0 in php_startup_internal_extensions () at main/internal_functions.c:96
#13 0x0f931310 in php_module_startup (sf=0xfa1cc34) at /home/cvs/php/php4/main/main.c:1117
#14 0x0f99e190 in php_apache_server_startup (pconf=0x100c6440, plog=0x10104538, ptemp=0x1010a550, s=0x101096d8) at /home/cvs/php/php4/sapi/apache2filter/sapi_apache2.c:492
#15 0x10066230 in ap_run_post_config (pconf=0x100c6440, plog=0x10104538, ptemp=0x1010a550, s=0x101096d8) at config.c:129
#16 0x1006c418 in main (argc=4, argv=0x7ffff9c4) at main.c:634
#17 0x0fa7cc50 in __libc_start_main () from /lib/libc.so.6
(gdb) 

On Tue, Sep 17, 2002 at 01:20:06AM -0700, Sung Kim wrote:
> Hello,
> 
> Sorry to hear this. That's really strange behavior. Since d->mysql is a variable and we passwd right variable, it should work.
> This is real hack, but would you like to try to run mysql_init with another variable?
> For example
> - mysql_init(&(d->mysql));
> + MySQL test_mysql;
> + mysql_init(&test_mysql);
> 
> What system are you using? Linux or Solaris? What kind of distribution?
> 
> I appreciate it.
> 
> PS - Regarding the Apache API, http://httpd.apache.org/dev/apidoc/ is good starting point, even though it is apache 1.3's API. Also you might want to take a look apr and apr-util stuff.
> 
> --
> Sung Kim <hunkim@cse.ucsc.edu>
> http://www.cse.ucsc.edu/~hunkim
> 
>  "Dreams become reality!"
> 
> On Tue, 17 Sep 2002, Uwe Steinmann wrote:
> 
> > Hi,
> >
> > I made another try with a self compiled mysql 3.23.52 and still
> > get the same result.
> >
> > Here ist the output of gdb and ldd again.
> >
> >   Uwe
> >
> > Starting program: /mnt/oldlinux/local/apache2/bin/httpd -X -f
> > /usr/local/apache2/conf/httpd.conf
> > [New Thread 1024 (LWP 19168)]
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 1024 (LWP 19168)]
> > 0x00000000 in ?? ()
> > (gdb) bt
> > #0  0x00000000 in ?? ()
> > #1  0x0f6f3690 in _nss_db_getspnam_r () from /lib/libnss_db.so.2
> > #2  0x0f6f3794 in _nss_db_getspnam_r () from /lib/libnss_db.so.2
> > #3  0x0f6f2afc in _nss_db_endservent () from /lib/libnss_db.so.2
> > #4  0x0f6f2eb0 in _nss_db_getservbyname_r () from /lib/libnss_db.so.2
> > #5  0x0fb4ddb4 in getservbyname_r () from /lib/libc.so.6
> > #6  0x0fb4dbfc in getservbyname () from /lib/libc.so.6
> > #7  0x0f91c470 in mysql_once_init () from /usr/local/mysql-3.23.52/lib/mysql/libmysqlclient.so.10
> > #8  0x0f91e534 in mysql_init () from /usr/local/mysql-3.23.52/lib/mysql/libmysqlclient.so.10
> > #9  0x0f95e140 in dbms_opendb (d=0x1010c238) at dbms.c:135
> > #10 0x0f959ee0 in dav_repos_child_init (p=0x10157d98, s=0x101096d8) at mod_dav_repos.c:273
> > #11 0x1006659c in ap_run_child_init (pchild=0x10157d98, s=0x101096d8) at config.c:190
> > #12 0x100647d0 in child_main (child_num_arg=269911576) at prefork.c:582
> > #13 0x10064ba0 in make_child (s=0x101096d8, slot=0) at prefork.c:736
> > #14 0x10064cf8 in startup_children (number_to_start=5) at prefork.c:808
> > #15 0x100651cc in ap_mpm_run (_pconf=0x5, plog=0xf703a24, s=0x101096d8) at prefork.c:1024
> > #16 0x1006c46c in main (argc=4, argv=0x7ffff9c4) at main.c:645
> > #17 0x0fa7cc50 in __libc_start_main () from /lib/libc.so.6 (gdb) list mysql_init
> > No line number known for mysql_init.
> > (gdb) quit
> > A debugging session is active.
> > Do you still want to close the debugger?(y or n) y
> > pb:/usr/local/apache2/bin# ldd ../modules/
> > httpd.exp            libmod_dav_repos.so
> > pb:/usr/local/apache2/bin# ldd ../modules/libmod_dav_repos.so
> > 	libmysqlclient.so.10 =>
> > 	/usr/local/mysql-3.23.52/lib/mysql/libmysqlclient.so.10 (0x6ff8c000)
> > 	libc.so.6 => /lib/libc.so.6 (0x6fe31000)
> > 	libz.so.1 => /usr/lib/libz.so.1 (0x6fe01000)
> > 	libcrypt.so.1 => /lib/libcrypt.so.1 (0x6fdb5000)
> > 	libnsl.so.1 => /lib/libnsl.so.1 (0x6fd7f000)
> > 	libm.so.6 => /lib/libm.so.6 (0x6fce8000)
> > 	/lib/ld.so.1 => /lib/ld.so.1 (0x08000000)
> > pb:/usr/local/apache2/bin#
> >
> >
> > --
> >   MMK GmbH, Hagen
> >   Uwe.Steinmann@mmk-hagen.de
> >   Tel: +2331 840446    Fax: +2331 843920
> >

-- 
  MMK GmbH, Hagen
  Uwe.Steinmann@mmk-hagen.de
  Tel: +2331 840446    Fax: +2331 843920

Attachment: pgpzgaLxt8NSG.pgp
Description: PGP signature