|
From: Andy J. <aju...@fr...> - 2007-10-31 11:37:30
|
I am writing/debugging an application where no IO should block - i.e. all sockets etc. are (I believe) in non blocking mode. This can be difficult to be certain of when using various libraries. I'd like to prove that none of my processes/threads are blocking and report a backtrace if they are. Is it possible to do this with Valgrind? Thanks, Andy Juniper aju...@fr... |
|
From: Nicholas N. <nj...@cs...> - 2007-10-31 21:46:52
|
On Wed, 31 Oct 2007, Andy Juniper wrote: > I am writing/debugging an application where no IO should block - i.e. > all sockets etc. are (I believe) in non blocking mode. This can be > difficult to be certain of when using various libraries. > > I'd like to prove that none of my processes/threads are blocking and > report a backtrace if they are. Is it possible to do this with Valgrind? None of the existing tools can do this. It might be possible to write a new tool that does it, but I'm not sure. If it is possible, the tool itself probably would be simple, although writing it wouldn't necessarily be simple if you don't know how Valgrind's internals work. Nick |
|
From: <led...@vt...> - 2007-11-02 11:40:25
|
Sounds like more of a job for a debugger like GDB than for a memory checker like valgrind. Quoting Nicholas Nethercote <nj...@cs...>: > On Wed, 31 Oct 2007, Andy Juniper wrote: > > > I am writing/debugging an application where no IO should block - i.e. > > all sockets etc. are (I believe) in non blocking mode. This can be > > difficult to be certain of when using various libraries. > > > > I'd like to prove that none of my processes/threads are blocking and > > report a backtrace if they are. Is it possible to do this with Valgrind? > > None of the existing tools can do this. It might be possible to write a new > tool that does it, but I'm not sure. If it is possible, the tool itself > probably would be simple, although writing it wouldn't necessarily be simple > if you don't know how Valgrind's internals work. > > Nick > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |