GNOME Bugzilla – Bug 595343
Segfault in brasero_caps_find_link_for_input at brasero-caps-plugin.c:61
Last modified: 2009-09-24 12:33:16 UTC
[ From http://bugs.debian.org/546887 ] "Here's the single liner which triggers a segfault: $ python -c 'import braseroburn; braseroburn.SessionCfg()' gdb backtrace is attached. This only occurs when python-brasero *and* brasero are installed. It looks like python-brasero makes use of the plugins that brasero provides." I can reproduce the crash. The backtrace is (gdb) run -c 'import braseroburn; braseroburn.SessionCfg()' Starting program: /usr/bin/python -c 'import braseroburn; braseroburn.SessionCfg()' [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0xb7c185e3 in brasero_caps_find_link_for_input (caps=0x8378268, input=0x0) at brasero-caps-plugin.c:61 61 brasero-caps-plugin.c: No such file or directory. in brasero-caps-plugin.c (gdb) thread apply all bt
+ Trace 217603
Thread 1 (Thread 0xb7e248d0 (LWP 22258))
The program is running. Quit anyway (and kill it)? (y or n)
Sounds more like a brasero bug, not bindings bug.
Thanks for the report. You have not initialized libbrasero-burn first. Have a look at the examples in gnome-python, you need to call "braseroburn.start ()" before using any of the functions or objects. Let me know how it works once you initialized libbraseroburn. Now it's true that libbrasero-burn could handle that case more gracefully ... I'll fix that.
(In reply to comment #2) > Thanks for the report. You have not initialized libbrasero-burn first. Have a > look at the examples in gnome-python, you need to call "braseroburn.start ()" > before using any of the functions or objects. Let me know how it works once you > initialized libbraseroburn. Indeed, that solves it: emilio@saturno:~$ python -c 'import braseroburn; braseroburn.SessionCfg()' Violación de segmento emilio@saturno:~$ python -c 'import braseroburn; braseroburn.start(); braseroburn.SessionCfg()' emilio@saturno:~$ > Now it's true that libbrasero-burn could handle that case more gracefully ... > I'll fix that. Thanks!
I fixed the crash, now when brasero_burn_library_start () has not been called beforehand, we'll simply abort with an error message stating that the above function was not called.