Bug 136844

Summary: corrupted malloc line when using --gen-suppressions=yes
Product: [Developer tools] valgrind Reporter: Stefan Hoelldampf <stefan.hoelldampf>
Component: memcheckAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal CC: btovrea
Priority: NOR    
Version First Reported In: 3.2.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Testcase
--gen-suppressions=yes output

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 ***.