MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000268JANABugpublic2012-07-09 10:102012-08-16 09:41
Reporterdavidl 
Assigned Todavidl 
PrioritynormalSeverityminorReproducibilitysometimes
StatusresolvedResolutionfixed 
PlatformOSOS Version
Summary0000268: Ctl-C causes program to hang
DescriptionSometimes a program hangs (or appears to) and the user hits Ctl-C several times to kill it. Eventually, it tries to do a more serious kill, but the program is hopelessly hung until the user kills it externally.

This may be due to the main thread being held up in pthread_join while the thread it's waiting on has been otherwise destroyed.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000430)
davidl (administrator)
2012-08-16 09:41

Added a call to JApplication::Fini(...) and then the JApplication destructor when 3 SIGINTs are received. An optional argument allows the locking of the app mutex to be skipped in Fini, hopefully minimizing the chances that it gets stuck. Program exits when 3 SIGINTs are received afterwards.

If 6 SIGINTs are received, then the program just tries to exit immediately. This could be useful if the program gets stuck in the Fini or ~JApplication methods while handling the 3rd SIGINT.

I did not have a working system that exhibited the problem so this really couldn't be tested.

- Issue History
Date Modified Username Field Change
2012-07-09 10:10 davidl New Issue
2012-08-16 09:41 davidl Note Added: 0000430
2012-08-16 09:41 davidl Status new => resolved
2012-08-16 09:41 davidl Resolution open => fixed
2012-08-16 09:41 davidl Assigned To => davidl


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker