[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
#34775 causes run/cloexec.t to hang
Change 34775 by stevep@stevep-kirk on 2008/11/08 05:18:16
Subject: Re: [perl #56644] PerlIO resource leaks on open() and then :pop in :unix and :stdio
From: "Goro Fuji" <gfuji@cpan.org>
Date: Mon, 7 Jul 2008 08:04:52 +0900
Message-ID: <efb9c59b0807061604q476025e9n85893f131a6bf23e@mail.gmail.com>
causes cloexec.t to hang after the second test:
mhx@r2d2 ~/src/perl/dist/rsync/perl-current-debug $ ./perl -I lib t/run/cloexec.t
1..22
ok 1 - parent open fd=3 ($^F=2)
ok 2 - tmpfile 'tmp26883D' exists
(gdb) bt
#0 0xffffe424 in __kernel_vsyscall ()
#1 0xb7f15fd3 in __read_nocancel () from /lib/libpthread.so.0
#2 0x082c902f in PerlIOUnix_read (my_perl=0x8402db8, f=0x84bdb6c, vbuf=0x84bdbe4, count=4096) at perlio.c:2689
#3 0x082c6cba in Perl_PerlIO_read (my_perl=0x8402db8, f=0x84bdb6c, vbuf=0x84bdbe4, count=4096) at perlio.c:1634
#4 0x082cac20 in PerlIOBuf_fill (my_perl=0x8402db8, f=0x841cf98) at perlio.c:3907
#5 0x082c7125 in Perl_PerlIO_fill (my_perl=0x8402db8, f=0x841cf98) at perlio.c:1730
#6 0x082c7d65 in PerlIOBase_read (my_perl=0x8402db8, f=0x841cf98, vbuf=0xbfacda17, count=1) at perlio.c:2148
#7 0x082cacfc in PerlIOBuf_read (my_perl=0x8402db8, f=0x841cf98, vbuf=0xbfacda17, count=1) at perlio.c:3928
#8 0x082c6cba in Perl_PerlIO_read (my_perl=0x8402db8, f=0x841cf98, vbuf=0xbfacda17, count=1) at perlio.c:1634
#9 0x082ccb7f in PerlIO_getc (f=0x841cf98) at perlio.c:5078
#10 0x08186c63 in Perl_sv_gets (my_perl=0x8402db8, sv=0x84a4aa8, fp=0x841cf98, append=0) at sv.c:6889
#11 0x08230227 in Perl_pp_backtick (my_perl=0x8402db8) at pp_sys.c:334
#12 0x080dd888 in Perl_runops_debug (my_perl=0x8402db8) at dump.c:1981
#13 0x08126d4b in S_run_body (my_perl=0x8402db8, oldscope=1) at perl.c:2399
#14 0x08126112 in perl_run (my_perl=0x8402db8) at perl.c:2319
#15 0x08063fa7 in main (argc=4, argv=0xbfad00a4, env=0xbfad00b8) at perlmain.c:117
Summary of my perl5 (revision 5 version 11 subversion 0 patch 34775) configuration:
Platform:
osname=linux, osvers=2.6.25.14mhx, archname=i686-linux-thread-multi-64int-ld
uname='linux r2d2 2.6.25.14mhx #1 smp sat aug 23 13:25:21 mest 2008 i686 intel(r) core(tm)2 cpu t7400 @ 2.16ghz genuineinte
l gnulinux '
config_args='-des -Uinstallusrbinperl -Dusethreads -Duse64bitint -Duselongdouble -Dcf_email=mhx@cpan.org -Dcc=gcc -DDEBUGGI
NG=both -Doptimize=-ggdb3 -Dprefix=/home/mhx/perl/blead-debug -Dusedevel -Uversiononly -Aappend:ccflags= -DPERL_GLOBAL_STRUCT_P
RIVATE -DPL_OP_SLAB_ALLOC -W -Wall '
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=undef, uselongdouble=define
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DPERL_GLOBAL_STRUCT_PRIVATE -DPL_OP_SLAB_ALLOC -W -Wall -DDEBUGGING -fno-st
rict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-ggdb3',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_GLOBAL_STRUCT_PRIVATE -DPL_OP_SLAB_ALLOC -W -Wall -DDEBUGGING -fno-strict-alias
ing -pipe -fstack-protector'
ccversion='', gccversion='4.3.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='long double', nvsize=12, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.6.1.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.6.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -ggdb3 -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_GLOBAL_STRUCT PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP PERL_TRACK_MEMPOOL PL_OP_SLAB_ALLOC
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_LONG_DOUBLE USE_PERLIO USE_REENTRANT_API
Locally applied patches:
DEVEL
Built under linux
Compiled at Nov 8 2008 08:51:58
--
Arithmetic is being able to count up to twenty without taking off your shoes.
-- Mickey Mouse
signature.asc
- Follow-Ups from:
-
"Steve Peters" <steve@fisharerojo.org>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]