-------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description:
A) libexpat.so is in /usr/local/lib, but APR.so is not built with a runpath that includes this directory. The runpath only contains the httpd server lib directory. The Makefile.PL contains some special case code for Solaris, but this is only adding "-R/opt/apache2/lib". B) httpd dumps core at the end of the tests: All tests successful, 5 tests skipped. Files=209, Tests=3362, 401 wallclock secs (236.28 cusr + 90.44 csys = 326.72 CPU) [warning] server localhost:8529 shutdown [ error] oh crap, server dumped core [ error] for stacktrace, run: gdb /opt/apache2/bin/httpd -core /bus/public/apache/mod_perl-1.99_16/t/core 2. Used Components and their Configuration: *** mod_perl version 1.9916 *** using /bus/public/apache/mod_perl-1.99_16/lib/Apache/BuildConfig.pm *** Makefile.PL options: MP_APR_LIB => aprext MP_APXS => /opt/apache2/bin/apxs MP_COMPAT_1X => 1 MP_GENERATE_XS => 1 MP_LIBNAME => mod_perl MP_USE_DSO => 1 MP_USE_STATIC => 1 *** /opt/apache2/bin/httpd -V Server version: Apache/2.0.50 Server built: Sep 14 2004 11:17:26 Server's Module Magic Number: 20020903:8 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_PROC_PTHREAD_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/opt/apache2" -D SUEXEC_BIN="/opt/apache2/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" *** (apr|apu)-config linking info -L/opt/apache2/lib -lapr-0 -lsendfile -lrt -lsocket -lnsl -lresolv -lpthread -ldl -L/opt/apache2/lib -laprutil-0 -lexpat *** /apps/perl583/bin/perl -V Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration: Platform: osname=solaris, osvers=2.8, archname=sun4-solaris uname='sunos suncity 5.8 generic_108528-24 sun4u sparc sunw,sun-blade-1000 ' config_args='-Dprefix=/apps/perl583 -Dcc=cc -Doptimize=-fast -xO3 -xtarget=ultra3' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-fast -xO3 -xtarget=ultra3', cppflags='-I/usr/local/include' ccversion='Sun WorkShop 6 update 2 C 5.3 2001/05/15', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/lib -L/usr/ccs/lib -L/opt/ForteC/WS6U2/lib -L/usr/local/lib ' libpth=/usr/lib /usr/ccs/lib /opt/ForteC/WS6U2/lib /usr/local/lib libs=-lsocket -lnsl -ldl -lm -lutil -lc perllibs=-lsocket -lnsl -ldl -lm -lutil -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-KPIC', lddlflags='-G -L/usr/lib -L/usr/ccs/lib -L/opt/ForteC/WS6U2/lib -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under solaris Compiled at Jan 25 2004 16:52:38 %ENV: PERL_LWP_USE_HTTP_10="1" @INC: /apps/perl583/lib/5.8.3/sun4-solaris /apps/perl583/lib/5.8.3 /apps/perl583/lib/site_perl/5.8.3/sun4-solaris /apps/perl583/lib/site_perl/5.8.3 /apps/perl583/lib/site_perl . *** Packages of interest status: Apache::Request: - CGI : 3.01 LWP : 5.79 mod_perl : - 3. This is the core dump trace: (if you get a core dump): [EMAIL PROTECTED] ([EMAIL PROTECTED]) terminated by signal SEGV (no mapping at the fault address) 0xff2f7a28: apr_cpystrn+0x0028: ldsb [%o1], %g2 (/opt/ForteC/bin/../WS6U2/bin/sparcv9/dbx) where current thread: [EMAIL PROTECTED] =>[1] apr_cpystrn(0xffbee500, 0x0, 0x100, 0x17688, 0x0, 0x4c00), at 0xff2f7a28 [2] stuffbuffer(0xffbee500, 0x100, 0x0, 0x141f1b8, 0xfb4f4, 0xfe8f0c2c), at 0xff3074ac [3] modperl_error_strerror(0x1f4, 0xfef5b208, 0x4, 0x10, 0xde1310, 0x0), at 0xfee3f170 [4] XS_APR__Error_strerror(0x20, 0xfe8f0c00, 0xda83f8, 0xe3718c, 0x10000, 0x1006007), at 0xfe8e0868 [5] Perl_pp_entersub(0x0, 0x1, 0x771398, 0xe37190, 0xfef5b5fc, 0x1), at 0xfeeae208 [6] Perl_runops_standard(0xde1348, 0xfef5b000, 0xb84a8c, 0xe3718c, 0xfef44000, 0xfeea4ca0), at 0xfeea4cec [7] Perl_amagic_call(0xe37190, 0xfef5b424, 0x2, 0xfef5b400, 0xfef5b400, 0x313830), at 0xfee4f15c [8] Perl_sv_2bool(0x313830, 0x10000000, 0x0, 0x80000, 0x80000, 0x2000), at 0xfeeb4b44 [9] modperl_callback(0x0, 0x10000, 0xfd5fe8, 0xfef5b2d8, 0x5483a4, 0x0), at 0xfee2e4bc [10] modperl_callback_run_handlers(0x6, 0x4, 0xfd5fe8, 0x1, 0xa6968, 0x0), at 0xfee2e888 [11] modperl_callback_per_dir(0x6, 0xfd5fe8, 0x1, 0x0, 0xfef3a600, 0x65726c00), at 0xfee2e9a8 [12] modperl_response_handler_run(0xfd5fe8, 0x1, 0xfef4716c, 0x5db00, 0x92000, 0x0), at 0xfee2b054 [13] ap_run_handler(0xfd5fe8, 0xfd73d8, 0xed8cd0, 0xfd73a8, 0xed92c8, 0xed8a98), at 0x4e6b8 [14] ap_invoke_handler(0xfd5fe8, 0x8cc00, 0xfd5fe8, 0x0, 0x0, 0xc8), at 0x4edec [15] ap_process_request(0xfd5fe8, 0x0, 0x4, 0xfd5fe8, 0xc8, 0x0), at 0x3a370 [16] ap_process_http_connection(0xfd00a8, 0xfd00a8, 0x1, 0x1, 0xfcdfe8, 0xfd1fa0), at 0x350c0 [17] ap_run_process_connection(0xfd00a8, 0xfcffd0, 0xfcffd0, 0x1, 0xfcdfe8, 0xfd1fa0), at 0x5b1b8 [18] child_main(0x93d88, 0x78, 0x93d94, 0xfd1fa0, 0x4e2e, 0x99c00), at 0x4ce40 [19] make_child(0xa6968, 0x1, 0x0, 0xfffffff8, 0x10, 0xf77f85), at 0x4cff4 [20] startup_children(0x1, 0x0, 0x1, 0x0, 0x0, 0x4c400), at 0x4d070 [21] ap_mpm_run(0xfe840008, 0x5, 0x0, 0x9a800, 0x93edc, 0x8bc14), at 0x4d504 [22] main(0xa6968, 0x8b400, 0x95f18, 0x95f20, 0x95efc, 0xffbef092), at 0x54258 This report was generated by t/REPORT on Tue Sep 14 20:00:15 2004 GMT. -------------8<---------- End Bug Report --------------8<---------- Note: Complete the rest of the details and post this bug report to modperl <at> perl.apache.org. To subscribe to the list send an empty email to [EMAIL PROTECTED] +---------------------------------------------------+ | Mike Hanafey | | DuPont Crop Genetics | | Experimental Station E353/132 | | ----------------------+------------------------- | | FedEx, UPS, etc. | US Mail | | ---------------- | ------- | | RT 141 & Henry Clay | POB 80353 | | Wilmington, DE 19803 | Wilmington DE 19880-0353 | | ----------------------+------------------------- | | Phone: (302)695-2614 Fax: (302)695-2728 | | Email: [EMAIL PROTECTED] | +---------------------------------------------------+ -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html