-
Notifications
You must be signed in to change notification settings - Fork 65
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
Keyboard event may cause nemu deadlock #4
Comments
ghost
pushed a commit
that referenced
this issue
Feb 22, 2016
* SDL_PollEvent() may eventually call malloc(), therefore it is not async singal safe, which may cause deadlock in malloc(). * Timer_intr() should be called in the signal handler, else hlt() will get stuck. * Now device_update() should be called in the for loop of cpu_exec() to finish the bottom half of the signal handler. * This patch fixed issue #4.
ghost
mentioned this issue
Feb 22, 2016
ghost
pushed a commit
that referenced
this issue
Feb 22, 2016
* SDL_PollEvent() may eventually call malloc(), therefore it is not async singal safe, which may cause deadlock in malloc(). * timer_intr() should be called in the signal handler, else hlt() will get stuck. * Now device_update() should be called in the for loop of cpu_exec() to finish the bottom half of the signal handler. * This patch will fix issue #4.
ghost
mentioned this issue
Feb 22, 2016
This issue has been fixed in #7. |
ghost
closed this as completed
Feb 22, 2016
ghost
mentioned this issue
Jun 29, 2016
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My backtrace:
The signal came when in
malloc()
, and the handler calledmalloc()
again so it sucks...The text was updated successfully, but these errors were encountered: