develooper Front page | perl.perl5.porters | Postings from May 2002

[ID 20020513.015] Seg-fault running t/io/fs.t under Devel::DProf

Thread Next
May 13, 2002 15:22
[ID 20020513.015] Seg-fault running t/io/fs.t under Devel::DProf
Message ID:

This is a bug report for perl from,
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 
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

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.


[Please do not change anything below this line]
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:
    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
    cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    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/, 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:

@INC for perl v5.7.3:

Environment for perl v5.7.3:
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About