You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Fred Moyer <fr...@redhotpenguin.com> on 2011/03/19 18:11:19 UTC
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
Have you tried 2.0.5?
On Sat, Mar 19, 2011 at 9:15 AM, A. Przygienda <pr...@mail.zeta2.ch> 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@localhost -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<----------
>
>
>
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
Posted by "A. Przygienda" <pr...@mail.zeta2.ch>.
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 <pr...@mail.zeta2.ch> 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@localhost -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<----------
>>
>>
>>
>