Author MrJean1
Recipients MrJean1, gvanrossum, nnorwitz
Date 2007-10-27.06:03:46
SpamBayes Score 0.00045063
Marked as misclassified No
Message-id <1193465030.1.0.223862094209.issue1329@psf.upfronthosting.co.za>
In-reply-to
Content
Attached is an updated dlibtest.c file.  It prints a message in the con-
/destructor functions and if that fails it calls _exit(9).

Compile and run it as before and check the exit status.  If the latter 
is 9 or 011, a printf error occurred indicating e.g. that stdout was 
closed or something similar.

This version can also be used with gdb, either by pre-loading the 
dlibtest.so library within gdb or before invoking gdb.  To preload the 
library within gdb (on Linux) use

   gdb  .../python
   (gdb) set environment LD_PRELOAD ./dlibtest.so
   (gdb) run
   .....

or to preload before gdb use

   setenv LD_PRELOAD ./dlibtest.so
   gdb .../python
   (gdb) run
   .....

Lastly, my previous observations about this issue were clearly a "trompe 
d'oeil", especially my statement that PyImport_Cleanup never returned.  
The missing print statements *after* the PyImport_Cleanup call are 
simply due to printf errors, and nothing else ;-)
Files
File name Uploaded
dlibtest.c MrJean1, 2007-10-27.06:03:46
History
Date User Action Args
2007-10-27 06:03:50MrJean1setspambayes_score: 0.00045063 -> 0.00045063
recipients: + MrJean1, gvanrossum, nnorwitz
2007-10-27 06:03:50MrJean1setspambayes_score: 0.00045063 -> 0.00045063
messageid: <1193465030.1.0.223862094209.issue1329@psf.upfronthosting.co.za>
2007-10-27 06:03:49MrJean1linkissue1329 messages
2007-10-27 06:03:49MrJean1create