You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Drew Degentesh <dd...@daed.com> on 2000/04/10 14:05:49 UTC

Re: Segfault on DBI->Connect (was mod_perl and AuthenDBI headaches)

Hi,

after some browsing of the modperl@apache.org archives, I see now that my
AuthDBI problem is the same as this thread (Segfault on DBI->Connect). I
tried the workaround suggested by wil (*sock=0 before mysql_init(sock)) to
no avail.

Here's a backtrace from gdb httpd -X. Has any headway been made on this
problem? If you need more information, let me know...


Drew



Starting program: /usr/local/apache/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
mysql_close (mysql=0x0) at libmysql.c:1555
1555          end_server(mysql);
(gdb) bt
#0  mysql_close (mysql=0x0) at libmysql.c:1555
#1  0x403bf254 in __DTOR_END__ ()
   from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBD/mysql/mysql.so
#2  0x403ac0dd in mysql_dr_connect ()
   from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBD/mysql/mysql.so
#3  0x403ac420 in _MyLogin ()
   from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBD/mysql/mysql.so
#4  0x403ac48f in mysql_db_login ()
   from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBD/mysql/mysql.so
#5  0x403affd8 in XS_DBD__mysql__db__login ()
   from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBD/mysql/mysql.so
#6  0x80eba06 in Perl_pp_entersub ()
#7  0x81159ad in Perl_runops_standard ()
#8  0x80bddf1 in perl_call_sv ()
#9  0x4039ce81 in XS_DBI_dispatch ()
   from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBI/DBI.so
#10 0x80eba06 in Perl_pp_entersub ()
#11 0x81159ad in Perl_runops_standard ()
#12 0x80bddf1 in perl_call_sv ()
#13 0x806426b in perl_call_handler ()
#14 0x8063c1d in perl_run_stacked_handlers ()
#15 0x806295d in perl_handler ()
#16 0x807c013 in ap_invoke_handler ()
#17 0x808f559 in process_request_internal ()
#18 0x808f5bc in ap_process_request ()
#19 0x8086e5e in child_main ()
#20 0x8086fec in make_child ()
#21 0x8087149 in startup_children ()
#22 0x8087776 in standalone_main ()
#23 0x8087f03 in main ()
#24 0x400cc1eb in __libc_start_main (main=0x8087bbc <main>, argc=2,
    argv=0xbffffd74, init=0x80605a4 <_init>, fini=0x8115a8c <_fini>,
    rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffd6c)
    at ../sysdeps/generic/libc-start.c:90
(gdb)