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

Occasional assertion failure in S_sv_del_backref

Thread Next
Nicholas Clark
August 22, 2008 02:18
Occasional assertion failure in S_sv_del_backref
Message ID:
I'm sometimes getting an assertion failure in S_sv_del_backref()

Core was generated by `/home/nick/p4perl/perl/perl ../lib/base/t/warnings.t'.
Program terminated with signal 6, Aborted.
#0  0x00002ab3a544e07b in raise () from /lib/
(gdb) where
#0  0x00002ab3a544e07b in raise () from /lib/
#1  0x00002ab3a544f84e in abort () from /lib/
#2  0x00002ab3a5447af4 in __assert_fail () from /lib/
#3  0x0000000000535935 in S_sv_del_backref (my_perl=0x8d9010, tsv=0x8fa7a0, 
    sv=0xa2cd50) at sv.c:5107
#4  0x000000000053962d in Perl_sv_clear (my_perl=0x8d9010, sv=0xa2cd50)
    at sv.c:5506
#5  0x0000000000539dc4 in Perl_sv_free2 (my_perl=0x8d9010, sv=0xa2cd50)
    at sv.c:5676
#6  0x000000000050de6f in do_clean_all (my_perl=0x8d9010, sv=0xa2cd50)
    at sv.c:524
#7  0x000000000050ce68 in S_visit (my_perl=0x8d9010, 
    f=0x50dda2 <do_clean_all>, flags=0, mask=0) at sv.c:396
#8  0x000000000050deb4 in Perl_sv_clean_all (my_perl=0x8d9010) at sv.c:543
#9  0x00000000004d8c50 in perl_destruct (my_perl=0x8d9010) at perl.c:1132
#10 0x000000000041e03e in main (argc=2, argv=0x7fff05e8c408, 
    env=0x7fff05e8c420) at perlmain.c:115

The assertion is here:

    if (!av)
	Perl_croak(aTHX_ "panic: del_backref");


Part of me thinks "well, all bets are off during global destruction"
but wasn't this array given a higher reference count to make it last longer
than its parent during global destruction? So is this exposing a bug?

Nicholas Clark

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