Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203530 - dev-util/leaktracer-2.4-r1: now contains x86 asm, does not compile on ppc
Summary: dev-util/leaktracer-2.4-r1: now contains x86 asm, does not compile on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-27 23:46 UTC by Robin Johnson
Modified: 2008-01-03 21:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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...