This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6694] New: auto_free seems to trigger *** glibc detected *** stap: double free or corruption (fasttop)
- From: "mwielaard at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 25 Jun 2008 12:36:03 -0000
- Subject: [Bug translator/6694] New: auto_free seems to trigger *** glibc detected *** stap: double free or corruption (fasttop)
- Reply-to: sourceware-bugzilla at sourceware dot org
Since the following commit there seems to be a malloc/free issue with
testsuite/systemtap.base/stmt_rel.exp:
commit 2e67a43b11d5b44f962f1c6a0ad89d96e5645a44
Author: Tim Moore <moore@blackbox.bricoworks.com>
Date: Tue Jun 24 14:26:52 2008 +0200
Cleanup in tapsets.cxx
Running /home/mark/src/systemtap/testsuite/systemtap.base/stmt_rel.exp ...
*** glibc detected *** stap: double free or corruption (fasttop):
0x00002aaab5c90d80 ***
======= Backtrace: =========
stap[0x2aaaaab722ea]
[... lots more ...]
FAIL...
You can replicate it by hand with:
./stap testsuite/systemtap.base/stmt_rel.stp
Running with export MALLOC_CHECK_=3 under gdb gives:
Program received signal SIGABRT, Aborted.
[Switching to Thread 46912524253104 (LWP 9937)]
0x00002aaaabc24ec5 in raise (sig=<value optimized out>)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
Current language: auto; currently c
(gdb) bt
#0 0x00002aaaabc24ec5 in raise (sig=<value optimized out>)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00002aaaabc26970 in abort () at abort.c:88
#2 0x00002aaaabc5f0db in __libc_message (do_abort=2,
fmt=0x2aaaabd16f08 "*** glibc detected *** %s: %s: 0x%s ***\n")
at ../sysdeps/unix/sysv/linux/libc_fatal.c:170
#3 0x00002aaaabc6a775 in free_check (mem=0x2aaab5c8c990,
caller=<value optimized out>) at malloc.c:5891
#4 0x00002aaaabc69ec7 in __libc_free (mem=0x6) at malloc.c:3590
#5 0x00002aaaaab722ea in dwflpp::iterate_over_srcfile_lines (
this=0x2aaaacf43a40, srcfile=0x2aaab5206320 "fs/bio.c",
lines=0x7fffdef4dcb4, need_single_match=true, line_type=WILDCARD,
callback=0x2aaaaab4f650 <query_srcfile_line>, data=0x7fffdef4db30)
at auto_free.h:22
[...]
--
Summary: auto_free seems to trigger *** glibc detected *** stap:
double free or corruption (fasttop)
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mwielaard at redhat dot com
CC: timoore at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6694
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.