From: Troels W. H. <tr...@th...> - 2003-07-03 09:39:33
|
Hi Nicholas, I tried your skin on RH8 + all current updates. It seems to work great and identified a potential deadlock (calling pthread_mutex_unlock() in a SIGINT/SIGTERM handler) in one of the applications I tried it with. Didn't encounter any problems. Definitely a nice addition to Valgrind's skin arsenal. Troels > -----Original Message----- > From: val...@li... > [mailto:val...@li...] On Behalf > Of Nicholas Nethercote > Sent: 2. juli 2003 12:06 > To: Valgrind Users > Subject: [Valgrind-users] New experimental skin: signal > handler checker > > > Hi, > > I've written a new skin for Valgrind. It's called Crocus, > and it searches > for problems in signal handlers. > > Because signal handlers can be called at any time, they > shouldn't call any > functions that are non-reentrant, ie. functions that will > screw up if they > are interrupted by another call to themselves, usually > because some shared > or global data structure could be corrupted or overwritten. Many > functions are non-reentrant, including lots of common ones > like printf() > (most standard I/O functions, in fact) and malloc(). You also aren't > supposed to call any pthread functions from signal handlers, > as this can > cause deadlock. > > Lots of programs don't get this right; Vim, for example. Crocus > identifies when a program's interrupt handler calls one of a number of > common non-reentrant functions. It also identifies when an interrupt > handler doesn't preserve errno as it should. To run this skin, > download valgrind-CROCUS.tar.bz2 from: > www.cl.cam.ac.uk/~njn25/valgrind.html install as normal, and run it with the --skin=crocus option. It's a little bit experimental, but has been tested reasonably well. Thanks to Steve Grubb for the original idea and testing it on a variety of programs. I welcome any feedback. N ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Valgrind-users mailing list Val...@li... https://lists.sourceforge.net/lists/listinfo/valgrind-users |