This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients ggenellina, vstinner
Date 2008-09-09.12:02:54
SpamBayes Score 0.00024556566
Marked as misclassified No
Message-id <1220961775.74.0.663147084498.issue1755388@psf.upfronthosting.co.za>
In-reply-to
Content
Using gdb, I dig the problem:
 * when CTRL+c is pressed, signal_handler (sig_num=2) 
at ./Modules/signalmodule.c:175 is called
 * signal_handler() stores the signal has a "pending call"
 * Linux kernel interrupts its name resolution (it looks like it's the 
read() syscall?) and return the error ETIMEDOUT (110)
 * back to socket_gethostbyaddr(): result=110, h=NULL
 * gethost_common() set an error using set_herror(1)
 * socket_gethostbyaddr() return NULL

Later, Py_MakePendingCalls() will call signal_default_int_handler() 
which raises the KeyboardInterrupt.
History
Date User Action Args
2008-09-09 12:02:55vstinnersetrecipients: + vstinner, ggenellina
2008-09-09 12:02:55vstinnersetmessageid: <1220961775.74.0.663147084498.issue1755388@psf.upfronthosting.co.za>
2008-09-09 12:02:55vstinnerlinkissue1755388 messages
2008-09-09 12:02:54vstinnercreate