|
From: Jeremy F. <je...@go...> - 2003-12-29 17:34:27
|
On Mon, 2003-12-29 at 06:45, Andrés Roldán wrote: > I've tested this and I think it's related to a prelinked stage2 binary. > > When I prelink (http://www.gentoo.org/doc/en/prelink-howto.xml) the system, > particulary /usr/lib/valgrind/stage2 (from valgrind-snapshot debian package), > valgrind stops working. > > If I undo the prelinking (prelink -u) on this file, valgrind will work again. > > There may be some hardcoded address within the code of stage2 because what > prelink does is (roughly) to relocate symbols of an ELF file and hence, it > does change the binary addresses somehow. > > I don't know if this can be fixed or in the future, prelink and valgrind > cannot coexist together. Well, I just ran prelink on stage2 in Fedora and it seemed to work fine. I'm not quite sure what prelink means on an executable (as opposed to a .so file). Could you send me copies of before and after stage2? It might me that the answer is "don't do that then". J |