Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 28965 invoked from network); 16 Apr 2007 13:27:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Apr 2007 13:27:06 -0000 Received: (qmail 96006 invoked by uid 500); 16 Apr 2007 13:27:04 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 95995 invoked by uid 500); 16 Apr 2007 13:27:04 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 95979 invoked by uid 99); 16 Apr 2007 13:27:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2007 06:27:04 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.73.178.106] (HELO web60218.mail.yahoo.com) (209.73.178.106) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 16 Apr 2007 06:26:54 -0700 Received: (qmail 88293 invoked by uid 60001); 16 Apr 2007 13:26:33 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=PRMXoXL3hmQCg6tkYk4rCWiR5BGfrrCgJI3Swffx6ufbiIt2GwRE3gKPbJaQF7JEhzGuJoxgi5tbYaRU5ZtxUa68Cy3pqz0e2DeHmFgPsRoXUbHkZk3rvmtWrXRR59zITc/NjOkn7+XxdXdLyXAY5FRiD04+h2jkMD+eya5Nq7E=; X-YMail-OSG: YyDEnEoVM1kqSxqI1ykAlpQU4QTq1A8yoZWCOmQpMo85TAtcSiVi6vE.VlovdAv4ZZS.bTmDHAs5dEZyUIHTRRRJ1C9n4n7nAy.C02EqjbT_0_VCkJ1D Received: from [193.179.225.19] by web60218.mail.yahoo.com via HTTP; Mon, 16 Apr 2007 06:26:33 PDT Date: Mon, 16 Apr 2007 06:26:33 -0700 (PDT) From: Ivan Marcak Subject: Re: mod_perl2 compiled with debug info cores during startup, without debug info everything's ok To: modperl@perl.apache.org In-Reply-To: <650335.85352.qm@web60212.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <263048.87699.qm@web60218.mail.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org I'm sorry... here's better formated text: Hi all, -------------8<---------- Start Bug Report------------8<---------- 1. Problem Description: As subject says I compiled the mod_perl2 successfully and without any problems and everything worked perfectly. I needed to debug some code so I recompiled mod_perl2 with debug information. Now I'm getting Bus Error immediately at startup when Apache process the configuration (I think documentation calls it "The open_logs Phase" - ap_run_open_logs...). I tried to isolate error and I wrote minimal config: --------------------------------- LoadModule perl_module /tmp/test/mod_perl.so Listen 80 ServerName localhost LogFormat "%h %l %u %t \"%r\" %>s %b" common ErrorLog /tmp/test/error_log CustomLog /tmp/test/error_log common PidFile /tmp/test/m.pid LockFile /tmp/test/m.lock --------------------------------- running: /opt/apache-2.2.2/bin/httpd -d /tmp -f /tmp/test/this_min.conf with old mod_perl.so (no debug infos) works. with new mod_perl.so (debug infos) cores. Debug versions I created with: adding -Doptimize='-g' to perl Configure command adding MP_DEBUG=1 to mod_perl2 "perl Makefile.PL" command 2. Used Components and their Configuration: *** mod_perl version 2.000002 *** using /opt/perl-5.8.8/lib/site_perl/5.8.8/sun4u-solaris-thread-multi/Apache2/BuildConfig.pm *** Makefile.PL options: MP_APR_LIB => aprext MP_AP_PREFIX => /opt/apache-2.2.2 MP_COMPAT_1X => 1 MP_DEBUG => 1 MP_GENERATE_XS => 1 MP_LIBNAME => mod_perl MP_TRACE => 1 MP_USE_DSO => 1 Server version: Apache/2.2.2 Server built: Oct 9 2006 16:59:24 Server's Module Magic Number: 20051115:2 Server loaded: APR 1.2.7, APR-Util 1.2.7 Compiled using: APR 1.2.7, APR-Util 1.2.7 Architecture: 32-bit Server MPM: Worker threaded: yes (fixed thread count) forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/worker" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_FCNTL_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/opt/apache-2.2.2" -D SUEXEC_BIN="/opt/apache-2.2.2/bin/suexec" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" *** /opt/perl-5.8.8/bin/perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=solaris, osvers=2.8, archname=sun4u-solaris-thread-multi uname='sunos alfa 5.8 generic_108528-22 sun4u sparc sunw,sun-fire-v210 ' config_args='-Dinstallprefix=/opt/perl-5.8.8 -Doptimize=-g -Dprefix=/opt/perl-5.8.8 -Dcc=/opt/SunStudio11/SUNWspro/bin/cc -Dccflags=-mt -xarch=v8plus -KPIC -Dsparc -D__solaris__ -D_REENTRANT -Dldflags=-mt -xarch=v8plus -lpthread -lrt -L/lib -lm -ldl -Dusemymalloc -des -Darchname=sun4u-solaris -Dusedl -Dusethreads -Dosname=solaris' 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=y, bincompat5005=undef Compiler: cc='/opt/SunStudio11/SUNWspro/bin/cc', ccflags ='-D_REENTRANT -mt -xarch=v8plus -KPIC -Dsparc -D__solaris__ -DDEBUGGING -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-g', cppflags='-D_REENTRANT -mt -xarch=v8plus -KPIC -Dsparc -D__solaris__ -DDEBUGGING -I/usr/local/include' ccversion='Sun C 5.8 2005/10/13', 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='/opt/SunStudio11/SUNWspro/bin/cc', ldflags ='-mt -xarch=v8plus -lpthread -lrt -L/lib -lm -ldl -L/usr/lib -L/usr/ccs/lib -L/opt/SunStudio11/SUNWspro/prod/lib/v8plus -L/opt/SunStudio11/SUNWspro/prod/lib -L/usr/local/lib ' libpth=/usr/lib /usr/ccs/lib /opt/SunStudio11/SUNWspro/prod/lib/v8plus /opt/SunStudio11/SUNWspro/prod/lib /lib /usr/local/lib libs=-lsocket -lnsl -ldl -lm -lpthread -lc perllibs=-lsocket -lnsl -ldl -lm -lpthread -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/lib -L/usr/lib -L/usr/ccs/lib -L/opt/SunStudio11/SUNWspro/prod/lib/v8plus -L/opt/SunStudio11/SUNWspro/prod/lib -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY MYMALLOC PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under solaris Compiled at Apr 14 2007 12:42:04 %ENV: PERL_LWP_USE_HTTP_10="1" @INC: /opt/perl-5.8.8/lib/5.8.8/sun4u-solaris-thread-multi /opt/perl-5.8.8/lib/5.8.8 /opt/perl-5.8.8/lib/site_perl/5.8.8/sun4u-solaris-thread-multi /opt/perl-5.8.8/lib/site_perl/5.8.8 /opt/perl-5.8.8/lib/site_perl . *** Packages of interest status: Apache2 : - Apache2::Request : - CGI : 3.15 ExtUtils::MakeMaker: 6.30 LWP : - mod_perl : - mod_perl2 : 2.000002 3. This is the core dump trace: [1] fill_pat_4bytes(s = 0x1a3000 "", nbytes = 4096U, fill = 0xfe36cb29 "\xde\xad\xbe\xef\xde \xad\xbe\xef\xde\xad\xbe\xef\xde\xad\xbe\xef\xfe\xed\xad\xad\xfe\xed\xad\xad\xfe\xed\xad \xad\xfe\xed\xad\xadperl_get_emergency_buffer"), line 1339 in "malloc.c" [2] morecore(bucket = 12), line 1954 in "malloc.c" [3] Perl_malloc(nbytes = 4092U), line 1464 in "malloc.c" [4] S_more_sv(my_perl = 0x1a03a0), line 215 in "sv.c" [5] Perl_newSV(my_perl = 0x1a03a0, len = 79U), line 4593 in "sv.c" [6] perl_construct(my_perl = 0x1a03a0), line 283 in "perl.c" [7] modperl_startup(s = 0x10bc50, p = 0x102440), line 246 in "mod_perl.c" [8] modperl_startup(s = 0x10bc50, p = 0x102440), line 207 in "mod_perl.c" [9] modperl_init(base_server = 0x10bc50, p = 0x102440), line 458 in "mod_perl.c" [10] modperl_hook_init(pconf = 0x102440, plog = 0x140538, ptemp = 0x142540, s = 0x10bc50), line 626 in "mod_perl.c" [11] ap_run_open_logs(0x102440, 0x140538, 0x142540, 0x10bc50, 0x102440, 0xebe90), at 0x4cac4 [12] main(0xfffda870, 0x0, 0xef9dc, 0xef9ec, 0x1004c0, 0xebe90), at 0x2c224 This report was generated by ./mod_perl/perl-5.8.8/bin/mp2bug on Mon Apr 16 12:07:38 2007 GMT. -------------8<---------- End Bug Report --------------8<---------- Regards, Ivan. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com