Summary: | valgrind-2.4.0 segfaults no matter what I do | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 |
Component: | [OLD] Unspecified | Assignee: | Maurice van der Pot (RETIRED) <griffon26> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | 7words.sg, battousai, solar |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
f5d8fd51ed1e804c9e8d0357e8614e0493b06e96
2005-04-01 13:51:46 UTC
I'll look into it in a few days. For now, I have masked 2.4.0. ok... today I have played arround with this ebuild a bit.... even if I do: CFLAGS="" emerge valgrind the resulting valgrind segfaults for me... BUT if I remove the line from the valgrind-2.4.0 ebuild where we force it to respect $CFLAGS, I get a version working just fine. So I presume the sed-magic messes up something in the configure file... so concluding I can say: removing sed -i -e 's:CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure from the ebuild made me have a working valgrind.... Just to log here what we know: adding --disable-pie to configure will also result in a working build of valgrind. I'll be looking into the CFLAGS thing you mentioned. Battousai, I added you to the cc because you may be interested in this one. Solar, you've helped me before when I expressed my cluelessness when it comes to PIE. I could use your help again if that's ok. The thing is that the valgrind developers are trying to use PIE (iirc because they want valgrind to be able to run itself). Unfortunately, valgrind's tests do not run with hardened gcc (see http://bugs.kde.org/show_bug.cgi?id=96321), so I filter -fPIC, causing -fnopie to be added to CFLAGS. This in turn makes it impossible for valgrind to use PIE, so I have to configure it with --disable-pie (otherwise it will segfault). Is there a way to get around the reserved BREG without completely disabling PIE? I just checked in a version that should work fine even with PIE. Thanks for the report Olaf. thanks for your efforts.. just tested it and it works perfect! |