[C++-sig] boost.python program crash Python interpreter at exit on Fedora 8

Grant Tang grant.tang at gmail.com
Thu Dec 6 05:52:09 CET 2007


My application uses boost.pyhton to wrap c++ core to Python. It works fine
on
Linux, WinXP and Mac OSX. On the recently released Fedora 8, it functions
correctly but always causes segmentation fault when exit Python:
>>>import MyAPP
>>>exit()
Segmentaion fault

put the exit() function in try/catch shows it's a SystemExit exception
raised in exit() function.

If I run Python in GDB, it gives this info at exit():
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912496267664 (LWP 158127)]
0x00002aaab20885cd in rename () from /lib64/libselinux.so.1

I doubt it's releated to SELinux on Fedora. But the problem exists even if I

turn off SELinux.

Can anybody tell me what's the problem here and why it only happens in
Fedora 8?


-- 
Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20071205/30765947/attachment.htm>


More information about the Cplusplus-sig mailing list