GNOME Bugzilla – Bug 678119
GLib.find_program_in_path() crashes for unknown programs
Last modified: 2012-06-20 10:24:23 UTC
When the program is found, it works: $ jhbuild run python3 -c 'from gi.repository import GLib; print(GLib.find_program_in_path("bash"))' /bin/bash But if not, and it should return None, it crashes: $ jhbuild run python3 -c 'from gi.repository import GLib; print(GLib.find_program_in_path("unknown"))' Segmentation fault
Fixed in git with a test case: http://git.gnome.org/browse/pygobject/commit/?id=379c1474a071292a1e8da413af2f5438cff09fc8