GNOME Bugzilla – Bug 326191
Crash when pressing Ctrl+C from terminal
Last modified: 2006-01-08 21:57:44 UTC
I have just had a crash pressing Ctrl+C from terminal. Jesse had the same problem yesterday. On the terminal I got: paolo@elilix:/gnome/gnome-214/cvs/gedit/gedit$ gedit Exception exceptions.KeyboardInterrupt in 'garbage collection' ignored Fatal Python error: unexpected exception during garbage collection Backtrace here: Backtrace was generated from '/opt/gnome/gnome-214/INSTALL/bin/gedit' Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". `system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols. [Thread debugging using libthread_db enabled] [New Thread -1225496896 (LWP 14581)] 0xffffe410 in __kernel_vsyscall ()
+ Trace 65036
Thread 1 (Thread -1225496896 (LWP 14581))
jessevdk paolo: the Ctrl-C problem might be fixable by not allowing python to handle SIGINT
jessevdk: hmm, putting: signal(SIGINT, SIG_DFL); after Py_Initialize() fixes all Ctrl-C problems kikidonk: paoloLUNCH: well yes i think jesse is right
Created attachment 56968 [details] [review] This patch should fix the reported crash Patch based on the Jesse's suggestion.
Committed to CVS HEAD.