Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2006 04:08:16 -0400 (EDT)
From:      parv@pair.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/97124: devel/p5-Devel-ptkdb 1.1091 dumps core
Message-ID:  <20060511080816.AA7CFB64E@default.chvlva.adelphia.net>
Resent-Message-ID: <200605110810.k4B8AEaO011347@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         97124
>Category:       ports
>Synopsis:       devel/p5-Devel-ptkdb 1.1091 dumps core
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 11 08:10:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Parv
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD holestein.holy.cow 6.1-STABLE FreeBSD 6.1-STABLE #4: Sun May 7 19:35:26 EDT 2006 root@holestein.holy.cow:/work/obj/misc/src-6/sys/BOVINE-T42.6 i386

(6.1-STABLE as of 2006.05.06.07.44.56)

Following relevant ports are insalled ...
  p5-Devel-ptkdb-1.1091
  p5-Tk-804.027
  perl-5.8.8
  tk-8.2.3_5
  tk-8.3.5_5
  tk-8.4.11,2


Perl version ...

  Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
    Platform:
      osname=freebsd, osvers=6.1-prerelease, archname=i386-freebsd-64int
      uname='freebsd holestein.holy.cow 6.1-prerelease freebsd 6.1-prerelease #2: thu apr 6 21:56:05 edt 2006 root@holestein.holy.cow:workobjmiscsrc-6sysbovine-t42.6 i386 '
      config_args='-sde -Dprefix=/misc/local -Darchlib=/misc/local/lib/perl5/5.8.8/mach -Dprivlib=/misc/local/lib/perl5/5.8.8 -Dman3dir=/misc/local/lib/perl5/5.8.8/perl/man/man3 -Dman1dir=/misc/local/man/man1 -Dsitearch=/misc/local/lib/perl5/site_perl/5.8.8/mach -Dsitelib=/misc/local/lib/perl5/site_perl/5.8.8 -Dscriptdir=/misc/local/bin -Dsiteman3dir=/misc/local/lib/perl5/5.8.8/man/man3 -Dsiteman1dir=/misc/local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Duseshrplib -Dccflags=-DAPPLLIB_EXP="/misc/local/lib/perl5/5.8.8/BSDPAN" -Doptimize=-g -DDEBUGGING -Ud_dosuid -Di_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint'
      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=define use64bitall=undef uselongdouble=undef
      usemymalloc=y, bincompat5005=undef
    Compiler:
      cc='cc', ccflags ='-DAPPLLIB_EXP="/misc/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include',
      optimize='-g',
      cppflags='-DAPPLLIB_EXP="/misc/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include'
      ccversion='', gccversion='3.4.4 [FreeBSD] 20050518', 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='double', nvsize=8, Off_t='off_t', lseeksize=8
      alignbytes=4, prototype=define
    Linker and Libraries:
      ld='cc', ldflags =' -Wl,-E -L/usr/local/lib'
      libpth=/usr/lib /usr/local/lib
      libs=-lgdbm -lm -lcrypt -lutil
      perllibs=-lm -lcrypt -lutil
      libc=, so=so, useshrplib=true, libperl=libperl.so
      gnulibc_version=''
    Dynamic Linking:
      dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -Wl,-R/misc/local/lib/perl5/5.8.8/mach/CORE'
      cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'


  Characteristics of this binary (from libperl): 
    Compile-time options: DEBUGGING MYMALLOC PERL_MALLOC_WRAP USE_64_BIT_INT
                          USE_LARGE_FILES USE_PERLIO
    Locally applied patches:
          defined-or
    Built under freebsd
    Compiled at Apr 18 2006 23:38:49
    @INC:
      /misc/local/lib/perl5/5.8.8/BSDPAN
      /misc/local/lib/perl5/site_perl/5.8.8/mach
      /misc/local/lib/perl5/site_perl/5.8.8
      /misc/local/lib/perl5/site_perl/5.8.7
      /misc/local/lib/perl5/site_perl/5.8.6
      /misc/local/lib/perl5/site_perl
      /misc/local/lib/perl5/5.8.8/mach
      /misc/local/lib/perl5/5.8.8
      .


>Description:

When i run ...

  perl -d:ptkdb -e '0'


... a window comes & suddenly goes away, and following messages are
generated, core is dumped (on signal 6 as noted later in gdb run) ...

  assertion botched (free()ed/realloc()ed-away memory was overwritten?): !(MallocCfg[MallocCfg_filldead] && MallocCfg[MallocCfg_fillcheck]) || !cmp_pat_4bytes((unsigned char*)(p + 1), (((1 << ((bucket) >> 0)) + ((bucket >= 15 * 1) ? 4096 : 0)) - (sizeof(union overhead) + sizeof (unsigned int))) + sizeof (unsigned int), fill_deadbeef) (malloc.c:1533)
  zsh: abort (core dumped)  /usr/local/bin/perl -d:ptkdb -e '0'


I have also filed the bug report here ...

  http://rt.cpan.org/Public/Bug/Display.html?id=18977


(BTW, i am not having problem w/ any other Perl software.)

Below is the backtrace ...

  This GDB was configured as "i386-marcel-freebsd"...
  Core was generated by `perl'.
  Program terminated with signal 6, Aborted.
  Reading symbols from /misc/local/lib/perl5/5.8.8/mach/CORE/libperl.so...done.
  Loaded symbols for /misc/local/lib/perl5/5.8.8/mach/CORE/libperl.so
  Reading symbols from /lib/libm.so.4...done.
  Loaded symbols for /lib/libm.so.4
  Reading symbols from /lib/libcrypt.so.3...done.
  Loaded symbols for /lib/libcrypt.so.3
  Reading symbols from /lib/libutil.so.5...done.
  Loaded symbols for /lib/libutil.so.5
  Reading symbols from /lib/libc.so.6...done.
  Loaded symbols for /lib/libc.so.6
  Reading symbols from /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/Event/Event.so...done.
  Loaded symbols for /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/Event/Event.so
  Reading symbols from /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Cwd/Cwd.so...done.
  Loaded symbols for /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Cwd/Cwd.so
  Reading symbols from /misc/local/lib/perl5/5.8.8/mach/auto/Encode/Encode.so...done.
  Loaded symbols for /misc/local/lib/perl5/5.8.8/mach/auto/Encode/Encode.so
  Reading symbols from /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/Tk.so...done.
  Loaded symbols for /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/Tk.so
  Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
  Loaded symbols for /usr/X11R6/lib/libX11.so.6
  Reading symbols from /misc/local/lib/perl5/5.8.8/mach/auto/Data/Dumper/Dumper.so...done.
  Loaded symbols for /misc/local/lib/perl5/5.8.8/mach/auto/Data/Dumper/Dumper.so
  Reading symbols from /misc/local/lib/perl5/5.8.8/mach/auto/IO/IO.so...done.
  Loaded symbols for /misc/local/lib/perl5/5.8.8/mach/auto/IO/IO.so
  Reading symbols from /misc/local/lib/perl5/5.8.8/mach/auto/Fcntl/Fcntl.so...done.
  Loaded symbols for /misc/local/lib/perl5/5.8.8/mach/auto/Fcntl/Fcntl.so
  Reading symbols from /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/Text/Text.so...done.
  Loaded symbols for /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/Text/Text.so
  Reading symbols from /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/NBFrame/NBFrame.so...done.
  Loaded symbols for /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/NBFrame/NBFrame.so
  Reading symbols from /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/HList/HList.so...done.
  Loaded symbols for /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/HList/HList.so
  Reading symbols from /misc/local/X/lib/X11/locale/lib/common/xlcDef.so.2...done.
  Loaded symbols for /misc/local/X/lib/X11/locale/lib/common/xlcDef.so.2
  Reading symbols from /misc/local/X/lib/X11/locale/lib/common/ximcp.so.2...done.
  Loaded symbols for /misc/local/X/lib/X11/locale/lib/common/ximcp.so.2
  Reading symbols from /misc/local/lib/perl5/5.8.8/mach/auto/Encode/Unicode/Unicode.so...done.
  Loaded symbols for /misc/local/lib/perl5/5.8.8/mach/auto/Encode/Unicode/Unicode.so
  Reading symbols from /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/Menubutton/Menubutton.so...done.
  Loaded symbols for /misc/local/lib/perl5/site_perl/5.8.8/mach/auto/Tk/Menubutton/Menubutton.so
  Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
  Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
  Reading symbols from /misc/local/X/lib/libXrender.so.1...done.
  Loaded symbols for /misc/local/X/lib/libXrender.so.1
  Reading symbols from /misc/local/X/lib/libXext.so.6...done.
  Loaded symbols for /misc/local/X/lib/libXext.so.6
  Reading symbols from /misc/local/lib/perl5/5.8.8/mach/auto/Encode/Byte/Byte.so...done.
  Loaded symbols for /misc/local/lib/perl5/5.8.8/mach/auto/Encode/Byte/Byte.so
  Reading symbols from /libexec/ld-elf.so.1...done.
  Loaded symbols for /libexec/ld-elf.so.1
  #0  0x14ac9727 in kill () from /lib/libc.so.6
  (gdb) bt
  #0  0x14ac9727 in kill () from /lib/libc.so.6
  #1  0x14ac96c6 in raise () from /lib/libc.so.6
  #2  0x14ac819b in abort () from /lib/libc.so.6
  #3  0x148a1fd3 in botch (diag=0x149a6244 "free()ed/realloc()ed-away memory was overwritten",
      s=0x149a613c "!(MallocCfg[MallocCfg_filldead] && MallocCfg[MallocCfg_fillcheck]) || !cmp_pat_4bytes((unsigned char*)(p + 1), (((1 << ((bucket) >> 0)) + ((bucket >= 15 * 1) ? 4096 : 0)) - (sizeof(union overhead) + s"..., file=0x149a6131 "malloc.c", line=1533) at malloc.c:1325
  #4  0x148a251b in Perl_malloc (nbytes=140) at malloc.c:1532
  #5  0x148a3a04 in Perl_realloc (mp=0x8d64088, nbytes=128) at malloc.c:2294
  #6  0x1491ac8a in Perl_sv_grow (sv=0x8d5fdd0, newlen=128) at sv.c:1660
  #7  0x14921f1e in Perl_sv_catpvn_flags (dsv=0x8d5fdd0, sstr=0x8d5bc08 " /misc/local/lib/perl5/5.8.8/BSDPAN",
      slen=35, flags=0) at sv.c:4431
  #8  0x14922217 in Perl_sv_catsv_flags (dsv=0x8d5fdd0, ssv=0x8d5fe48, flags=2) at sv.c:4515
  #9  0x14954b81 in Perl_pp_require () at pp_ctl.c:3385
  #10 0x148f6e33 in Perl_runops_debug () at dump.c:1459
  #11 0x1489c03a in S_run_body (oldscope=1) at perl.c:2361
  #12 0x1489bb36 in perl_run (my_perl=0x804d030) at perl.c:2283
  #13 0x08049168 in main (argc=4, argv=0xbfbfe508, env=0xbfbfe51c) at perlmain.c:99

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060511080816.AA7CFB64E>