|
From: Scott T. S. <sc...@ge...> - 2004-06-04 02:19:12
|
Valgrind 2.0.0 and 2.1.1 thinks my program is exitting when it really should keep running. I think it is related to exit and the new exit_group. According to a paper I found on Linux threads, exit_group should exit the program, while exit should just terminate the current thread. Looking through the Valgrind sources, I can't see how it differentiates between one call and another. Has anyone else run into this issue? btw, I'm using the rt library (-lrt) in order to perform aio_ operations (which is where the exit came from). Scott |
|
From: Igmar P. <mai...@jd...> - 2004-06-19 20:30:17
|
> Valgrind 2.0.0 and 2.1.1 thinks my program is exitting when it really > should keep running. I think it is related to exit and the new > exit_group. According to a paper I found on Linux threads, exit_group > should exit the program, while exit should just terminate the current > thread. > > Looking through the Valgrind sources, I can't see how it differentiates > between one call and another. > > Has anyone else run into this issue? Yes. The problem lies that valgrind emulates pthread internally, and afaik, you won't get real threads. Igmar |