GNOME Bugzilla – Bug 723509
Crash when running program that does not exist
Last modified: 2014-02-03 22:47:51 UTC
I messed up my Run -> Program Parameters configuration today. I had the following configuration: Program: /home/mcatanzaro/jhbuild Arguments: run four-in-a-row But I don't have a jhbuild binary in my home directory, so that cannot succeed. When I click Run, the terminal plugin opens and prints: EXECUTING: /home/mcatanzaro/jhbuild run four-in-a-row ---------------------------------------------- ** (process:28515): ERROR **: Unable to execute the command (not found) ---------------------------------------------- Program has been terminated receiving signal 5 (Trace/breakpoint trap) Press the Enter key to close this terminal ... Then, ABRT pops up to inform me that Anjuta has crashed. Uneducated guess: after forking, Anjuta is hitting an assertion when it can't execute the command. Instead of asserting, Anjuta should instead exit with a nonzero status code.
See also https://retrace.fedoraproject.org/faf/problems/1022888/
Created attachment 267910 [details] [review] Fix crash when launching nonexistant program The crash is in a subprocess, but it will be picked up by distro bug reporting tools like ABRT. The problem is a bad use of g_error(), which is always fatal and so should be reserved for programming errors.
Created attachment 267911 [details] [review] Fix crash when launching nonexistant program The crash is in a subprocess, but it will be picked up by distro bug reporting tools like ABRT. The problem is a bad use of g_error(), which is always fatal and so should be reserved for programming errors.
Review of attachment 267911 [details] [review]: Thanks for your bug report and your fix. I haven't get this here. Your patch is fine you can commit it.
Attachment 267911 [details] pushed as 8b79bf7 - Fix crash when launching nonexistant program