Skip to content
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

Ctrl-C in select.epoll.poll() leads to crash on 32-bit x86 #24

Closed
dpgeorge opened this issue Jun 2, 2015 · 3 comments
Closed

Ctrl-C in select.epoll.poll() leads to crash on 32-bit x86 #24

dpgeorge opened this issue Jun 2, 2015 · 3 comments

Comments

@dpgeorge
Copy link
Member

dpgeorge commented Jun 2, 2015

I have the following test code:

import select
epoll = select.epoll()
epoll.register(0, select.EPOLLIN)
epoll.poll()

It'll wait until there's data on stdin to read. If you press ctrl-C then the poll returns with EINTR and is supposed to finish early. On 64-bit x86-64 it works as expected (KeyboardInterrupt is raised) but on 32-bit x86 it leads to seg fault.

Any ideas?

@pfalcon
Copy link
Contributor

pfalcon commented Jun 2, 2015

See also: micropython/micropython#1035

@pfalcon
Copy link
Contributor

pfalcon commented Dec 18, 2015

Fixed by micropython/micropython@3db2b23

@pfalcon pfalcon closed this as completed Dec 18, 2015
@dpgeorge
Copy link
Member Author

I can confirm that it's fixed. Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants