Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 577032

Summary: =dev-libs/dmalloc-5.5.2-r6 SIGSEGV with optimizations > -O0
Product: Gentoo Linux Reporter: Robert Gill <rtgill82>
Component: Current packagesAssignee: No maintainer - Look at if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: gdb backtrace
emerge --info

Description Robert Gill 2016-03-11 04:53:20 UTC
Created attachment 427944 [details]
gdb backtrace

dmalloc crashes on x86 when gcc optimizations are greater than -O0 due to a variable being optimized away. This doesn't seem to happen on amd64. I'm attaching a gdb log that includes the backtrace and demonstrates the missing variable.
Comment 1 Robert Gill 2016-03-11 06:34:25 UTC
Created attachment 427948 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2023-12-06 05:42:04 UTC
The bug has been referenced in the following commit(s):

commit 4c5b72836640446142a12a312df01c1986cc4e0a
Author:     Sam James <>
AuthorDate: 2023-12-05 15:01:10 +0000
Commit:     Sam James <>
CommitDate: 2023-12-06 05:40:50 +0000

    dev-libs/dmalloc: add 5.6.5
    Signed-off-by: Sam James <>

 dev-libs/dmalloc/Manifest                          |   1 +
 dev-libs/dmalloc/dmalloc-5.6.5.ebuild              |  73 +++++
 .../dmalloc/files/  | 343 +++++++++++++++++++++
 .../files/dmalloc-5.6.5-configure-c99.patch        |  61 ++++
 4 files changed, 478 insertions(+)