[New-bugs-announce] [issue1329] Different 3.0a1 exit behavior

Jean Brouwers report at bugs.python.org
Fri Oct 26 01:07:48 CEST 2007

New submission from Jean Brouwers:

Python 3.0a1 on Linux and MacOS X 10.4.10 exits differently than Python 
2.4 and 2.5.

With previous Python binaries the destructor** function of any pre-
loaded shared library is called prior to exit.  With Python 3.0a1 it is 
not, neither when exiting Python from the command line with Ctrl-D nor 
when using exit().

A workaround is to install a SIGABRT signal handler from the library and 
exit Python with os.abort().

Python 3.0a1 was built from source using the standard build sequence 
without any ./configure options except --prefix. 

**) defined with GNU __attribute__((destructor)).  The shared library is  
loaded through environment variable LD_PRELOAD on Linux and 

components: Interpreter Core
messages: 56761
nosy: MrJean1
severity: normal
status: open
title: Different 3.0a1 exit behavior
versions: Python 3.0

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list