Penguin

Differences between version 6 and previous revision of DeBugging.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 6 Last edited on Sunday, September 7, 2003 11:00:33 pm by AndrewMitchell Revert
Older page: version 5 Last edited on Sunday, September 7, 2003 10:43:46 am by DanielLawson Revert
@@ -42,4 +42,9 @@
  
 Make use of electricfence (libefence) for tracking memory allocation errors. In debian this can be enabled on the fly by setting an LD_PRELOAD variable, like so: 
  
  LD_PRELOAD=libefence.so.0.0 your-buggy-programme 
+  
+Note: When using gdb(1) to debug a threaded program, gdb(1) catches two signals ([SIGPWR] & [SIGXCPU]) which are used internally by pthreads on Linux. Use  
+ (gdb) handle SIGPWR pass nostop noprint  
+ (gdb) handle SIGXCPU pass nostop noprint  
+to stop gdb halting on receiving these signals.