Bug 136844 - corrupted malloc line when using --gen-suppressions=yes
Summary: corrupted malloc line when using --gen-suppressions=yes
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (other bugs)
Version First Reported In: 3.2.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
: 138507 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-04 20:54 UTC by Stefan Hoelldampf
Modified: 2006-12-25 09:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Testcase (116 bytes, text/plain)
2006-11-04 20:57 UTC, Stefan Hoelldampf
Details
--gen-suppressions=yes output (1.77 KB, text/plain)
2006-11-04 21:01 UTC, Stefan Hoelldampf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Hoelldampf 2006-11-04 20:54:13 UTC
The option --gen-suppressions=yes creates a suppression like the following for
malloc:

{
   <insert a suppression name here>
   Memcheck:Leak
   fun:_vgrZU_libcZdsoZa_malloc
   fun:main
}

However this suppression can not be directly used. When changing
"fun:_vgrZU_libcZdsoZa_malloc" to "fun:malloc" the leak is correctly suppressed.
Comment 1 Stefan Hoelldampf 2006-11-04 20:57:56 UTC
Created attachment 18404 [details]
Testcase

Small testcase with a memory leak.
Comment 2 Stefan Hoelldampf 2006-11-04 21:01:54 UTC
Created attachment 18405 [details]
--gen-suppressions=yes output

Output when executing "valgrind --leak-check=full --gen-suppressions=yes
./test"
Comment 3 Stefan Hoelldampf 2006-12-06 13:13:19 UTC
valgrind r6377 fixes this issue, thanks!
Comment 4 Julian Seward 2006-12-06 17:58:20 UTC
I had no idea there was a bug report open for this.  Well, another closed
bug then :-)
Comment 5 Julian Seward 2006-12-08 13:14:09 UTC
*** Bug 138507 has been marked as a duplicate of this bug. ***
Comment 6 Julian Seward 2006-12-25 09:15:21 UTC
Reopening so can close as fixed.

Comment 7 Julian Seward 2006-12-25 09:15:43 UTC
*** Bug has been marked as fixed ***.