GNOME Bugzilla – Bug 667279
[PATCH] Sometimes crashes when launching commandline-created GDesktopAppInfo
Last modified: 2012-01-05 17:07:17 UTC
If you create a GDesktopAppInfo with g_app_info_create_from_commandline and then launch it, there is a chance glib will crash. This is because is in _g_desktop_app_info_launch_uris_internal(): 1) "ChildSetupData data" never gets initialized to initially be all zeros 2) data.pid_envvar is only set if info->filename is not NULL 3) data.pid_envvar is written to during child_setup() if it is not NULL An easy fix is to make sure data.pid_envvar is set to NULL if info->filename is also NULL. Downstream Ubuntu bug here: https://bugs.launchpad.net/ubuntu/+source/deja-dup/+bug/901388
Created attachment 204595 [details] [review] Proposed patch
Comment on attachment 204595 [details] [review] Proposed patch yeah, looks right
commit 31c3082e19551377049742a7862dab455727844a Author: Michael Terry <michael.terry@canonical.com> Date: Wed Jan 4 13:08:56 2012 -0500 gdesktopappinfo: Avoid crash by NULL-ing data.pid_envvar before launch https://bugzilla.gnome.org/show_bug.cgi?id=667279
*** Bug 666284 has been marked as a duplicate of this bug. ***