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

2000-04-10 Thread Drew Degentesh

Hi,

after some browsing of the [EMAIL PROTECTED] 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=0xbd74, init=0x80605a4 _init, fini=0x8115a8c _fini,
rtld_fini=0x4000a610 _dl_fini, stack_end=0xbd6c)
at ../sysdeps/generic/libc-start.c:90
(gdb)




mod_perl and AuthenDBI headaches

2000-04-09 Thread Drew Degentesh

Hello,

My setup is:

Redhat 6.1 (Linux 2.2.12-20RS )
Apache 1.3.12 (compiled from source)
mod_perl: 1.12 (compiled from source)
ApacheDBI-0.87
DBI-1.13
mysql  Ver 9.36 Distrib 3.22.27 (from distribution)
perl 5.005_03 (from distribution)
Msql-Mysql-modules-1.2211

I'm pulling my hair out trying to authenticate against a database. I keep
getting a segmentation fault immediately upon trying to connect to a
database (somewhere around line 245 of Apache/AuthDBI.pm). Ive tried tons of
workarounds...

I have no difficulties using DBI in a 'regular' perl script
(i.e.
#!/usr/bin/perl
use DBI;
DBI-connect( ...
)

...nor do I have any difficulties with mod_perl in general. Just AuthDBI.

When I compiled mod_perl I used EVERYTHING=1 and ALL_HOOKS=1. I enabled APXS
but mod_perl is not loaded as a dynamic library (though PHP4.0RC1 is...)

Any suggestions/co-lamenters?

Please help!

Drew Degentesh
[EMAIL PROTECTED]