Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Bug report: #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8, which_dup=1) at file_io/unix/filedup.c:59 segfault

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


prz at mail

Mar 19, 2011, 9:15 AM

Post #1 of 5 (799 views)
Permalink
Bug report: #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8, which_dup=1) at file_io/unix/filedup.c:59 segfault

-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

Crash gentoo apache2 start. core dump below, think tries to dup
a 0 file pointer


[DESCRIBE THE PROBLEM HERE]

2. Used Components and their Configuration:

*** mod_perl version 2.000004

*** using
/usr/lib/perl5/vendor_perl/5.12.2/i486-linux-thread-multi/Apache2/BuildConfig.pm

*** Makefile.PL options:
MP_APR_LIB => aprext
MP_APXS => /usr/sbin/apxs2
MP_COMPAT_1X => 1
MP_DEBUG => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_TRACE => 1
MP_USE_DSO => 1


*** The httpd binary was not found


*** (apr|apu)-config linking info

-L/usr/lib -laprutil-1 -ldb-4.7 -lgdbm -lexpat -L/usr/lib
-L/usr/lib -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl



*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 12 subversion 2) configuration:

Platform:
osname=linux, osvers=2.6.34-gentoo-r6z2-embedded-linux,
archname=i486-linux-thread-multi
uname='linux gentoo-p4-tinderbox 2.6.34-gentoo-r6z2-embedded-linux
#5 mon sep 13 15:07:25 cest 2010 i686 intel(r) pentium(r) dual cpu e2180
@ 2.00ghz genuineintel gnulinux '
config_args='-des -Duseshrplib -Darchname=i486-linux-thread
-Dcc=i486-pc-linux-gnu-gcc -Doptimize=-march=i686 -msse -mmmx -O2 -pipe
-fomit-frame-pointer -Dldflags=-Wl,-O1 -Wl,--as-needed -Dprefix=/usr
-Dsiteprefix=/usr -Dvendorprefix=/usr -Dscriptdir=/usr/bin
-Dprivlib=/usr/lib/perl5/5.12.2
-Darchlib=/usr/lib/perl5/5.12.2/i486-linux-thread-multi
-Dsitelib=/usr/lib/perl5/site_perl/5.12.2
-Dsitearch=/usr/lib/perl5/site_perl/5.12.2/i486-linux-thread-multi
-Dvendorlib=/usr/lib/perl5/vendor_perl/5.12.2
-Dvendorarch=/usr/lib/perl5/vendor_perl/5.12.2/i486-linux-thread-multi
-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3
-Dsiteman1dir=/usr/share/man/man1 -Dsiteman3dir=/usr/share/man/man3
-Dvendorman1dir=/usr/share/man/man1 -Dvendorman3dir=/usr/share/man/man3
-Dman1ext=1 -Dman3ext=3pm -Dlibperl=libperl.so.5.12.2 -Dlocincpth=
-Duselargefiles -Dd_semctl_semun -Dcf_by=Gentoo -Dmyhostname=localhost
-Dperladmin=root [at] localhos -Dinstallusrbinperl=n -Ud_csh -Uusenm
-Di_ndbm -Di_gdbm -Di_db -Dusethreads -DDEBUGGING=none
-Dinc_version_list=5.12.1/i486-linux-thread-multi 5.12.1
5.12.0/i486-linux-thread-multi 5.12.0 '
hint=recommended, useposix=true, d_sigaction=define
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='i486-pc-linux-gnu-gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-march=i686 -msse -mmmx -O2 -pipe -fomit-frame-pointer',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe'
ccversion='', gccversion='4.4.4', 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='i486-pc-linux-gnu-gcc', ldflags ='-Wl,-O1 -Wl,--as-needed
-L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
-lgdbm_compat
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.11.2.so, so=so, useshrplib=true,
libperl=libperl.so.5.12.2
gnulibc_version='2.11.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -march=i686 -msse -mmmx -O2
-pipe -fomit-frame-pointer -L/usr/local/lib -Wl,-O1 -Wl,--as-needed'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
Locally applied patches:
0001-gentoo_MakeMaker-RUNPATH.diff
0002-gentoo_config_over.diff
0003-gentoo_cpan_definstalldirs.diff
0004-gentoo_cpanplus_definstalldirs.diff
0005-gentoo_create-libperl-soname.diff
0006-gentoo_MakeMaker-delete_packlist.diff
0007-fixes_8d66b3f9_h2hp_fix.diff
0008-fixes_f178b03b_h2ph_using_deprecated_goto.diff
0009-gentoo_mod-paths.diff
0010-gentoo_enc2xs.diff
0011-gentoo_IO-Compress_AutoLoader_dropped_from_Compress-Zlib.diff
0012-fixes_84601d63_CGI-3.50.diff
0013-fixes_2a1594f6_CGI-3.51.diff
0014-gentoo_drop-fstack-protector.diff
Built under linux
Compiled at Mar 3 2011 22:10:42
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/etc/perl
/usr/lib/perl5/site_perl/5.12.2/i486-linux-thread-multi
/usr/lib/perl5/site_perl/5.12.2
/usr/lib/perl5/vendor_perl/5.12.2/i486-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.12.2
/usr/lib/perl5/5.12.2/i486-linux-thread-multi
/usr/lib/perl5/5.12.2
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl
/usr/local/lib/site_perl
.

*** Packages of interest status:

Apache2 : -
Apache2::Request : -
CGI : 3.51, 3.51
ExtUtils::MakeMaker: 6.56
LWP : 5.836
mod_perl : -
mod_perl2 : 2.000004


3. This is the core dump trace: (if you get a core dump):

#0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8,
which_dup=1) at file_io/unix/filedup.c:59
#1 0xb5dec184 in modperl_hook_post_config_last (pconf=0x80a70a8,
plog=0x80d7168, ptemp=0x80d9170, s=0x80acc58) at mod_perl.c:704
#2 0x0807a572 in ap_run_post_config (pconf=0x80a70a8, plog=0x80d7168,
ptemp=0x80d9170, s=0x80acc58) at config.c:91
#3 0x08066d82 in main (argc=37, argv=0xbfd29864) at main.c:680


This report was generated by /usr/bin/mp2bug on Sat Mar 19 16:03:48 2011
GMT.

-------------8<---------- End Bug Report --------------8<----------
Attachments: prz.vcf (0.26 KB)


fred at redhotpenguin

Mar 19, 2011, 10:11 AM

Post #2 of 5 (773 views)
Permalink
Re: Bug report: #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8, which_dup=1) at file_io/unix/filedup.c:59 segfault [In reply to]

Have you tried 2.0.5?

On Sat, Mar 19, 2011 at 9:15 AM, A. Przygienda <prz [at] mail> wrote:
> -------------8<---------- Start Bug Report ------------8<----------
> 1. Problem Description:
>
>  Crash gentoo apache2 start. core dump below, think tries to dup
>  a 0 file pointer
>
>
>  [DESCRIBE THE PROBLEM HERE]
>
> 2. Used Components and their Configuration:
>
> *** mod_perl version 2.000004
>
> *** using
> /usr/lib/perl5/vendor_perl/5.12.2/i486-linux-thread-multi/Apache2/BuildConfig.pm
>
> *** Makefile.PL options:
>  MP_APR_LIB     => aprext
>  MP_APXS        => /usr/sbin/apxs2
>  MP_COMPAT_1X   => 1
>  MP_DEBUG       => 1
>  MP_GENERATE_XS => 1
>  MP_LIBNAME     => mod_perl
>  MP_TRACE       => 1
>  MP_USE_DSO     => 1
>
>
> *** The httpd binary was not found
>
>
> *** (apr|apu)-config linking info
>
>  -L/usr/lib -laprutil-1  -ldb-4.7  -lgdbm  -lexpat -L/usr/lib
>  -L/usr/lib -lapr-1 -luuid -lrt -lcrypt  -lpthread -ldl
>
>
>
> *** /usr/bin/perl -V
> Summary of my perl5 (revision 5 version 12 subversion 2) configuration:
>
>  Platform:
>    osname=linux, osvers=2.6.34-gentoo-r6z2-embedded-linux,
> archname=i486-linux-thread-multi
>    uname='linux gentoo-p4-tinderbox 2.6.34-gentoo-r6z2-embedded-linux
> #5 mon sep 13 15:07:25 cest 2010 i686 intel(r) pentium(r) dual cpu e2180
> @ 2.00ghz genuineintel gnulinux '
>    config_args='-des -Duseshrplib -Darchname=i486-linux-thread
> -Dcc=i486-pc-linux-gnu-gcc -Doptimize=-march=i686 -msse -mmmx -O2 -pipe
> -fomit-frame-pointer -Dldflags=-Wl,-O1 -Wl,--as-needed -Dprefix=/usr
> -Dsiteprefix=/usr -Dvendorprefix=/usr -Dscriptdir=/usr/bin
> -Dprivlib=/usr/lib/perl5/5.12.2
> -Darchlib=/usr/lib/perl5/5.12.2/i486-linux-thread-multi
> -Dsitelib=/usr/lib/perl5/site_perl/5.12.2
> -Dsitearch=/usr/lib/perl5/site_perl/5.12.2/i486-linux-thread-multi
> -Dvendorlib=/usr/lib/perl5/vendor_perl/5.12.2
> -Dvendorarch=/usr/lib/perl5/vendor_perl/5.12.2/i486-linux-thread-multi
> -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3
> -Dsiteman1dir=/usr/share/man/man1 -Dsiteman3dir=/usr/share/man/man3
> -Dvendorman1dir=/usr/share/man/man1 -Dvendorman3dir=/usr/share/man/man3
> -Dman1ext=1 -Dman3ext=3pm -Dlibperl=libperl.so.5.12.2 -Dlocincpth=
> -Duselargefiles -Dd_semctl_semun -Dcf_by=Gentoo -Dmyhostname=localhost
> -Dperladmin=root [at] localhos -Dinstallusrbinperl=n -Ud_csh -Uusenm
> -Di_ndbm -Di_gdbm -Di_db -Dusethreads -DDEBUGGING=none
> -Dinc_version_list=5.12.1/i486-linux-thread-multi 5.12.1
> 5.12.0/i486-linux-thread-multi 5.12.0 '
>    hint=recommended, useposix=true, d_sigaction=define
>    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='i486-pc-linux-gnu-gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE
> -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
>    optimize='-march=i686 -msse -mmmx -O2 -pipe -fomit-frame-pointer',
>    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe'
>    ccversion='', gccversion='4.4.4', 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='i486-pc-linux-gnu-gcc', ldflags ='-Wl,-O1 -Wl,--as-needed
> -L/usr/local/lib'
>    libpth=/usr/local/lib /lib /usr/lib
>    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
> -lgdbm_compat
>    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
>    libc=/lib/libc-2.11.2.so, so=so, useshrplib=true,
> libperl=libperl.so.5.12.2
>    gnulibc_version='2.11.2'
>  Dynamic Linking:
>    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
>    cccdlflags='-fPIC', lddlflags='-shared -march=i686 -msse -mmmx -O2
> -pipe -fomit-frame-pointer -L/usr/local/lib -Wl,-O1 -Wl,--as-needed'
>
>
> Characteristics of this binary (from libperl):
>  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
>                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
>                        USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
>                        USE_REENTRANT_API
>  Locally applied patches:
>        0001-gentoo_MakeMaker-RUNPATH.diff
>        0002-gentoo_config_over.diff
>        0003-gentoo_cpan_definstalldirs.diff
>        0004-gentoo_cpanplus_definstalldirs.diff
>        0005-gentoo_create-libperl-soname.diff
>        0006-gentoo_MakeMaker-delete_packlist.diff
>        0007-fixes_8d66b3f9_h2hp_fix.diff
>        0008-fixes_f178b03b_h2ph_using_deprecated_goto.diff
>        0009-gentoo_mod-paths.diff
>        0010-gentoo_enc2xs.diff
>        0011-gentoo_IO-Compress_AutoLoader_dropped_from_Compress-Zlib.diff
>        0012-fixes_84601d63_CGI-3.50.diff
>        0013-fixes_2a1594f6_CGI-3.51.diff
>        0014-gentoo_drop-fstack-protector.diff
>  Built under linux
>  Compiled at Mar  3 2011 22:10:42
>  %ENV:
>    PERL_LWP_USE_HTTP_10="1"
>  @INC:
>    /etc/perl
>    /usr/lib/perl5/site_perl/5.12.2/i486-linux-thread-multi
>    /usr/lib/perl5/site_perl/5.12.2
>    /usr/lib/perl5/vendor_perl/5.12.2/i486-linux-thread-multi
>    /usr/lib/perl5/vendor_perl/5.12.2
>    /usr/lib/perl5/5.12.2/i486-linux-thread-multi
>    /usr/lib/perl5/5.12.2
>    /usr/lib/perl5/site_perl
>    /usr/lib/perl5/vendor_perl
>    /usr/local/lib/site_perl
>    .
>
> *** Packages of interest status:
>
> Apache2            : -
> Apache2::Request   : -
> CGI                : 3.51, 3.51
> ExtUtils::MakeMaker: 6.56
> LWP                : 5.836
> mod_perl           : -
> mod_perl2          : 2.000004
>
>
> 3. This is the core dump trace: (if you get a core dump):
>
> #0  file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8,
> which_dup=1) at file_io/unix/filedup.c:59
> #1  0xb5dec184 in modperl_hook_post_config_last (pconf=0x80a70a8,
> plog=0x80d7168, ptemp=0x80d9170, s=0x80acc58) at mod_perl.c:704
> #2  0x0807a572 in ap_run_post_config (pconf=0x80a70a8, plog=0x80d7168,
> ptemp=0x80d9170, s=0x80acc58) at config.c:91
> #3  0x08066d82 in main (argc=37, argv=0xbfd29864) at main.c:680
>
>
> This report was generated by /usr/bin/mp2bug on Sat Mar 19 16:03:48 2011
> GMT.
>
> -------------8<---------- End Bug Report --------------8<----------
>
>
>


prz at mail

Mar 19, 2011, 12:47 PM

Post #3 of 5 (759 views)
Permalink
Re: Bug report: #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8, which_dup=1) at file_io/unix/filedup.c:59 segfault [In reply to]

On 03/19/2011 06:11 PM, Fred Moyer wrote:
> Have you tried 2.0.5?
>

nope, was on gentoo 2008 which I tried to keep but looks like I must
upgrade so I check out 2011 distro now and see whether it persists

-- tony

> On Sat, Mar 19, 2011 at 9:15 AM, A. Przygienda <prz [at] mail> wrote:
>> -------------8<---------- Start Bug Report ------------8<----------
>> 1. Problem Description:
>>
>> Crash gentoo apache2 start. core dump below, think tries to dup
>> a 0 file pointer
>>
>>
>> [DESCRIBE THE PROBLEM HERE]
>>
>> 2. Used Components and their Configuration:
>>
>> *** mod_perl version 2.000004
>>
>> *** using
>> /usr/lib/perl5/vendor_perl/5.12.2/i486-linux-thread-multi/Apache2/BuildConfig.pm
>>
>> *** Makefile.PL options:
>> MP_APR_LIB => aprext
>> MP_APXS => /usr/sbin/apxs2
>> MP_COMPAT_1X => 1
>> MP_DEBUG => 1
>> MP_GENERATE_XS => 1
>> MP_LIBNAME => mod_perl
>> MP_TRACE => 1
>> MP_USE_DSO => 1
>>
>>
>> *** The httpd binary was not found
>>
>>
>> *** (apr|apu)-config linking info
>>
>> -L/usr/lib -laprutil-1 -ldb-4.7 -lgdbm -lexpat -L/usr/lib
>> -L/usr/lib -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl
>>
>>
>>
>> *** /usr/bin/perl -V
>> Summary of my perl5 (revision 5 version 12 subversion 2) configuration:
>>
>> Platform:
>> osname=linux, osvers=2.6.34-gentoo-r6z2-embedded-linux,
>> archname=i486-linux-thread-multi
>> uname='linux gentoo-p4-tinderbox 2.6.34-gentoo-r6z2-embedded-linux
>> #5 mon sep 13 15:07:25 cest 2010 i686 intel(r) pentium(r) dual cpu e2180
>> @ 2.00ghz genuineintel gnulinux '
>> config_args='-des -Duseshrplib -Darchname=i486-linux-thread
>> -Dcc=i486-pc-linux-gnu-gcc -Doptimize=-march=i686 -msse -mmmx -O2 -pipe
>> -fomit-frame-pointer -Dldflags=-Wl,-O1 -Wl,--as-needed -Dprefix=/usr
>> -Dsiteprefix=/usr -Dvendorprefix=/usr -Dscriptdir=/usr/bin
>> -Dprivlib=/usr/lib/perl5/5.12.2
>> -Darchlib=/usr/lib/perl5/5.12.2/i486-linux-thread-multi
>> -Dsitelib=/usr/lib/perl5/site_perl/5.12.2
>> -Dsitearch=/usr/lib/perl5/site_perl/5.12.2/i486-linux-thread-multi
>> -Dvendorlib=/usr/lib/perl5/vendor_perl/5.12.2
>> -Dvendorarch=/usr/lib/perl5/vendor_perl/5.12.2/i486-linux-thread-multi
>> -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3
>> -Dsiteman1dir=/usr/share/man/man1 -Dsiteman3dir=/usr/share/man/man3
>> -Dvendorman1dir=/usr/share/man/man1 -Dvendorman3dir=/usr/share/man/man3
>> -Dman1ext=1 -Dman3ext=3pm -Dlibperl=libperl.so.5.12.2 -Dlocincpth=
>> -Duselargefiles -Dd_semctl_semun -Dcf_by=Gentoo -Dmyhostname=localhost
>> -Dperladmin=root [at] localhos -Dinstallusrbinperl=n -Ud_csh -Uusenm
>> -Di_ndbm -Di_gdbm -Di_db -Dusethreads -DDEBUGGING=none
>> -Dinc_version_list=5.12.1/i486-linux-thread-multi 5.12.1
>> 5.12.0/i486-linux-thread-multi 5.12.0 '
>> hint=recommended, useposix=true, d_sigaction=define
>> 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='i486-pc-linux-gnu-gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE
>> -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
>> optimize='-march=i686 -msse -mmmx -O2 -pipe -fomit-frame-pointer',
>> cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe'
>> ccversion='', gccversion='4.4.4', 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='i486-pc-linux-gnu-gcc', ldflags ='-Wl,-O1 -Wl,--as-needed
>> -L/usr/local/lib'
>> libpth=/usr/local/lib /lib /usr/lib
>> libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
>> -lgdbm_compat
>> perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
>> libc=/lib/libc-2.11.2.so, so=so, useshrplib=true,
>> libperl=libperl.so.5.12.2
>> gnulibc_version='2.11.2'
>> Dynamic Linking:
>> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
>> cccdlflags='-fPIC', lddlflags='-shared -march=i686 -msse -mmmx -O2
>> -pipe -fomit-frame-pointer -L/usr/local/lib -Wl,-O1 -Wl,--as-needed'
>>
>>
>> Characteristics of this binary (from libperl):
>> Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
>> PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
>> USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
>> USE_REENTRANT_API
>> Locally applied patches:
>> 0001-gentoo_MakeMaker-RUNPATH.diff
>> 0002-gentoo_config_over.diff
>> 0003-gentoo_cpan_definstalldirs.diff
>> 0004-gentoo_cpanplus_definstalldirs.diff
>> 0005-gentoo_create-libperl-soname.diff
>> 0006-gentoo_MakeMaker-delete_packlist.diff
>> 0007-fixes_8d66b3f9_h2hp_fix.diff
>> 0008-fixes_f178b03b_h2ph_using_deprecated_goto.diff
>> 0009-gentoo_mod-paths.diff
>> 0010-gentoo_enc2xs.diff
>> 0011-gentoo_IO-Compress_AutoLoader_dropped_from_Compress-Zlib.diff
>> 0012-fixes_84601d63_CGI-3.50.diff
>> 0013-fixes_2a1594f6_CGI-3.51.diff
>> 0014-gentoo_drop-fstack-protector.diff
>> Built under linux
>> Compiled at Mar 3 2011 22:10:42
>> %ENV:
>> PERL_LWP_USE_HTTP_10="1"
>> @INC:
>> /etc/perl
>> /usr/lib/perl5/site_perl/5.12.2/i486-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.12.2
>> /usr/lib/perl5/vendor_perl/5.12.2/i486-linux-thread-multi
>> /usr/lib/perl5/vendor_perl/5.12.2
>> /usr/lib/perl5/5.12.2/i486-linux-thread-multi
>> /usr/lib/perl5/5.12.2
>> /usr/lib/perl5/site_perl
>> /usr/lib/perl5/vendor_perl
>> /usr/local/lib/site_perl
>> .
>>
>> *** Packages of interest status:
>>
>> Apache2 : -
>> Apache2::Request : -
>> CGI : 3.51, 3.51
>> ExtUtils::MakeMaker: 6.56
>> LWP : 5.836
>> mod_perl : -
>> mod_perl2 : 2.000004
>>
>>
>> 3. This is the core dump trace: (if you get a core dump):
>>
>> #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8,
>> which_dup=1) at file_io/unix/filedup.c:59
>> #1 0xb5dec184 in modperl_hook_post_config_last (pconf=0x80a70a8,
>> plog=0x80d7168, ptemp=0x80d9170, s=0x80acc58) at mod_perl.c:704
>> #2 0x0807a572 in ap_run_post_config (pconf=0x80a70a8, plog=0x80d7168,
>> ptemp=0x80d9170, s=0x80acc58) at config.c:91
>> #3 0x08066d82 in main (argc=37, argv=0xbfd29864) at main.c:680
>>
>>
>> This report was generated by /usr/bin/mp2bug on Sat Mar 19 16:03:48 2011
>> GMT.
>>
>> -------------8<---------- End Bug Report --------------8<----------
>>
>>
>>
>
Attachments: prz.vcf (0.26 KB)


prz at mail

May 5, 2011, 6:58 AM

Post #4 of 5 (613 views)
Permalink
Re: Bug report: #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8, which_dup=1) at file_io/unix/filedup.c:59 segfault [In reply to]

Same problem on 2.0.5 and gentoo 2010

That's how I run it

r -D SSL -D SSL_DEFAULT_VHOST -D DEFAULT_VHOST -D INFO -D DAV -D DAV_FS
-D CACHE -D MEM_CACHE -D PHP5 -D PERL_VHOST -D PYTHON -D STATUS -D PROXY
-D PROXY_HTML -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -E
/var/log/apache2/startuperror.log -k start


core_module (static)
mpm_itk_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_alias_module (shared)
authn_anon_module (shared)
authn_dbm_module (shared)
authn_default_module (shared)
authn_file_module (shared)
authz_dbm_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_owner_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cache_module (shared)
cgi_module (shared)
cgid_module (shared)
dav_module (shared)
dav_fs_module (shared)
dav_lock_module (shared)
deflate_module (shared)
dir_module (shared)
disk_cache_module (shared)
env_module (shared)
expires_module (shared)
ext_filter_module (shared)
file_cache_module (shared)
filter_module (shared)
headers_module (shared)
include_module (shared)
info_module (shared)
log_config_module (shared)
logio_module (shared)
mem_cache_module (shared)
mime_module (shared)
mime_magic_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_connect_module (shared)
proxy_http_module (shared)
rewrite_module (shared)
setenvif_module (shared)
speling_module (shared)
ssl_module (shared)
status_module (shared)
unique_id_module (shared)
usertrack_module (shared)
vhost_alias_module (shared)
proxy_html_module (shared)
php5_module (shared)
python_module (shared)
perl_module (shared)
Attachments: prz.vcf (0.26 KB)


prz at mail

May 5, 2011, 7:24 AM

Post #5 of 5 (614 views)
Permalink
Re: Bug report: #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8, which_dup=1) at file_io/unix/filedup.c:59 segfault [In reply to]

After experimenting around, the reason is the global directive
I use (perfectly valid)

ErrorLog syslog:local6

that crashes

#ifdef MP_TRACE
/* httpd core open_logs handler re-opens s->error_log, which might
* change, even though it still points to the same physical file
* (.e.g on win32 the filehandle will be different. Therefore
* reset the tracing logfile setting here, since this is the
* earliest place, happening after the open_logs phase.
*
* Moreover, we need to dup the filehandle so that when the server
* shuts down, we will be able to log to error_log after Apache
* has closed it (which happens too early for our likening).
*/
{
apr_file_t *dup;
MP_RUN_CROAK(apr_file_dup(&dup, s->error_log, pconf),
"mod_perl core post_config");
modperl_trace_logfile_set(dup);
}
#endif


since s->error_log is NULL

not sure how to fix that one though

-- tony



On 05/05/2011 03:58 PM, A. Przygienda wrote:
> Same problem on 2.0.5 and gentoo 2010
>
> That's how I run it
>
> r -D SSL -D SSL_DEFAULT_VHOST -D DEFAULT_VHOST -D INFO -D DAV -D DAV_FS
> -D CACHE -D MEM_CACHE -D PHP5 -D PERL_VHOST -D PYTHON -D STATUS -D PROXY
> -D PROXY_HTML -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -E
> /var/log/apache2/startuperror.log -k start
>
>
> core_module (static)
> mpm_itk_module (static)
> http_module (static)
> so_module (static)
> actions_module (shared)
> alias_module (shared)
> auth_basic_module (shared)
> authn_alias_module (shared)
> authn_anon_module (shared)
> authn_dbm_module (shared)
> authn_default_module (shared)
> authn_file_module (shared)
> authz_dbm_module (shared)
> authz_default_module (shared)
> authz_groupfile_module (shared)
> authz_host_module (shared)
> authz_owner_module (shared)
> authz_user_module (shared)
> autoindex_module (shared)
> cache_module (shared)
> cgi_module (shared)
> cgid_module (shared)
> dav_module (shared)
> dav_fs_module (shared)
> dav_lock_module (shared)
> deflate_module (shared)
> dir_module (shared)
> disk_cache_module (shared)
> env_module (shared)
> expires_module (shared)
> ext_filter_module (shared)
> file_cache_module (shared)
> filter_module (shared)
> headers_module (shared)
> include_module (shared)
> info_module (shared)
> log_config_module (shared)
> logio_module (shared)
> mem_cache_module (shared)
> mime_module (shared)
> mime_magic_module (shared)
> negotiation_module (shared)
> proxy_module (shared)
> proxy_connect_module (shared)
> proxy_http_module (shared)
> rewrite_module (shared)
> setenvif_module (shared)
> speling_module (shared)
> ssl_module (shared)
> status_module (shared)
> unique_id_module (shared)
> usertrack_module (shared)
> vhost_alias_module (shared)
> proxy_html_module (shared)
> php5_module (shared)
> python_module (shared)
> perl_module (shared)
>
Attachments: prz.vcf (0.26 KB)

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.