[mp1] Apache::AuthDBI segfaults under Fedora Core 1?

2005-04-04 Thread John Callender
9 0x081c2d61 in make_child ()
#30 0x081c2ec7 in startup_children ()
#31 0x081c357e in standalone_main ()
#32 0x081c3db6 in main ()

Additional information that may be helpful:
perl -V output:
# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
  Platform:
osname=linux, osvers=2.4.21-9.elsmp, 
archname=i386-linux-thread-multi
uname='linux bugs.devel.redhat.com 2.4.21-9.elsmp #1 smp thu jan 8 
17:08:56 est 2004 i686 i686 i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686 
-Dversion=5.8.3 -Dmyhostname=localhost [EMAIL PROTECTED] 
-Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr 
-Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr 
-Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid 
-Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog 
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 
-Uversiononly -Dpager=/usr/bin/less -isr -Dinc_version_list=5.8.2 5.8.1 
5.8.0'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define 
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -g -pipe -march=i386 -mcpu=i686',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
-I/usr/include/gdbm'
ccversion='', gccversion='3.3.2 20031218 (Red Hat Linux 3.3.2-5)', 
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
alignbytes=4, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.2'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic 
-Wl,-rpath,/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS 
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Mar 23 2004 20:56:34
  @INC:
/usr/lib/perl5/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
.

Options given to Makefile.PL when compiling mod_perl:
perl Makefile.PL APACHE_SRC=../apache_1.3.33/src DO_HTTPD=1 USE_APACI=1 
PREP_HTTPD=1 EVERYTHING=1

(and subsequently, in anticipation of running gdb:)
perl Makefile.PL APACHE_SRC=../apache_1.3.33/src DO_HTTPD=1 USE_APACI=1 
PREP_HTTPD=1 EVERYTHING=1 PERL_DEBUG=1

In each case of compiling mod_perl, all tests were successful.
As I said, any suggestions on how I might fix this, such that I can use 
Apache::AuthDBI to authenticate on the Fedora Core 1 server, would be 
appreciated. Thanks.

John Callender
[EMAIL PROTECTED]


Re: [mp1] Apache::AuthDBI segfaults under Fedora Core 1?

2005-04-05 Thread John Callender
On Apr 4, 2005, at 7:56 PM, Stas Bekman wrote:
John Callender wrote:
In moving some web sites from a server running Red Hat Linux release 
7.3 (Valhalla) to one running Fedora Core release 1 (Yarrow), I'm 
finding that attempts to authenticate under mod_perl using 
Apache::AuthDBI, which were working normally on the RH 7.3 server, 
are producing segfaults on the FC1 server.

I'd suggest to cleanup your perl's lib tree first, nuking all paths 
with 5.8.2, 5.8.1 and 5.8.0 in it. May be you get some binary 
incompatible module loaded which causes the crush.
That appears to have solved my problem. I needed to install DBI and 
DBD::mysql from source after removing the 5.8.0, 5.8.1, and 5.8.2 paths 
from the perl lib tree, because the FC1 distribution apparently came 
with those installed under 5.8.0. But having done that, Apache::AuthDBI 
is authenticating properly, with no segfaults.

Thank you very much for your help.
Your perl is thread-enabled, do you by chance spawn perl threads 
anywhere? Did you try building perl with -Uusethreads?
As far as I'm aware, we're not using threads anywhere on the server. I 
haven't tried building perl with -Uusethreads, no.

Thanks again.
John Callender
[EMAIL PROTECTED]