perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Marcak <acsti...@yahoo.com>
Subject Re: mod_perl2 compiled with debug info cores during startup, without debug info everything's ok
Date Mon, 16 Apr 2007 13:26:33 GMT

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 

Mime
View raw message