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

Re: [ID 20020525.002] coredump/bad free warning in blead with SIGWARN

From:
Jarkko Hietaniemi
Date:
May 26, 2002 09:03
Subject:
Re: [ID 20020525.002] coredump/bad free warning in blead with SIGWARN
Message ID:
20020526190309.M23596@alpha.hut.fi
And here's Purify trace for my cut-down version:

****  Purify instrumented pureperl (pid 22849 at Sun May 26 11:49:30 2002)
  * Purify 2001a.04.00 Solaris 2 (32-bit) Copyright (C) 1992-2001 Rational Software Corp.  All rights reserved.  
  * For contact information type: "purify -help"
  * Options settings: -chain-length=25 -windows=no -log-file=perl.log \
    -append-logfile=yes -purify \
    -purify-home=/usr/common/apps/purify/releases/purify.sol.2001a.04.00 
  * License successfully checked out.
  * Command-line: pureperl -Ilib /home/jpl/pt 

****  Purify instrumented pureperl (pid 22849)  ****
FMR: Free memory read:
  * This is occurring while in:
	Perl_sv_clear  [sv.c:4984]
	Perl_sv_free   [sv.c:5188]
	Perl_av_undef  [av.c:455]
	Perl_sv_clear  [sv.c:5016]
	Perl_sv_free   [sv.c:5188]
	Perl_cv_undef  [op.c:4409]
	Perl_sv_clear  [sv.c:5010]
	Perl_sv_free   [sv.c:5188]
	Perl_cv_undef  [op.c:4388]
	Perl_sv_clear  [sv.c:5010]
	Perl_sv_free   [sv.c:5188]
	Perl_sv_clear  [sv.c:5042]
	Perl_sv_free   [sv.c:5188]
	Perl_hv_free_ent [hv.c:1594]
	S_hfreeentries [hv.c:1681]
	Perl_hv_undef  [hv.c:1707]
	Perl_sv_clear  [sv.c:5013]
	Perl_sv_free   [sv.c:5188]
	Perl_gp_free   [gv.c:1247]
	Perl_sv_clear  [sv.c:5022]
	Perl_sv_free   [sv.c:5188]
	do_clean_all   [sv.c:400]
	S_visit        [sv.c:292]
	Perl_sv_clean_all [sv.c:418]
	perl_destruct  [perl.c:770]
  * Reading 4 bytes from 0x3ca3e0 in the heap.
  * Address 0x3ca3e0 is 21 bytes past end of a freed block at 0x3ca3c8 of 4 bytes.
  * This block was allocated from:
	malloc         [rtlib.o]
	Perl_safesysmalloc [util.c:78]
	Perl_sv_upgrade [sv.c:1354]
	Perl_sv_setsv_flags [sv.c:3627]
	Perl_pp_sassign [pp_hot.c:108]
	Perl_runops_debug [dump.c:1398]
	S_run_body     [perl.c:1673]
	perl_run       [perl.c:1594]
	main           [perlmain.c:85]
	_start         [crt1.o]
  * There have been 687 frees since this block was freed.

****  Purify instrumented pureperl (pid 22849)  ****
FMR: Free memory read:
  * This is occurring while in:
	Perl_mg_free   [mg.c:351]
	Perl_sv_clear  [sv.c:4985]
	Perl_sv_free   [sv.c:5188]
	Perl_av_undef  [av.c:455]
	Perl_sv_clear  [sv.c:5016]
	Perl_sv_free   [sv.c:5188]
	Perl_cv_undef  [op.c:4409]
	Perl_sv_clear  [sv.c:5010]
	Perl_sv_free   [sv.c:5188]
	Perl_cv_undef  [op.c:4388]
	Perl_sv_clear  [sv.c:5010]
	Perl_sv_free   [sv.c:5188]
	Perl_sv_clear  [sv.c:5042]
	Perl_sv_free   [sv.c:5188]
	Perl_hv_free_ent [hv.c:1594]
	S_hfreeentries [hv.c:1681]
	Perl_hv_undef  [hv.c:1707]
	Perl_sv_clear  [sv.c:5013]
	Perl_sv_free   [sv.c:5188]
	Perl_gp_free   [gv.c:1247]
	Perl_sv_clear  [sv.c:5022]
	Perl_sv_free   [sv.c:5188]
	do_clean_all   [sv.c:400]
	S_visit        [sv.c:292]
	Perl_sv_clean_all [sv.c:418]
  * Reading 4 bytes from 0x3ca3e0 in the heap.
  * Address 0x3ca3e0 is 21 bytes past end of a freed block at 0x3ca3c8 of 4 bytes.
  * This block was allocated from:
	malloc         [rtlib.o]
	Perl_safesysmalloc [util.c:78]
	Perl_sv_upgrade [sv.c:1354]
	Perl_sv_setsv_flags [sv.c:3627]
	Perl_pp_sassign [pp_hot.c:108]
	Perl_runops_debug [dump.c:1398]
	S_run_body     [perl.c:1673]
	perl_run       [perl.c:1594]
	main           [perlmain.c:85]
	_start         [crt1.o]
  * There have been 687 frees since this block was freed.

****  Purify instrumented pureperl (pid 22849)  ****
MSE: Memory segment error:
  * This is occurring while in:
	Perl_mg_free   [mg.c:354]
	Perl_sv_clear  [sv.c:4985]
	Perl_sv_free   [sv.c:5188]
	Perl_av_undef  [av.c:455]
	Perl_sv_clear  [sv.c:5016]
	Perl_sv_free   [sv.c:5188]
	Perl_cv_undef  [op.c:4409]
	Perl_sv_clear  [sv.c:5010]
	Perl_sv_free   [sv.c:5188]
	Perl_cv_undef  [op.c:4388]
	Perl_sv_clear  [sv.c:5010]
	Perl_sv_free   [sv.c:5188]
	Perl_sv_clear  [sv.c:5042]
	Perl_sv_free   [sv.c:5188]
	Perl_hv_free_ent [hv.c:1594]
	S_hfreeentries [hv.c:1681]
	Perl_hv_undef  [hv.c:1707]
	Perl_sv_clear  [sv.c:5013]
	Perl_sv_free   [sv.c:5188]
	Perl_gp_free   [gv.c:1247]
	Perl_sv_clear  [sv.c:5022]
	Perl_sv_free   [sv.c:5188]
	do_clean_all   [sv.c:400]
	S_visit        [sv.c:292]
	Perl_sv_clean_all [sv.c:418]
  * Accessing a memory range that crosses a memory segment boundary.
    Addressing 0x1000010 for 4 bytes ending at 0x1000014,
    which is neither in the heap nor the main stack.

****  Purify instrumented pureperl (pid 22849)  ****
COR: Fatal core dump:
  * This is occurring while in:
	Perl_mg_free   [mg.c:354]
	Perl_sv_clear  [sv.c:4985]
	Perl_sv_free   [sv.c:5188]
	Perl_av_undef  [av.c:455]
	Perl_sv_clear  [sv.c:5016]
	Perl_sv_free   [sv.c:5188]
	Perl_cv_undef  [op.c:4409]
	Perl_sv_clear  [sv.c:5010]
	Perl_sv_free   [sv.c:5188]
	Perl_cv_undef  [op.c:4388]
	Perl_sv_clear  [sv.c:5010]
	Perl_sv_free   [sv.c:5188]
	Perl_sv_clear  [sv.c:5042]
	Perl_sv_free   [sv.c:5188]
	Perl_hv_free_ent [hv.c:1594]
	S_hfreeentries [hv.c:1681]
	Perl_hv_undef  [hv.c:1707]
	Perl_sv_clear  [sv.c:5013]
	Perl_sv_free   [sv.c:5188]
	Perl_gp_free   [gv.c:1247]
	Perl_sv_clear  [sv.c:5022]
	Perl_sv_free   [sv.c:5188]
	do_clean_all   [sv.c:400]
	S_visit        [sv.c:292]
	Perl_sv_clean_all [sv.c:418]
  * Received signal 11 (SIGSEGV - Segmentation Fault)
  * Faulting address = 0x1000010
  * Signal mask: (SIGSEGV) 
  * Pending signals: 


-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen



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