New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delayed signals in the REPL on OpenBSD (possibly libpthread related) #52960
Comments
On OpenBSD, SIGINT handling in the REPL is delayed until further input: Python 2.7b2+ (trunk:81162, May 14 2010, 14:47:52)
[GCC 3.3.5 (propolice)] on openbsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> <= here Ctrl-C is pressed but nothing appears
Only after hitting <Return> a traceback appears:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyboardInterrupt This behavior was introduced (exposed by?) r68460. When Python is compiled without threads, the behavior is normal. |
The bug is also present with Python 3.1 on OpenBSD 4.7-current. |
After a quick look, I don't see anything wrong with r68460, but it might very well have exposed this problem which was lurking before.
We've already had some problems - especially on *BSD - when mixing signals and threads (and it might be even worse on OpenBSD, since pthreads are implemented in user-space). However, IIUC, in this case you only have a single thread, right? Could you post the output of an strace (well, ktrace on OpenBSD)? |
I know, the OpenBSD libpthread has problems. I listed some possible For instance: The comment says: "siginterrupt not reliable (does not mix well with threading" To answer your questions:
|
I forgot: readline support is enabled, and there are known problems: |
Fixed in OpenBSD 5.2. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: