|
From: Jeremy F. <je...@go...> - 2004-03-23 07:06:31
|
Quoting Nicholas Nethercote <nj...@ca...>: > I don't think the problem is your fault. I tried your program under > Valgrind, and it worked for me (well; I had to add a pthread_join() > call > in main() after the pthread_create(), otherwise main() terminates > before > the created thread runs). > > So it's not a problem with your program; I think it's a problem with > Valgrind or gcc or libc or a combination. Unfortunately, I'm no expert > on > the segment-override stuff and can't help your further. I've cc'd the > valgrind-users list in case anyone else knows more. The clear problem here is that the client is still picking up /lib/i686/ libpthread-0.9.so for some reason. I wonder if the program is being linked with -Wl,-rpath,/lib or something. Or perhaps something is unsetting/resetting LD_LIBRARY_PATH. Or maybe the toolchain, for whatever reason, just ignores LD_LIBRARY_PATH. The output of gcc -v while linking would be interesting. J |