[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl5-porters
Subject:    [perl #28099] Storable free_context() crash
From:       "root () site-3 ! infogears ! com (via RT)" <perlbug-followup () perl ! org>
Date:       2004-03-31 1:26:53
Message-ID: rt-3.0.8-28099-83100.11.5782556937759 () perl ! org
[Download RAW message or body]

# New Ticket Created by  root@site-3.infogears.com 
# Please include the string:  [perl #28099]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=28099 >



This is a bug report for perl from root@site-3.infogears.com,
generated with the help of perlbug 1.34 running under perl v5.8.3.


-----------------------------------------------------------------

Crasher in 5.8.3

backtrace:

#0  0x403f2d2a in free_context (cxt=0xbe9e898) at Storable.xs:1465
#1  0x403fb0e2 in do_store (f=0x0, sv=0xc1064f4, optype=1, network_order=1, \
res=0xbffff950)  at Storable.xs:3529
#2  0x403fb1eb in net_mstore (sv=0xb8b5554) at Storable.xs:3607
#3  0x404017dd in XS_Storable_net_mstore (cv=0x8205968) at Storable.c:6008
#4  0x080cc880 in Perl_pp_entersub () at pp_hot.c:2840
#5  0x080af483 in Perl_runops_debug () at dump.c:1438
#6  0x0806313f in S_call_body (myop=0xbffffb70, is_eval=0) at perl.c:2221
#7  0x08062dc5 in Perl_call_sv (sv=0x8a1e5cc, flags=150) at perl.c:2139
#8  0x080d6f08 in Perl_sv_clear (sv=0xba564d0) at sv.c:5109
#9  0x080d7792 in Perl_sv_free (sv=0xba564d0) at sv.c:5355
#10 0x080cdde0 in do_clean_objs (sv=0xba9130c) at sv.c:385
#11 0x080cdc98 in S_visit (f=0x80cdd0f <do_clean_objs>) at sv.c:331
#12 0x080cdf70 in Perl_sv_clean_objs () at sv.c:424
#13 0x0805fb15 in perl_destruct (my_perl=0x816bba8) at perl.c:496
#14 0x0805e576 in main (argc=5, argv=0xbffffdf4, env=0xbffffe0c) at perlmain.c:88
#15 0x400a1a67 in __libc_start_main () from /lib/i686/libc.so.6


In frame #0 ctx is this:


(gdb) p cxt
$1 = (stcxt_t *) 0xbe9e898
(gdb) p *cxt
$2 = {entry = 0, optype = 0, hseen = 0x0, hook_seen = 0x0, aseen = 0x0, hclass = 0x0,
  aclass = 0x0, hook = 0x0, tagnum = 16, classnum = -1, netorder = 1, s_tainted = 0,
  forgive_me = -1, deparse = -1, eval = 0x0, canonical = -1, accept_future_minor = 0,
  s_dirty = 0, membuf_ro = 0, keybuf = {arena = 0x0, asiz = 0, aptr = 0x0, aend = \
0x0},  membuf = {arena = 0xc0d6308 "\005\006\003", asiz = 8192,
    aptr = 0xc0d64b9 "[data removed]"...,
    aend = 0xc0d8308 ""}, msaved = {arena = 0x0, asiz = 0, aptr = 0x0,
    aend = 0x0}, fio = 0x0, ver_major = 0, ver_minor = 0, retrieve_vtbl = 0x0, prev = \
0x98,  my_sv = 0xba301a8}


(gdb) p prev
$3 = (stcxt_t *) 0x0

It appears by these lines that if assertions were enabled this would fail, as prev is \
null.

ASSERT(!cxt->s_dirty, ("clean context"));
ASSERT(prev, ("not freeing root context"));

Any help would be appreciated



[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.8.3:

Configured by root at Fri Mar  5 12:02:19 MST 2004.

Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
  Platform:
    osname=linux, osvers=2.4.24, archname=i686-linux
    uname='linux 2.4.24 #6 mon feb 9 21:28:02 mst 2004 i686 i686 i386 gnulinux '
    config_args=''
    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='3.2.2 20030222 (Red Hat Linux \
3.2.2-5)', 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 -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.2'
  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.8.3:
    /usr/local/lib/perl5/5.8.3/i686-linux
    /usr/local/lib/perl5/5.8.3
    /usr/local/lib/perl5/site_perl/5.8.3/i686-linux
    /usr/local/lib/perl5/site_perl/5.8.3
    /usr/local/lib/perl5/site_perl/5.8.2/i686-linux
    /usr/local/lib/perl5/site_perl/5.8.2
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.8.3:
    HOME=/root
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/BerkeleyDB.4.2/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/ \
sbin:/usr/bin:/usr/X11R6/bin:/usr/local/pgsql/bin:/usr/local/ibolis-corporate:/usr/local/java/bin:/root/bin
  PERL_BADLANG (unset)
    SHELL=/bin/bash


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic