Message56844
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 ;-) |
| File name |
Uploaded |
|
dlibtest.c
|
MrJean1,
2007-10-27.06:03:46
|
|
| Date |
User |
Action |
Args |
| 2007-10-27 06:03:50 | MrJean1 | set | spambayes_score: 0.00045063 -> 0.00045063 recipients:
+ MrJean1, gvanrossum, nnorwitz |
| 2007-10-27 06:03:50 | MrJean1 | set | spambayes_score: 0.00045063 -> 0.00045063 messageid: <1193465030.1.0.223862094209.issue1329@psf.upfronthosting.co.za> |
| 2007-10-27 06:03:49 | MrJean1 | link | issue1329 messages |
| 2007-10-27 06:03:49 | MrJean1 | create | |
|