develooper Front page | perl.perl5.porters | Postings from August 2013

[perl #9321] Seg-fault running t/io/fs.t under Devel::DProf

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
August 3, 2013 16:28
Subject:
[perl #9321] Seg-fault running t/io/fs.t under Devel::DProf
Message ID:
rt-3.6.HEAD-2552-1375547292-181.9321-15-0@perl.org
On Mon May 13 08:22:35 2002, sam@airtrout.tregar.com wrote:
> 
> This is a bug report for perl from sam@airtrout.tregar.com,
> generated with the help of perlbug 1.33 running under perl v5.7.3.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> 
> Running t/io/fs.t under Devel::DProf seg-faults reliably:
> 
> [sam@airtrout bleadperl]$ cd t
> [sam@airtrout t]$ ../perl -I../lib -d:DProf io/fs.t
> 1..32
> ok 1 - umask
> ok 2 - link a b
> ok 3 - link b c
> ok 4 - link count of triply-linked file
> ok 5 - mode of triply-linked file
> ok 6 - chmod succeeding
> ok 7 - chmod going through
> ok 8 - chmod two files
> ok 9 - chmod going through to c
> ok 10 - chmod going through to x
> ok 11 - unlink two files
> ok 12 - ino of removed file b should be undef
> ok 13 - ino of removed file x should be undef
> ok 14 - rename a b
> ok 15 - ino of renamed file a should be undef
> ok 16 - utime
> ok 17 - non-zero inode num
> # atime - 500000000  mtime - 500000001  delta - 1
> ok 18 - atime
> ok 19 - mtime
> ok 20 - unlink b
> ok 21 - ino of unlinked file b should be undef
> ok 22 # skip: Win32/Netware specific test
> ok 23 # skip: Win32/Netware specific test
> ok 24 - truncation to five bytes
> ok 25 - truncation to zero bytes
> ok 26 - fh resize to 200
> ok 27 - fh resize to 200 working (filename check)
> ok 28 - fh resize to zero
> ok 29 - fh resize to zero working (filename check)
> ok 30 - rename working
> not ok 31 - rename on directories
> # Failed at io/fs.t line 347
> ok 32 - rename on directories working
> Segmentation fault (core dumped)
> 
> Looking at it under gdb, it's faulting at DProf.xs at line 319:
> 
>   GV *gv = CvGV(cv);
> 
> This looks to be the same problem as the one I reported triggering
> through
> Apache::DProf
> (http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-
> 04/msg01559.html)
> 
> I plan to investigate further, although I don't know have high hopes
> for
> fixing this on my own.  DProf.xs makes frighteningly little sense to
> me.
> 
> -sam
> 
> 
> 
> [Please do not change anything below this line]
> -----------------------------------------------------------------
> ---
> Flags:
>     category=library
>     severity=medium
> ---
> Site configuration information for perl v5.7.3:
> 
> Configured by sam at Mon May 13 15:46:02 EDT 2002.
> 
> Summary of my perl5 (revision 5.0 version 7 subversion 3 patch 16575)
> configuration:
>   Platform:
>     osname=linux, osvers=2.2.18, archname=i686-linux
>     uname='linux airtrout 2.2.18 #4 fri dec 29 13:08:17 est 2000 i686
> unknown '
>     config_args='-d -D optimize=-g -Dusedevel'
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef use5005threads=undef useithreads=undef
> usemultiplicity=undef
>     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/usr/include/gdbm',
>     optimize='-g',
>     cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include
> -I/usr/include/gdbm'
>     ccversion='', gccversion='egcs-2.91.66 19990314/Linux (egcs-1.1.2
> release)', 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='cc', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib /usr/lib
>     libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt -lutil
>     perllibs=-lnsl -ldl -lm -lc -lposix -lcrypt -lutil
>     libc=/lib/libc-2.1.3.so, so=so, useshrplib=false,
> libperl=libperl.a
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-
> rdynamic'
>     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
> 
> Locally applied patches:
>     DEVEL16572
> 
> ---
> @INC for perl v5.7.3:
>     lib
>     /usr/local/lib/perl5/5.7.3/i686-linux
>     /usr/local/lib/perl5/5.7.3
>     /usr/local/lib/perl5/site_perl/5.7.3/i686-linux
>     /usr/local/lib/perl5/site_perl/5.7.3
>     /usr/local/lib/perl5/site_perl
>     .
> 
> ---
> Environment for perl v5.7.3:
>     HOME=/home/sam
>     LANG=en_US
>     LANGUAGE (unset)
>     LD_LIBRARY_PATH (unset)
>     LOGDIR (unset)
>    
PATH=/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/local/mysql/bin/:/usr/local/apache/bin:/usr/X11R6/bin:/home/sam/bin
>     PERL_BADLANG (unset)
>     SHELL=/bin/bash
> 


Devel::DProf has been removed from the Perl 5 core distribution:

######
$ corelist Devel::DProf

Data for 2013-05-18
Devel::DProf was first released with perl v5.6.0 and removed from v5.15.0
######

In fact, it has been deprecated in favor of Devel::NYTProf.

Hence, I believe we don't need to explore this ticket further.  I am
taking it for the purpose of closing it in 7 days unless someone wishes
to take it over and move the discussion forward.

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=9321

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About