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

Bug 203530

Summary: dev-util/leaktracer-2.4-r1: now contains x86 asm, does not compile on ppc
Product: Gentoo Linux Reporter: Robin Johnson <robbat2>
Component: [OLD] DevelopmentAssignee: C++ Team [disbanded] <cpp+disabled>
Status: RESOLVED FIXED    
Severity: critical CC: dev-zero
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-12-27 23:46:59 UTC
The new revision of leaktracer contains x86 asm, and as such does not compile on PPC.
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2007-12-29 12:56:25 UTC
and even if it builds on amd64, it seems to be broken there as well because of the multistack-patch.
The reason is that the programmer of the patch assumed that the return-address is at 4(%ebp), but on x86-64 it's at 8(%ebp), thus it's very likely to generate a segfault...
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2008-01-03 21:08:31 UTC
Fixed by dropping the multi-stack patch. There's no sane way to fix it (the patch just dereferences the stack frame pointer (resp. the return address pointer of the  outer-most frame) without checking and therefore generates a segfault, but the problem is that the outer-most frame should have the address 0x0 and here it has 0x1, which is kind of weird. I already fixed the assembler-code to work on x86-64 and ppc). So, if someone else can come up with a good idea on how to make this segfault away, please reopen and attach a corrected patch...