libapreq-1.0 Seg Faults

2002-09-06 Thread ODELL, TODD E (SWBT)

I installed libapreq-1.0 on an AIX 4.3.3 with Perl 5.6.1( build at bottom of
page)/Apache 1.3.26/PHP-4.2.2. I read the README and INSTALL which came w/
the libapreq.1-0 and everything went fine. I compiled it with the same VAC
4.4.0.3 as I had used for the Perl/Apache. But when I try to use the
Apache::Request it gives a 'segmentation fault (11)' in the error_log. An
example is using the Apache::Status module which uses Apache::Request if
loaded. With no args it'll print the screen fine but when I select something
it does a segfault. Not sure how to correct this.

I tried debugging it using dbx running httpd -X.
After the fault:
Segmentation fault in my_memstr at 0xd0ec3be8 ($t1)
0xd0ec3be8 (my_memstr+0x6c0) 800clwz   r0,0x0(r12)

I typed thread:
 thread  state-k wchanstate-uk-tid   mode held scope function
$t1 run  running38005 k   no   pro  my_memstr 

Thanks for any ideas!

The Makefile.PL on mod_perl was:
 % perl Makefile.PL APACHE_SRC=../apache_1.3.26/src
NO_HTTPD=1 \
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1

perl -V:
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
osname=aix, osvers=4.3.3.0, archname=aix
uname='aix sbctss 3 4 000200554c00 '
config_args=''
hint=previous, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
cc='cc', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -DUSE_NATIVE_DLOPEN -q32 -D_LARGE_FILES -qlonglong',
optimize='-O',
cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-DUSE_NATIVE_DLOPEN -q32 -D_LARGE_FILES -qlonglong'
ccversion='4.4.0.3', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
ld='ld', ldflags ='-brtl -b32'
libpth=/lib /usr/lib /usr/ccs/lib
libs=-lbind -lnsl -ldbm -ldl -lld -lm -lc -lcrypt -lbsd -lPW -liconv
perllibs=-lbind -lnsl -ldl -lld -lm -lc -lcrypt -lbsd -lPW -liconv
libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-bE:/usr/opt/perl5/lib/5.6.1/aix/CORE/perl.exp
-bE:/usr/opt/perl5/lib/5.6.1/aix/CORE/perl.exp'
cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp
-bE:$(BASEEXT).exp -b noentry -lc'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under aix
  Compiled at Mar  5 2002 14:17:17
  @INC:
/usr/opt/perl5/lib/5.6.1/aix
/usr/opt/perl5/lib/5.6.1
/usr/opt/perl5/lib/site_perl/5.6.1/aix
/usr/opt/perl5/lib/site_perl/5.6.1
/usr/opt/perl5/lib/site_perl
.

Todd E. O'Dell
Network Services - TSS Staff
Room 1118
500 E. 8th
Kansas City, MO 64106
Office: (816)275-3626
Alpha Page: [EMAIL PROTECTED]
[EMAIL PROTECTED]




Re: libapreq-1.0 Seg Faults

2002-09-06 Thread Bill

Sorry, this bounced from my Mac.com acct :P


On Friday, September 6, 2002, at 12:50 PM, William C (Bill) Jones wrote:

 This is a USELARGEFILES support issue.

 On Friday, September 6, 2002, at 12:16 PM, ODELL, TODD E (SWBT) wrote:

 ...
 Apache::Request it gives a 'segmentation fault (11)' in the error_log.


 Here, in Perl, it is defined:

 useperlio=3Dundef d_sfio=3Dundef uselargefiles=3Ddefine =
 usesocks=3Dundef

 And here:

 Characteristics of this binary (from libperl):
   Compile-time options: USE_LARGE_FILES


 To avoid this issue please try the following:

 Leave PERL alone!

 Rebuild mod_perl -- for example:

 perl Makefile.PL \
 USE_APXS=3D1 \
 WITH_APXS=3D/usr/local/apache/bin/apxs \
 EVERYTHING=3D1 \
 USE_DSO=3D1

 #  build mod_php -
 ./configure --with-apxs=3D/usr/local/apache/bin/apxs \
 =A0 --enable-force-cgi-redirect \
 =A0 --enable-discard-path \
 =A0 --with-pear \
 =A0 --enable-safe-mode \
 =A0 --with-openssl \
 =A0 --enable-bcmath \
 =A0 --with-bz2 \
 =A0 --with-gdbm \
 =A0 --with-ndbm \
 =A0 --enable-dio \
 =A0 --enable-ftp \
 =A0 --with-ldap \
 =A0 --with-mysql=3D/usr/local/ \
 =A0 --with-pgsql \
 =A0 --enable-memory-limit

 # You may wish to remove those options which you might not already 
 have=20=

 installed - like maybe pgsql, openssl, or ldap...

 Please correct for your filesys layout.

 Also, you may wish to see http://www.apachetoolbox.com/

 HTH/Sx :]