After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668862 - pygobject causing segfault
pygobject causing segfault
Status: RESOLVED DUPLICATE of bug 669415
Product: pygobject
Classification: Bindings
Component: introspection
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
: 668853 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-01-27 17:06 UTC by Christian Fredrik Kalager Schaller
Modified: 2012-02-06 12:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GDB output of segfault (21.01 KB, text/plain)
2012-02-03 15:38 UTC, Christian Fredrik Kalager Schaller
Details

Description Christian Fredrik Kalager Schaller 2012-01-27 17:06:38 UTC
Using 3.0.1 or git master I am getting random segfaults (4 out of 5 times I try to run the application). I got this output from valgrind.

==23803== Invalid free() / delete / delete[]
==23803==    at 0x4006EED: free (vg_replace_malloc.c:366)
==23803==    by 0x41443E1B: standard_free (gmem.c:98)
==23803==    by 0x41443FC7: g_free (gmem.c:252)
==23803==    by 0x414297F9: g_error_free (gerror.c:476)
==23803==    by 0x4126E0E1: _g_type_boxed_free (gtype.c:4246)
==23803==    by 0x41247BBE: boxed_proxy_value_free (gboxed.c:196)
==23803==    by 0x412700C6: g_value_unset (gvalue.c:276)
==23803==    by 0x41263ADA: g_signal_emit_valist (gsignal.c:3062)
==23803==    by 0x41263C43: g_signal_emit (gsignal.c:3090)
==23803==    by 0x6ECA5AA: discoverer_collect (gstdiscoverer.c:1071)
==23803==    by 0x6ECAA2B: discoverer_bus_cb (gstdiscoverer.c:1317)
==23803==    by 0x4124CA39: g_cclosure_marshal_VOID__BOXED (gmarshal.c:574)
==23803==  Address 0x454af58 is 0 bytes inside a block of size 25 free'd
==23803==    at 0x4006EED: free (vg_replace_malloc.c:366)
==23803==    by 0x41443E1B: standard_free (gmem.c:98)
==23803==    by 0x41443FC7: g_free (gmem.c:252)
==23803==    by 0x414297F9: g_error_free (gerror.c:476)
==23803==    by 0x41429B8C: g_clear_error (gerror.c:643)
==23803==    by 0x5296B3A: pyglib_error_check (in /usr/lib/libpyglib-gi-2.0-python.so.0.0.0)
==23803==    by 0x401E49F: ??? (in /usr/lib/python2.7/site-packages/gi/_gi.so)
==23803==    by 0x7FFFFFFE: ???
==23803== 
==23803== Invalid read of size 4
==23803==    at 0x4145815E: g_slice_alloc (gslice.c:532)
==23803==    by 0x41458536: g_slice_alloc0 (gslice.c:1029)
==23803==    by 0x4143A47B: g_list_alloc (glist.c:129)
==23803==    by 0x6E00C26: gst_plugin_feature_list_copy (gstpluginfeature.c:229)
==23803==    by 0x6E0E4E8: gst_registry_get_feature_list (gstregistry.c:772)
==23803==    by 0x4E5861CF: ffi_call (ffi.c:303)
==23803==    by 0x5266862: _g_callable_info_invoke (gicallableinfo.c:518)
==23803==    by 0x5267E41: g_function_info_invoke (gifunctioninfo.c:273)
==23803==    by 0x4179E7E7: ??? (in /usr/lib/libpython2.7.so.1.0)
==23803==  Address 0x4 is not stack'd, malloc'd or (recently) free'd
Comment 1 Christian Fredrik Kalager Schaller 2012-01-27 17:10:23 UTC
Sometimes instead of the segfault I get:
*** glibc detected *** python: double free or corruption (fasttop): 0x0a23fc40 ***
======= Backtrace: =========
/lib/libc.so.6[0x4e24ad22]
/lib/libglib-2.0.so.0[0x41443e1c]
/lib/libglib-2.0.so.0(g_free+0x28)[0x41443fc8]
/lib/libglib-2.0.so.0(g_error_free+0x2a)[0x414297fa]
/lib/libgobject-2.0.so.0[0x4126e0e2]
/lib/libgobject-2.0.so.0[0x41247bbf]
/lib/libgobject-2.0.so.0(g_value_unset+0x37)[0x412700c7]
/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x5ab)[0x41263adb]
/lib/libgobject-2.0.so.0(g_signal_emit+0x34)[0x41263c44]
/usr/lib/libgstpbutils-0.11.so.26(+0x135ab)[0x7285ab]
/usr/lib/libgstpbutils-0.11.so.26(+0x13a2c)[0x728a2c]
/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__BOXED+0xaa)[0x4124ca3a]
/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b5)[0x4124a905]
/lib/libgobject-2.0.so.0[0x4125bf75]
/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x58a)[0x41263aba]
/lib/libgobject-2.0.so.0(g_signal_emit+0x34)[0x41263c44]
/usr/lib/libgstreamer-0.11.so.31(gst_bus_async_signal_func+0xa9)[0x7e07b9]
/usr/lib/libgstreamer-0.11.so.31(+0x2d6b7)[0x7e16b7]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x17a)[0x4143dc4a]
/lib/libglib-2.0.so.0[0x4143e055]
/lib/libglib-2.0.so.0(g_main_loop_run+0x7f)[0x4143e4bf]
/usr/lib/libgtk-3.so.0(gtk_main+0xa5)[0x42d7c155]
/usr/lib/libffi.so.5(ffi_call_SYSV+0x1a)[0x4e58649a]
/usr/lib/libffi.so.5(ffi_call+0x70)[0x4e5861d0]
/usr/lib/libgirepository-1.0.so.1(+0x8863)[0x430863]
/usr/lib/libgirepository-1.0.so.1(g_function_info_invoke+0xb2)[0x431e42]
/usr/lib/python2.7/site-packages/gi/_gi.so(+0x10b97)[0x66db97]
/usr/lib/libpython2.7.so.1.0(PyCFunction_Call+0x14d)[0x416a8b8d]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5383)[0x417083b3]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x862)[0x41709be2]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4bb2)[0x41707be2]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x862)[0x41709be2]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x64)[0x41709d54]
/usr/lib/libpython2.7.so.1.0[0x41723b4d]
/usr/lib/libpython2.7.so.1.0(PyRun_FileExFlags+0x9e)[0x41724b0e]
/usr/lib/libpython2.7.so.1.0(PyRun_SimpleFileExFlags+0xea)[0x417256fa]
/usr/lib/libpython2.7.so.1.0(PyRun_AnyFileExFlags+0x8c)[0x417263cc]
/usr/lib/libpython2.7.so.1.0(Py_Main+0xbe4)[0x417376a4]
python(main+0x28)[0x8048508]
/lib/libc.so.6(__libc_start_main+0xf3)[0x4e1ee6b3]
python[0x8048531]
======= Memory map: ========
00110000-0011f000 r-xp 00000000 fd:00 138613     /usr/lib/python2.7/site-packages/gi/_glib/_glib.so
0011f000-00120000 r--p 0000e000 fd:00 138613     /usr/lib/python2.7/site-packages/gi/_glib/_glib.so
00120000-00122000 rw-p 0000f000 fd:00 138613     /usr/lib/python2.7/site-packages/gi/_glib/_glib.so
00122000-0012d000 r-xp 00000000 fd:00 999        /usr/lib/python2.7/lib-dynload/_socketmodule.so
0012d000-00130000 rw-p 0000b000 fd:00 999        /usr/lib/python2.7/lib-dynload/_socketmodule.so
00130000-00132000 r-xp 00000000 fd:00 1015       /usr/lib/python2.7/lib-dynload/fcntlmodule.so
00132000-00133000 rw-p 00002000 fd:00 1015       /usr/lib/python2.7/lib-dynload/fcntlmodule.so
00133000-0013a000 r-xp 00000000 fd:00 2757593    /usr/lib/libgstinterfaces-0.11.so.26.0.0
0013a000-0013b000 r--p 00006000 fd:00 2757593    /usr/lib/libgstinterfaces-0.11.so.26.0.0
0013b000-0013c000 rw-p 00007000 fd:00 2757593    /usr/lib/libgstinterfaces-0.11.so.26.0.0
0013c000-00143000 r-xp 00000000 fd:00 2892798    /usr/lib/gio/modules/libdconfsettings.so
00143000-00144000 r--p 00006000 fd:00 2892798    /usr/lib/gio/modules/libdconfsettings.so
00144000-00145000 rw-p 00007000 fd:00 2892798    /usr/lib/gio/modules/libdconfsettings.so
00145000-00146000 rwxp 00000000 00:00 0 
00146000-0017c000 r-xp 00000000 fd:00 2890678    /usr/lib/gstreamer-0.11/libgstogg.so
0017c000-0017d000 r--p 00035000 fd:00 2890678    /usr/lib/gstreamer-0.11/libgstogg.so
0017d000-0017e000 rw-p 00036000 fd:00 2890678    /usr/lib/gstreamer-0.11/libgstogg.so
00182000-00184000 r-xp 00000000 fd:00 984        /usr/lib/python2.7/lib-dynload/_functoolsmodule.so
00184000-00185000 rw-p 00002000 fd:00 984        /usr/lib/python2.7/lib-dynload/_functoolsmodule.so
00185000-001fb000 r-xp 00000000 fd:00 2762458    /usr/lib/libgdk-3.so.0.200.3
001fb000-001fd000 r--p 00075000 fd:00 2762458    /usr/lib/libgdk-3.so.0.200.3
001fd000-001fe000 rw-p 00077000 fd:00 2762458    /usr/lib/libgdk-3.so.0.200.3
001fe000-00253000 r-xp 00000000 fd:00 2761032    /usr/lib/libgstbase-0.11.so.31.0.0
00253000-00254000 r--p 00054000 fd:00 2761032    /usr/lib/libgstbase-0.11.so.31.0.0
00254000-00255000 rw-p 00055000 fd:00 2761032    /usr/lib/libgstbase-0.11.so.31.0.0
00255000-00264000 r-xp 00000000 fd:00 2786026    /usr/lib/libtheoradec.so.1.1.4
00264000-00265000 rw-p 0000f000 fd:00 2786026    /usr/lib/libtheoradec.so.1.1.4
00265000-00268000 r-xp 00000000 fd:00 990        /usr/lib/python2.7/lib-dynload/_localemodule.so
00268000-00269000 rw-p 00003000 fd:00 990        /usr/lib/python2.7/lib-dynload/_localemodule.so
00269000-002af000 r-xp 00000000 fd:00 2890715    /usr/lib/gstreamer-0.11/libgstplayback.so
002af000-002b0000 ---p 00046000 fd:00 2890715    /usr/lib/gstreamer-0.11/libgstplayback.so
002b0000-002b1000 r--p 00046000 fd:00 2890715    /usr/lib/gstreamer-0.11/libgstplayback.so
002b1000-002b2000 rw-p 00047000 fd:00 2890715    /usr/lib/gstreamer-0.11/libgstplayback.so
002bc000-002bf000 r-xp 00000000 fd:00 1036       /usr/lib/python2.7/lib-dynload/timemodule.so
002bf000-002c1000 rw-p 00003000 fd:00 1036       /usr/lib/python2.7/lib-dynload/timemodule.so
002c1000-002cd000 r-xp 00000000 fd:00 2895282    /usr/lib/gstreamer-0.11/libgstvorbis.so
002cd000-002ce000 r--p 0000b000 fd:00 2895282    /usr/lib/gstreamer-0.11/libgstvorbis.so
002ce000-002cf000 rw-p 0000c000 fd:00 2895282    /usr/lib/gstreamer-0.11/libgstvorbis.so
002d7000-002e0000 r-xp 00000000 fd:00 1028       /usr/lib/python2.7/lib-dynload/pyexpat.so
002e0000-002e2000 rw-p 00008000 fd:00 1028       /usr/lib/python2.7/lib-dynload/pyexpat.so
00313000-00316000 r-xp 00000000 fd:00 2773558    /usr/lib/libpyglib-gi-2.0-python.so.0.0.0
00316000-00317000 r--p 00002000 fd:00 2773558    /usr/lib/libpyglib-gi-2.0-python.so.0.0.0
00317000-00318000 rw-p 00003000 fd:00 2773558    /usr/lib/libpyglib-gi-2.0-python.so.0.0.0
00318000-00361000 r-xp 00000000 fd:00 2884475    /usr/lib/gstreamer-0.11/libgstcoreelements.so
00361000-00362000 r--p 00048000 fd:00 2884475    /usr/lib/gstreamer-0.11/libgstcoreelements.so
00362000-00363000 rw-p 00049000 fd:00 2884475    /usr/lib/gstreamer-0.11/libgstcoreelements.so
00428000-0045d000 r-xp 00000000 fd:00 2760069    /usr/lib/libgirepository-1.0.so.1.0.0
0045d000-0045e000 r--p 00034000 fd:00 2760069    /usr/lib/libgirepository-1.0.so.1.0.0
0045e000-0045f000 rw-p 00035000 fd:00 2760069    /usr/lib/libgirepository-1.0.so.1.0.0
0047b000-0047d000 r-xp 00000000 fd:00 15883      /usr/lib/python2.7/lib-dynload/_bisectmodule.so
0047d000-0047e000 rw-p 00001000 fd:00 15883      /usr/lib/python2.7/lib-dynload/_bisectmodule.so
00497000-0049f000 r-xp 00000000 fd:00 1003       /usr/lib/python2.7/lib-dynload/arraymodule.so
0049f000-004a1000 rw-p 00007000 fd:00 1003       /usr/lib/python2.7/lib-dynload/arraymodule.so
004ea000-004ec000 r-xp 00000000 fd:00 3162475    /usr/lib/gtk-3.0/modules/libpk-gtk-module.so
004ec000-004ed000 r--p 00002000 fd:00 3162475    /usr/lib/gtk-3.0/modules/libpk-gtk-module.so
004ed000-004ee000 rw-p 00003000 fd:00 3162475    /usr/lib/gtk-3.0/modules/libpk-gtk-module.so
0052a000-0052f000 r-xp 00000000 fd:00 1033       /usr/lib/python2.7/lib-dynload/stropmodule.so
0052f000-00531000 rw-p 00004000 fd:00 1033       /usr/lib/python2.7/lib-dynload/stropmodule.so
00586000-00587000 r-xp 00000000 00:00 0          [vdso]
0065d000-0067a000 r-xp 00000000 fd:00 135864     /usr/lib/python2.7/site-packages/gi/_gi.so
0067a000-0067b000 r--p 0001c000 fd:00 135864     /usr/lib/python2.7/site-packages/gi/_gi.so
0067b000-0067d000 rw-p 0001d000 fd:00 135864     /usr/lib/python2.7/site-packages/gi/_gi.so
006b7000-006c2000 r-xp 00000000 fd:00 2623708    /lib/libnss_files-2.14.90.so
006c2000-006c3000 r--p 0000a000 fd:00 2623708    /lib/libnss_files-2.14.90.so
006c3000-006c4000 rw-p 0000b000 fd:00 2623708    /lib/libnss_files-2.14.90.so
006f6000-006f8000 r-xp 00000000 fd:00 995        /usr/lib/python2.7/lib-dynload/_randommodule.so
006f8000-006f9000 rw-p 00002000 fd:00 995        /usr/lib/python2.7/lib-dynload/_randommodule.so
00715000-00735000 r-xp 00000000 fd:00 2761558    /usr/lib/libgstpbutils-0.11.so.26.0.0
00735000-00736000 r--p 0001f000 fd:00 2761558    /usr/lib/libgstpbutils-0.11.so.26.0.0
00736000-00737000 rw-p 00020000 fd:00 2761558    /usr/lib/libgstpbutils-0.11.so.26.0.0
0076b000-007b0000 r-xp 00000000 fd:00 2761815    /usr/lib/libgstaudio-0.11.so.26.0.0
007b0000-007b1000 ---p 00045000 fd:00 2761815    /usr/lib/libgstaudio-0.11.so.26.0.0
007b1000-007b2000 r--p 00045000 fd:00 2761815    /usr/lib/libgstaudio-0.11.so.26.0.0
007b2000-007b3000 rw-p 00046000 fd:00 2761815    /usr/lib/libgstaudio-0.11.so.26.0.0
007b4000-00897000 r-xp 00000000 fd:00 2758071    /usr/lib/libgstreamer-0.11.so.31.0.0
00897000-0089a000 r--p 000e3000 fd:00 2758071    /usr/lib/libgstreamer-0.11.so.31.0.0
0089a000-0089b000 rw-p 000e6000 fd:00 2758071    /usr/lib/libgstreamer-0.11.so.31.0.0
0089b000-0089c000 rw-p 00000000 00:00 0 
008bb000-008cb000 r-xp 00000000 fd:00 1012       /usr/lib/python2.7/lib-dynload/datetime.so
008cb000-008ce000 rw-p 0000f000 fd:00 1012       /usr/lib/python2.7/lib-dynload/datetime.so
00912000-00913000 r-xp 00000000 fd:00 3024961    /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
00913000-00914000 r--p 00001000 fd:00 3024961    /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
00914000-00915000 rw-p 00002000 fd:00 3024961    /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
00930000-00935000 r-xp 00000000 fd:00 978        /usr/lib/python2.7/lib-dynload/_collectionsmodule.so
00935000-00936000 rw-p 00005000 fd:00 978        /usr/lib/python2.7/lib-dynload/_collectionsmodule.so
00953000-00987000 r-xp 00000000 fd:00 2757912    /usr/lib/libgsttag-0.11.so.26.0.0
00987000-00988000 r--p 00033000 fd:00 2757912    /usr/lib/libgsttag-0.11.so.26.0.0
00988000-00989000 rw-p 00034000 fd:00 2757912    /usr/lib/libgsttag-0.11.so.26.0.0
009da000-009dd000 r-xp 00000000 fd:00 1009       /usr/lib/python2.7/lib-dynload/cStringIO.so
009dd000-009de000 rw-p 00003000 fd:00 1009       /usr/lib/python2.7/lib-dynload/cStringIO.so
00a5f000-00a63000 r-xp 00000000 fd:00 1006       /usr/lib/python2.7/lib-dynload/binascii.so
00a63000-00a64000 rw-p 00004000 fd:00 1006       /usr/lib/python2.7/lib-dynload/binascii.so
00b23000-00b37000 r-xp 00000000 fd:00 2893639    /usr/lib/gstreamer-0.11/libgsttypefindfunctions.so
00b37000-00b38000 r--p 00013000 fd:00 2893639    /usr/lib/gstreamer-0.11/libgsttypefindfunctions.so
00b38000-00b39000 rw-p 00014000 fd:00 2893639    /usr/lib/gstreamer-0.11/libgsttypefindfunctions.so
00b69000-00b7b000 r-xp 00000000 fd:00 2760305    /usr/lib/libgstvideo-0.11.so.26.0.0
00b7b000-00b7c000 r--p 00011000 fd:00 2760305    /usr/lib/libgstvideo-0.11.so.26.0.0
00b7c000-00b7e000 rw-p 00012000 fd:00 2760305    /usr/lib/libgstvideo-0.11.so.26.0.0
00ba6000-00baf000 r-xp 00000000 fd:00 1020       /usr/lib/python2.7/lib-dynload/itertoolsmodule.so
00baf000-00bb3000 rw-p 00008000 fd:00 1020       /usr/lib/python2.7/lib-dynload/itertoolsmodule.so
00c30000-00c37000 r-xp 00000000 fd:00 1025       /usr/lib/python2.7/lib-dynload/operator.so
00c37000-00c39000 rw-p 00006000 fd:00 1025       /usr/lib/python2.7/lib-dynload/operator.so
00c87000-00c89000 r-xp 00000000 fd:00 986        /usr/lib/python2.7/lib-dynload/_heapq.so
00c89000-00c8b000 rw-p 00002000 fd:00 986        /usr/lib/python2.7/lib-dynload/_heapq.so
00ca7000-00cac000 r-xp 00000000 fd:00 3146468    /usr/lib/gtk-3.0/3.0.0/theming-engines/libadwaita.so
00cac000-00cad000 r--p 00004000 fd:00 3146468    /usr/lib/gtk-3.0/3.0.0/theming-engines/libadwaita.so
00cad000-00cae000 rw-p 00005000 fd:00 3146468    /usr/lib/gtk-3.0/3.0.0/theming-engines/libadwaita.so
00cb5000-00cd4000 r-xp 00000000 fd:00 138617     /usr/lib/python2.7/site-packages/gi/_gobject/_gobject.so
00cd4000-00cd5000 r--p 0001e000 fd:00 138617     /usr/lib/python2.7/site-packages/gi/_gobject/_gobject.so
00cd5000-00cd7000 rw-p 0001f000 fd:00 138617     /usr/lib/python2.7/site-packages/gi/_gobject/_gobject.so
00d64000-00d6b000 r-xp 00000000 fd:00 1001       /usr/lib/python2.7/lib-dynload/_ssl.so
00d6b000-00d6c000 rw-p 00006000 fd:00 1001       /usr/lib/python2.7/lib-dynload/_ssl.so
00ddb000-00de1000 r-xp 00000000 fd:00 1002       /usr/lib/python2.7/lib-dynload/_struct.so
00de1000-00de3000 rw-p 00006000 fd:00 1002       /usr/lib/python2.7/lib-dynload/_struct.so
00e24000-00e31000 r-xp 00000000 fd:00 2761587    /usr/lib/libgstriff-0.11.so.26.0.0
00e31000-00e32000 r--p 0000c000 fd:00 2761587    /usr/lib/libgstriff-0.11.so.26.0.0
00e32000-00e33000 rw-p 0000d000 fd:00 2761587    /usr/lib/libgstriff-0.11.so.26.0.0
00eb3000-00ec6000 r-xp 00000000 fd:00 2889940    /usr/lib/gio/modules/libgioremote-volume-monitor.so
00ec6000-00ec7000 r--p 00012000 fd:00 2889940    /usr/lib/gio/modules/libgioremote-volume-monitor.so
00ec7000-00ec8000 rw-p 00013000 fd:00 2889940    /usr/lib/gio/modules/libgioremote-volume-monitor.so
00ec8000-00ef2000 r-xp 00000000 fd:00 2898977    /usr/lib/gio/modules/libgvfsdbus.so
00ef2000-00ef3000 r--p 00029000 fd:00 2898977    /usr/lib/gio/modules/libgvfsdbus.so
00ef3000-00ef4000 rw-p 0002a000 fd:00 2898977    /usr/lib/gio/modules/libgvfsdbus.so
00f41000-00f44000 r-xp 00000000 fd:00 985        /usr/lib/python2.7/lib-dynload/_hashlib.so
00f44000-00f45000 rw-p 00002000 fd:00 985        /usr/lib/python2.7/lib-dynload/_hashlib.so
00f5a000-00f6d000 r-xp 00000000 fd:00 2893629    /usr/lib/gstreamer-0.11/libgsttheora.so
00f6d000-00f6e000 r--p 00012000 fd:00 2893629    /usr/lib/gstreamer-0.11/libgsttheora.so
00f6e000-00f6f000 rw-p 00013000 fd:00 2893629    /usr/lib/gstreamer-0.11/libgsttheora.so
00f80000-00f86000 r-xp 00000000 fd:00 1022       /usr/lib/python2.7/lib-dynload/math.so
00f86000-00f88000 rw-p 00005000 fd:00 1022       /usr/lib/python2.7/lib-dynload/math.so
08048000-08049000 r-xp 00000000 fd:00 2779175    /usr/bin/python
08049000-0804a000 rw-p 00000000 fd:00 2779175    /usr/bin/python
09aae000-0a388000 rw-p 00000000 00:00 0          [heap]
41006000-4100b000 r-xp 00000000 fd:00 2780084    /usr/lib/libcairo-gobject.so.2.11000.2
4100b000-4100c000 ---p 00005000 fd:00 2780084    /usr/lib/libcairo-gobject.so.2.11000.2
4100c000-4100d000 r--p 00005000 fd:00 2780084    /usr/lib/libcairo-gobject.so.2.11000.2Aborted
Comment 2 Christian Fredrik Kalager Schaller 2012-01-27 17:11:51 UTC
gdb output from the segfault
    Thread 14 (Thread 0xadcfeb40 (LWP 9765)):
    #0  0x00110416 in __kernel_vsyscall ()
    #1  0x4e3904d2 in __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S:145
    #2  0x4e38be71 in _L_lock_775 () from /lib/libpthread.so.0
    #3  0x4e38bd2b in __pthread_mutex_lock (mutex=0x8373d98) at pthread_mutex_lock.c:86
    #4  0x4147dbd2 in g_rec_mutex_lock (mutex=0xaef1dee4) at gthread-posix.c:377
    #5  0x0030bd7f in gst_pad_send_event_unchecked (pad=0xaef1dea0 [GstPad], event=0xae5078b8, type=
        GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) at gstpad.c:4313
    #6  0x0030c2a1 in gst_pad_push_event_unchecked (pad=0x85a1270 [GstPad], event=0xae5078b8,
        type=<optimized out>, stored=0xadcfe19c) at gstpad.c:4082
    #7  0x003101c8 in gst_pad_push_event (pad=0x85a1270 [GstPad], event=0xae5078b8) at gstpad.c:4196
    #8  0x00576964 in gst_type_find_element_loop (pad=0x85a1138 [GstPad]) at gsttypefindelement.c:1122
    #9  0x00339a38 in gst_task_func (task=0x8890800 [GstTask]) at gsttask.c:314
    #10 0x0033ab69 in default_func (tdata=0x876e480, pool=0x82cd6f0 [GstTaskPool]) at gsttaskpool.c:70
    #11 0x414621ef in g_thread_pool_thread_proxy (data=0x8145c18) at gthreadpool.c:317
    #12 0x41461814 in g_thread_proxy (data=0xb1f88b50) at gthread.c:801
    #13 0x4e389cd3 in start_thread (arg=0xadcfeb40) at pthread_create.c:309
    #14 0x4e2c783e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
     
    Thread 13 (Thread 0xae4ffb40 (LWP 9764)):
    #0  0x00110416 in __kernel_vsyscall ()
    #1  0x4e38d85c in pthread_cond_wait@@GLIBC_2.3.2 ()
        at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:172
    #2  0x4147de77 in g_cond_wait (cond=0xaef0a664, mutex=0xaef0a648) at gthread-posix.c:746
    #3  0x005597d8 in gst_data_queue_push (queue=0xaef0a620 [GstDataQueue], item=0x8895840) at gstdataqueue.c:437
    #4  0x0055d029 in gst_multi_queue_chain (pad=0xb1f8c270 [GstPad], parent=0xaef1c6f0 [GstMultiQueue], buffer=
        0x88b1688) at gstmultiqueue.c:1359
    #5  0x00308883 in gst_pad_chain_data_unchecked (data=0x88b1688, type=5623632, pad=0xb1f8c270 [GstPad])
        at gstpad.c:3327
    #6  gst_pad_push_data (pad=0x83fa000 [GstOggPad], type=5623632, data=0x88b1688) at gstpad.c:3530
    #7  0x005c8644 in gst_ogg_demux_chain_peer (pad=0x83fa000 [GstOggPad], packet=0xae4fee98, push_headers=0)
        at gstoggdemux.c:637
    #8  0x005cde5a in gst_ogg_pad_submit_packet (packet=0xae4fee98, pad=0x83fa000 [GstOggPad])
        at gstoggdemux.c:1030
    #9  gst_ogg_pad_stream_out (pad=0x83fa000 [GstOggPad], npackets=0) at gstoggdemux.c:1069
    #10 0x005cfbc6 in gst_ogg_pad_submit_page (pad=0x83fa000 [GstOggPad], page=0xae4ff160) at gstoggdemux.c:1706
    #11 0x005d4426 in gst_ogg_demux_handle_page (ogg=0xb0238980 [GstOggDemux], page=0xae4ff160)
        at gstoggdemux.c:4032
    #12 0x005d4e91 in gst_ogg_demux_chain (pad=0xaef1dea0 [GstPad], parent=0xb0238980 [GstOggDemux], buffer=
        0xb0215530) at gstoggdemux.c:4100
    #13 0x005d55c9 in gst_ogg_demux_loop_forward (ogg=0xb0238980 [GstOggDemux]) at gstoggdemux.c:4225
    #14 gst_ogg_demux_loop (pad=0xaef1dea0 [GstPad]) at gstoggdemux.c:4373
    #15 0x00339a38 in gst_task_func (task=0x8890bf0 [GstTask]) at gsttask.c:314
    #16 0x0033ab69 in default_func (tdata=0xae503a48, pool=0x82cd6f0 [GstTaskPool]) at gsttaskpool.c:70
    #17 0x414621ef in g_thread_pool_thread_proxy (data=0x8145c18) at gthreadpool.c:317
    #18 0x41461814 in g_thread_proxy (data=0xb1f88af0) at gthread.c:801
    #19 0x4e389cd3 in start_thread (arg=0xae4ffb40) at pthread_create.c:309
    #20 0x4e2c783e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
     
    Thread 12 (Thread 0xaeeffb40 (LWP 9763)):
    #0  0x00110416 in __kernel_vsyscall ()
    #1  0x4e38d85c in pthread_cond_wait@@GLIBC_2.3.2 ()
        at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:172
    #2  0x4147de77 in g_cond_wait (cond=0xad3401f4, mutex=0xad3401d8) at gthread-posix.c:746
    #3  0x00561ba2 in gst_queue_chain (pad=0xaef1daf8 [GstPad], parent=0xad340020 [GstQueue], buffer=0xaef2f828)
        at gstqueue.c:945
    #4  0x00308883 in gst_pad_chain_data_unchecked (data=0xaef2f828, type=5641664, pad=0xaef1daf8 [GstPad])
        at gstpad.c:3327
    #5  gst_pad_push_data (pad=0xad33f018 [GstGhostPad], type=5641664, data=0xaef2f828) at gstpad.c:3530
    #6  0x002f9efc in gst_proxy_pad_chain_default (pad=0x85adce0 [GstProxyPad], parent=0xad33f018 [GstGhostPad],
        buffer=0xaef2f828) at gstghostpad.c:289
    #7  0x00308883 in gst_pad_chain_data_unchecked (data=0xaef2f828, type=3120720, pad=0x85adce0 [GstProxyPad])
        at gstpad.c:3327
    #8  gst_pad_push_data (pad=0xae5092e8 [GstDecodePad], type=3120720, data=0xaef2f828) at gstpad.c:3530
    #9  0x002f9efc in gst_proxy_pad_chain_default (pad=0xb1f8ab90 [GstProxyPad], parent=
        0xae5092e8 [GstDecodePad], buffer=0xaef2f828) at gstghostpad.c:289
    #10 0x00308883 in gst_pad_chain_data_unchecked (data=0xaef2f828, type=3120720, pad=0xb1f8ab90 [GstProxyPad])
        at gstpad.c:3327
    #11 gst_pad_push_data (pad=0xaef1d3a8 [GstPad], type=3120720, data=0xaef2f828) at gstpad.c:3530
    #12 0x0060f6b1 in theora_dec_push_forward (buf=0xaef2f828, dec=0xaef20910 [GstTheoraDec])
        at gsttheoradec.c:1080
    #13 theora_handle_data_packet (outdur=33366667, outtime=66733333, packet=0xaeefefdc, dec=
        0xaef20910 [GstTheoraDec]) at gsttheoradec.c:1305
    #14 theora_dec_decode_buffer (dec=0xaef20910 [GstTheoraDec], buf=0x88b12c8) at gsttheoradec.c:1389
    #15 0x00611d11 in theora_dec_chain_forward (buffer=0x88b12c8, discont=<optimized out>, dec=
        0xaef20910 [GstTheoraDec]) at gsttheoradec.c:1555
    #16 theora_dec_chain (pad=0xb1f8c4e0 [GstPad], parent=0xaef20910 [GstTheoraDec], buf=0x88b12c8)
        at gsttheoradec.c:1583
    #17 0x00308883 in gst_pad_chain_data_unchecked (data=0x88b12c8, type=6363360, pad=0xb1f8c4e0 [GstPad])
        at gstpad.c:3327
    #18 gst_pad_push_data (pad=0xb1f8c3a8 [GstPad], type=6363360, data=0x88b12c8) at gstpad.c:3530
    #19 0x0055e033 in gst_single_queue_push_one (object=0x88b12c8, sq=0x875fa00, mq=0xaef1c6f0 [GstMultiQueue])
        at gstmultiqueue.c:1052
    #20 gst_multi_queue_loop (pad=0xb1f8c3a8 [GstPad]) at gstmultiqueue.c:1283
    #21 0x00339a38 in gst_task_func (task=0xae50a1f8 [GstTask]) at gsttask.c:314
    #22 0x0033ab69 in default_func (tdata=0x8376260, pool=0x82cd6f0 [GstTaskPool]) at gsttaskpool.c:70
    #23 0x414621ef in g_thread_pool_thread_proxy (data=0x8145c18) at gthreadpool.c:317
    #24 0x41461814 in g_thread_proxy (data=0xaef028f0) at gthread.c:801
    #25 0x4e389cd3 in start_thread (arg=0xaeeffb40) at pthread_create.c:309
    #26 0x4e2c783e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
     
    Thread 11 (Thread 0xb2829b40 (LWP 9762)):
    #0  0x00110416 in __kernel_vsyscall ()
    #1  0x4e38d85c in pthread_cond_wait@@GLIBC_2.3.2 ()
        at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:172
    #2  0x4147de77 in g_cond_wait (cond=0xad3403ec, mutex=0xad3403d0) at gthread-posix.c:746
    #3  0x00561ba2 in gst_queue_chain (pad=0xaef1d750 [GstPad], parent=0xad340218 [GstQueue], buffer=0xaef2fc88)
        at gstqueue.c:945
    #4  0x00308883 in gst_pad_chain_data_unchecked (data=0xaef2fc88, type=5641664, pad=0xaef1d750 [GstPad])
        at gstpad.c:3327
    #5  gst_pad_push_data (pad=0xad33f168 [GstGhostPad], type=5641664, data=0xaef2fc88) at gstpad.c:3530
    #6  0x002f9efc in gst_proxy_pad_chain_default (pad=0xad342040 [GstProxyPad], parent=
        0xad33f168 [GstGhostPad], buffer=0xaef2fc88) at gstghostpad.c:289
    #7  0x00308883 in gst_pad_chain_data_unchecked (data=0xaef2fc88, type=3120720, pad=0xad342040 [GstProxyPad])
        at gstpad.c:3327
    #8  gst_pad_push_data (pad=0xae5095b8 [GstDecodePad], type=3120720, data=0xaef2fc88) at gstpad.c:3530
    #9  0x002f9efc in gst_proxy_pad_chain_default (pad=0xb1f8ae20 [GstProxyPad], parent=
        0xae5095b8 [GstDecodePad], buffer=0xaef2fc88) at gstghostpad.c:289
    #10 0x00308883 in gst_pad_chain_data_unchecked (data=0xaef2fc88, type=3120720, pad=0xb1f8ae20 [GstProxyPad])
        at gstpad.c:3327
    #11 gst_pad_push_data (pad=0xb1f8cd68 [GstPad], type=3120720, data=0xaef2fc88) at gstpad.c:3530
    #12 0x0042e992 in gst_audio_decoder_push_forward (dec=0x88a7400 [GstVorbisDec], buf=0xaef2fc88)
        at gstaudiodecoder.c:656
    #13 0x0042ebb1 in gst_audio_decoder_output (dec=0x88a7400 [GstVorbisDec], buf=<optimized out>)
        at gstaudiodecoder.c:732
    #14 0x00434a99 in gst_audio_decoder_finish_frame (dec=0x88a7400 [GstVorbisDec], buf=0xaef2fd28,
        frames=<optimized out>) at gstaudiodecoder.c:924
    #15 0x0062e6f3 in vorbis_handle_data_packet (duration=<optimized out>, timestamp=<optimized out>, packet=
        0xb2828eb0, vd=0x88a7400 [GstVorbisDec]) at gstvorbisdec.c:593
    #16 vorbis_dec_handle_frame (dec=0x88a7400 [GstVorbisDec], buffer=0xaef05718) at gstvorbisdec.c:680
    #17 0x0042f9e1 in gst_audio_decoder_handle_frame (buffer=<optimized out>, klass=0xaef25248, dec=
        0x88a7400 [GstVorbisDec]) at gstaudiodecoder.c:969
    #18 gst_audio_decoder_push_buffers (dec=0x88a7400 [GstVorbisDec], force=0) at gstaudiodecoder.c:1058
    #19 0x0042fecb in gst_audio_decoder_chain_forward (dec=0x88a7400 [GstVorbisDec], buffer=0x0)
        at gstaudiodecoder.c:1160
    #20 0x00433255 in gst_audio_decoder_chain (pad=0xb1f8cc30 [GstPad], parent=0x88a7400 [GstVorbisDec], buffer=
        0xaef05718) at gstaudiodecoder.c:1405
    #21 0x00308883 in gst_pad_chain_data_unchecked (data=0xaef05718, type=4402720, pad=0xb1f8cc30 [GstPad])
        at gstpad.c:3327
    #22 gst_pad_push_data (pad=0xb1f8caf8 [GstPad], type=4402720, data=0xaef05718) at gstpad.c:3530
    #23 0x0055e033 in gst_single_queue_push_one (object=0xaef05718, sq=0x8407018, mq=0xaef1c6f0 [GstMultiQueue])
        at gstmultiqueue.c:1052
    #24 gst_multi_queue_loop (pad=0xb1f8caf8 [GstPad]) at gstmultiqueue.c:1283
    #25 0x00339a38 in gst_task_func (task=0xae50a2a0 [GstTask]) at gsttask.c:314
    #26 0x0033ab69 in default_func (tdata=0x8376200, pool=0x82cd6f0 [GstTaskPool]) at gsttaskpool.c:70
    #27 0x414621ef in g_thread_pool_thread_proxy (data=0x8145c18) at gthreadpool.c:317
    #28 0x41461814 in g_thread_proxy (data=0x885d780) at gthread.c:801
    #29 0x4e389cd3 in start_thread (arg=0xb2829b40) at pthread_create.c:309
    #30 0x4e2c783e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
     
    Thread 10 (Thread 0xaf8feb40 (LWP 9761)):
    #0  0x00110416 in __kernel_vsyscall ()
    #1  0x4e38d85c in pthread_cond_wait@@GLIBC_2.3.2 ()
        at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:172
    #2  0x4147de77 in g_cond_wait (cond=0xb1f8f254, mutex=0xb1f8f24c) at gthread-posix.c:746
    #3  0x004c055c in gst_base_sink_wait_preroll (sink=0xb1f8f188 [GstFakeSink]) at gstbasesink.c:2080
    #4  0x004c0790 in gst_base_sink_do_preroll (sink=0xb1f8f188 [GstFakeSink], obj=0xaef2ff08)
        at gstbasesink.c:2167
    #5  0x004c251c in gst_base_sink_do_sync (basesink=0xb1f8f188 [GstFakeSink], obj=0xaef2ff08, late=0xaf8fe018,
        step_end=0xaf8fe01c) at gstbasesink.c:2362
    #6  0x004c51e9 in gst_base_sink_chain_unlocked (basesink=0xb1f8f188 [GstFakeSink], pad=<optimized out>, obj=
        0xaef2ff08) at gstbasesink.c:3145
    #7  0x004c78a6 in gst_base_sink_chain_main (basesink=0xb1f8f188 [GstFakeSink], pad=<optimized out>, obj=
        0xaef2ff08) at gstbasesink.c:3271
    #8  0x00308883 in gst_pad_chain_data_unchecked (data=0xaef2ff08, type=5012016, pad=0x88a8750 [GstPad])
        at gstpad.c:3327
    #9  gst_pad_push_data (pad=0xaef1d618 [GstPad], type=5012016, data=0xaef2ff08) at gstpad.c:3530
    #10 0x00563110 in gst_queue_push_one (queue=0xad340218 [GstQueue]) at gstqueue.c:1063
    #11 gst_queue_loop (pad=0xaef1d618 [GstPad]) at gstqueue.c:1170
    #12 0x00339a38 in gst_task_func (task=0xad3410a8 [GstTask]) at gsttask.c:314
    #13 0x0033ab69 in default_func (tdata=0x881a9d0, pool=0x82cd6f0 [GstTaskPool]) at gsttaskpool.c:70
    #14 0x414621ef in g_thread_pool_thread_proxy (data=0x8145c18) at gthreadpool.c:317
    #15 0x41461814 in g_thread_proxy (data=0xb0204460) at gthread.c:801
    #16 0x4e389cd3 in start_thread (arg=0xaf8feb40) at pthread_create.c:309
    #17 0x4e2c783e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
     
    Thread 9 (Thread 0xb00ffb40 (LWP 9760)):
    #0  0x00110416 in __kernel_vsyscall ()
    #1  0x4e38d85c in pthread_cond_wait@@GLIBC_2.3.2 ()
        at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:172
    #2  0x4147de77 in g_cond_wait (cond=0xb1f8eed4, mutex=0xb1f8eecc) at gthread-posix.c:746
    #3  0x004c055c in gst_base_sink_wait_preroll (sink=0xb1f8ee08 [GstFakeSink]) at gstbasesink.c:2080
    #4  0x004c0790 in gst_base_sink_do_preroll (sink=0xb1f8ee08 [GstFakeSink], obj=0x8896018)
        at gstbasesink.c:2167
    #5  0x004c251c in gst_base_sink_do_sync (basesink=0xb1f8ee08 [GstFakeSink], obj=0x8896018, late=0xb00ff018,
        step_end=0xb00ff01c) at gstbasesink.c:2362
    #6  0x004c51e9 in gst_base_sink_chain_unlocked (basesink=0xb1f8ee08 [GstFakeSink], pad=<optimized out>, obj=
        0x8896018) at gstbasesink.c:3145
    #7  0x004c78a6 in gst_base_sink_chain_main (basesink=0xb1f8ee08 [GstFakeSink], pad=<optimized out>, obj=
        0x8896018) at gstbasesink.c:3271
    #8  0x00308883 in gst_pad_chain_data_unchecked (data=0x8896018, type=5012016, pad=0xaef1d888 [GstPad])
        at gstpad.c:3327
    #9  gst_pad_push_data (pad=0xaef1d9c0 [GstPad], type=5012016, data=0x8896018) at gstpad.c:3530
    #10 0x00563110 in gst_queue_push_one (queue=0xad340020 [GstQueue]) at gstqueue.c:1063
    #11 gst_queue_loop (pad=0xaef1d9c0 [GstPad]) at gstqueue.c:1170
    #12 0x00339a38 in gst_task_func (task=0xad341000 [GstTask]) at gsttask.c:314
    #13 0x0033ab69 in default_func (tdata=0xae5c5e60, pool=0x82cd6f0 [GstTaskPool]) at gsttaskpool.c:70
    #14 0x414621ef in g_thread_pool_thread_proxy (data=0x8145c18) at gthreadpool.c:317
    #15 0x41461814 in g_thread_proxy (data=0x874a9b0) at gthread.c:801
    #16 0x4e389cd3 in start_thread (arg=0xb00ffb40) at pthread_create.c:309
    #17 0x4e2c783e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
    Thread 5 (Thread 0xb0cffb40 (LWP 9752)):
    #0  0x00110416 in __kernel_vsyscall ()
    #1  0x4e2bcfb0 in __GI___poll (fds=0xb0301d98, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
    #2  0x4144bb0c in g_poll (fds=0xb0301d98, nfds=3, timeout=-1) at gpoll.c:132
    #3  0x4143dfde in g_main_context_poll (n_fds=3, fds=0xb0301d98, priority=<optimized out>,
        timeout=<optimized out>, context=0xb0d074b8) at gmain.c:3415
    #4  g_main_context_iterate (dispatch=1, block=1095023328, context=0xb0d074b8, self=<optimized out>)
        at gmain.c:3116
    #5  g_main_context_iterate (context=0xb0d074b8, block=1095023328, dispatch=1, self=0xb0d032f0)
        at gmain.c:3058
    #6  0x4143e4bf in g_main_loop_run (loop=0xb0d08bb8) at gmain.c:3315
    #7  0x43cb24ab in gdbus_shared_thread_func (user_data=0xb0d086c0) at gdbusprivate.c:276
    #8  0x41461814 in g_thread_proxy (data=0xb0d032f0) at gthread.c:801
    #9  0x4e389cd3 in start_thread (arg=0xb0cffb40) at pthread_create.c:309
    #10 0x4e2c783e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
     
    Thread 4 (Thread 0xb16feb40 (LWP 9751)):
    #0  0x00110416 in __kernel_vsyscall ()
    #1  0x4e2bcfb0 in __GI___poll (fds=0xb0d00c88, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
    #2  0x4144bb0c in g_poll (fds=0xb0d00c88, nfds=1, timeout=-1) at gpoll.c:132
    #3  0x4143dfde in g_main_context_poll (n_fds=1, fds=0xb0d00c88, priority=<optimized out>,
        timeout=<optimized out>, context=0x8469de0) at gmain.c:3415
    #4  g_main_context_iterate (dispatch=1, block=1095023328, context=0x8469de0, self=<optimized out>)
        at gmain.c:3116
    #5  g_main_context_iterate (context=0x8469de0, block=1095023328, dispatch=1, self=0x862b180) at gmain.c:3058
    #6  0x4143e4bf in g_main_loop_run (loop=0xb0d00c78) at gmain.c:3315
    #7  0x005a2235 in ?? () from /usr/lib/gio/modules/libdconfsettings.so
    #8  0x41461814 in g_thread_proxy (data=0x862b180) at gthread.c:801
    #9  0x4e389cd3 in start_thread (arg=0xb16feb40) at pthread_create.c:309
    #10 0x4e2c783e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
     
    Thread 3 (Thread 0xb1effb40 (LWP 9750)):
    #0  0x00110416 in __kernel_vsyscall ()
    #1  0x4e38dc04 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
        at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:238
    #2  0x4147dfb1 in g_cond_wait_until (cond=0x861b878, mutex=0x861b870, end_time=178802136716)
        at gthread-posix.c:855
    #3  0x4140e40c in g_cond_timed_wait (cond=0x861b878, mutex=0x861b870, abs_time=0xb1eff318)
        at deprecated/gthread-deprecated.c:1585
    #4  0x4141118c in g_async_queue_pop_intern_unlocked (queue=0x861b870, wait=1, end_time=0xb1eff318)
        at gasyncqueue.c:418
    #5  0x41462233 in g_thread_pool_wait_for_new_task (pool=0x861b830) at gthreadpool.c:273
    #6  g_thread_pool_thread_proxy (data=0x861b830) at gthreadpool.c:306
    #7  0x41461814 in g_thread_proxy (data=0x85db460) at gthread.c:801
    #8  0x4e389cd3 in start_thread (arg=0xb1effb40) at pthread_create.c:309
    #9  0x4e2c783e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
     
    Thread 1 (Thread 0xb7fd76c0 (LWP 9748)):
    #0  0x00110416 in __kernel_vsyscall ()
    #1  0x4e20498f in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
    #2  0x4e2062d5 in __GI_abort () at abort.c:91
    #3  0x4e243e3a in __libc_message (do_abort=2, fmt=0x4e33e74c "*** glibc detected *** %s: %s: 0x%s ***\n")
        at ../sysdeps/unix/sysv/linux/libc_fatal.c:198
    #4  0x4e24ad22 in malloc_printerr (action=<optimized out>, str=<optimized out>, ptr=0x876ee10)
        at malloc.c:5021
    #5  0x41443e1c in standard_free (mem=0x876ee10) at gmem.c:98
    #6  0x41443fc8 in g_free (mem=0x876ee10) at gmem.c:252
    #7  0x414297fa in g_error_free (error=0x8605590) at gerror.c:476
    #8  0x4126e0e2 in _g_type_boxed_free (type=137203672, value=0x8605590) at gtype.c:4246
    #9  0x41247bbf in boxed_proxy_value_free (value=0x884ce80) at gboxed.c:196
    #10 boxed_proxy_value_free (value=0x884ce80) at gboxed.c:193
    #11 0x412700c7 in g_value_unset (value=0x884ce80) at gvalue.c:276
    #12 0x41263adb in g_signal_emit_valist (instance=0x840b218, signal_id=154, detail=0,
        var_args=<optimized out>) at gsignal.c:3062
    #13 0x41263c44 in g_signal_emit (instance=0x840b218, signal_id=154, detail=0) at gsignal.c:3090
    #14 0x003f35ab in discoverer_collect (dc=0x840b218 [GstDiscoverer]) at gstdiscoverer.c:1071
    #15 0x003f3a2c in discoverer_bus_cb (dc=0x840b218 [GstDiscoverer], bus=<optimized out>, msg=<optimized out>)
        at gstdiscoverer.c:1317
    #16 discoverer_bus_cb (bus=0x840b318 [GstBus], msg=0xb1f01ae8, dc=0x840b218 [GstDiscoverer])
        at gstdiscoverer.c:1308
    #17 0x4124ca3a in g_cclosure_marshal_VOID__BOXED (closure=0x85992f8, return_value=0x0, n_param_values=2,
        param_values=0x8866c50, invocation_hint=0xbfffe630, marshal_data=0x0) at gmarshal.c:574
    #18 0x4124a905 in g_closure_invoke (closure=0x85992f8, return_value=0x0, n_param_values=2, param_values=
        0x8866c50, invocation_hint=0xbfffe630) at gclosure.c:774
    #19 0x4125bf75 in signal_emit_unlocked_R (node=0x808ca08, detail=837, instance=0x840b318, emission_return=
        0x0, instance_and_params=0x8866c50) at gsignal.c:3302
    #20 0x41263aba in g_signal_emit_valist (instance=0x840b318, signal_id=146, detail=837, var_args=
        0xbfffe7e0 "\364\277\071") at gsignal.c:3033
    #21 0x41263c44 in g_signal_emit (instance=0x840b318, signal_id=146, detail=837) at gsignal.c:3090
    #22 0x002e27b9 in gst_bus_async_signal_func (bus=0x840b318 [GstBus], message=0xb1f01ae8, data=0x0)
        at gstbus.c:1091
    #23 0x002e36b7 in gst_bus_source_dispatch (source=0x85a81d0, callback=0x2e2710 <gst_bus_async_signal_func>,
        user_data=0x0) at gstbus.c:739
    #24 0x4143dc4a in g_main_dispatch (context=0x82d2128) at gmain.c:2513
    #25 g_main_context_dispatch (context=0x82d2128) at gmain.c:3050
    #26 0x4143e055 in g_main_context_iterate (dispatch=1, block=1095023328, context=0x82d2128,
        self=<optimized out>) at gmain.c:3121
    #27 g_main_context_iterate (context=0x82d2128, block=1095023328, dispatch=1, self=0x865f2a0) at gmain.c:3058
    #28 0x4143e4bf in g_main_loop_run (loop=0x87463d8) at gmain.c:3315
    #29 0x42d7c155 in gtk_main () from /usr/lib/libgtk-3.so.0
    #30 0x4e58649a in ffi_call_SYSV () at ../src/x86/sysv.S:64
    #31 0x4e5861d0 in ffi_call (cif=0xbfffea5c, fn=0x42d7c0b0 <gtk_main>, rvalue=0xbfffeb84, avalue=0xbfffe9f0)
        at ../src/x86/ffi.c:303
    #32 0x0013e863 in _g_callable_info_invoke (info=0x874a630, function=0x42d7c0b0, in_args=0x0, n_in_args=0,
        out_args=0x0, n_out_args=0, return_value=0xbfffeb84, is_method=0, throws=0, error=0xbfffeb94)
        at girepository/gicallableinfo.c:518
    #33 0x0013fe42 in g_function_info_invoke (info=0x874a630, in_args=0x0, n_in_args=0, out_args=0x0, n_out_args=
        0, return_value=0xbfffeb84, error=0xbfffeb94) at girepository/gifunctioninfo.c:273
    #34 0x00126c07 in ?? () from /usr/lib/python2.7/site-packages/gi/_gi.so
    #35 0x416a8b8d in PyCFunction_Call () from /usr/lib/libpython2.7.so.1.0
    #36 0x417083b3 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
    #37 0x41709be2 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
    #38 0x41707be2 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
    #39 0x41709be2 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
    #40 0x41709d54 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
    #41 0x41723b4d in ?? () from /usr/lib/libpython2.7.so.1.0
    #42 0x41724b0e in PyRun_FileExFlags () from /usr/lib/libpython2.7.so.1.0
    #43 0x417256fa in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.7.so.1.0
    #44 0x417263cc in PyRun_AnyFileExFlags () from /usr/lib/libpython2.7.so.1.0
    #45 0x417376a4 in Py_Main () from /usr/lib/libpython2.7.so.1.0
    #46 0x08048508 in main ()
Comment 3 Sebastian Dröge (slomo) 2012-01-27 17:12:28 UTC
The signal in question is void signal(pointer, boxed) and the boxed parameter is a GError. Apparently the GError is freed twice, once by pygi and another time by the GLib signal code.
Comment 4 Christian Fredrik Kalager Schaller 2012-01-30 11:34:07 UTC
<tomeu> we have a commit adding support for GErrors in signals, and another one fixing somethng about it's transfer annotations
 I would give them a look
 (and make sure you have them)
<tomeu> search in git-log for 666270
<Uraeus> pbor, I just checked, and I don't think we have any APIs where we pass GErrors as signal arguments
 pbor, actually, we got it one place (which is where this crash happens :)
<tomeu> opportunity to make the API more consistent :)
<pbor> Uraeus: the pattern used in other places is that you get a signal that the an operation is complete and then you call finish(&err) to know if it failed and to retrieve the error
<Uraeus> pbor, ok, I am going to suggest such an API change, but we are not doing something 'wrong' here currently right, just not something 'ideal'? so gobject-introspection crashing isn't 'acceptable' behaviour regardless?
<pbor> Uraeus: yes, there is a bug on the pygi side
<tomeu> I think slomo will see what's going on by looking at the patches I mentioned before
<Uraeus> tomeu, 666270?
<pbor> yep
Comment 5 Christian Fredrik Kalager Schaller 2012-01-30 13:39:03 UTC
From https://bugzilla.gnome.org/show_bug.cgi?id=666270:
Hi Christian, that's seems related indeed. If you don't want python-gobject to
free the GError, you need to set the "transfer none" annotation on the signal.
Comment 6 Martin Pitt 2012-01-30 15:10:25 UTC
Sorry for my ignorance, what is "the application"? Do you still need help from me here, or is the pointer to fix the transfer mode enough? If so, how/where can this be reproduced?

In the past I think you shold always have gotten NULL passed as the GError argument. bug 666270 fixed that, and presumably exposed the wrong transfer annotation?

Thank you and sorry for any inconvenience that this caused.
Comment 7 Christian Fredrik Kalager Schaller 2012-01-30 15:26:08 UTC
Hi Martin,
The application that triggered this issue is the gtk3/gstreamer 0.11 version of Transmageddon available only in a git branch atm. Will look into the annotation issue and let you know if it solves the problem.
Comment 8 Christian Fredrik Kalager Schaller 2012-01-31 11:03:21 UTC
*** Bug 668853 has been marked as a duplicate of this bug. ***
Comment 9 Christian Fredrik Kalager Schaller 2012-02-03 11:53:42 UTC
Tried coming up with a simple testcase to run in ipython:
In [1]: from gi.repository import GLib
In [2]: from gi.repository import GObject
In [3]: from gi.repository import Gst
In [4]: from gi.repository import GstPbutils
In [5]: GObject.threads_init()

In [6]: Gst.init(None)
Out[6]: []
In [7]: def succeed(self, discoverer, info, error):
    result=GstPbutils.DiscovererInfo.get_result(info)
    print result
   ...:     
In [8]: discovered = GstPbutils.Discoverer.new(50000000000)
In [9]: discovered.connect('discovered', succeed)
Out[9]: 6L
In [10]: discovered.start()
In [11]: discovered.discover_uri_async("file://home/cschalle/Videos/output.ogg")0:00:51.472830240 11519  0x95e7360 ERROR                basesrc gstbasesrc.c:3378:gst_base_src_activate_pull:<source> Failed to start in pull mode
Out[11]: True
Comment 10 Christian Fredrik Kalager Schaller 2012-02-03 15:38:35 UTC
Created attachment 206685 [details]
GDB output of segfault

Tried updating the code to have the transfer none annotation, but it doesn't seem to make a difference. Attaching a GDB backtrace here and also GST_DEBUG gives me this:

0:00:13.483033300 10791  0x96d8aa0 DEBUG             discoverer 

gstdiscoverer.c:605:collect_stream_information: Got caps video/x-raw, format=(string)I420, width=(int)352, height=(int)240, pixel-aspect-ratio=(fraction)10/11, interlace-mode=(string)progressive, chroma-site=(string)jpeg, framerate=(fraction)30000/1001
0:00:13.483141363 10791  0x96d8aa0 DEBUG                default video.c:833:gst_video_info_from_caps: parsing caps video/x-raw, format=(string)I420, width=(int)352, height=(int)240, pixel-aspect-ratio=(fraction)10/11, interlace-mode=(string)progressive, chroma-site=(string)jpeg, framerate=(fraction)30000/1001
0:00:13.483271853 10791  0x96d8aa0 DEBUG             discoverer gstdiscoverer.c:908:parse_stream_topology: Coudn't find 'next' ! might be the last entry
0:00:13.483316395 10791  0x96d8aa0 DEBUG             discoverer gstdiscoverer.c:1071:discoverer_collect: Emitting 'discoverered'
Segmentation fault
Comment 11 Christian Fredrik Kalager Schaller 2012-02-03 15:39:29 UTC
Current patch with annotation is this:
--- a/gst-libs/gst/pbutils/gstdiscoverer.c
+++ b/gst-libs/gst/pbutils/gstdiscoverer.c
@@ -226,7 +226,7 @@ gst_discoverer_class_init (GstDiscovererClass * klass)
    * GstDiscoverer::discovered:
    * @discoverer: the #GstDiscoverer
    * @info: the results #GstDiscovererInfo
-   * @error: (type GLib.Error): #GError, which will be non-NULL if an error
+   * @error: (type GLib.Error) (transfer none): #GError, which will be non-NULL
    *                            occurred during discovery
    *
    * Will be emitted when all information on a URI could be discovered.
Comment 12 Christian Fredrik Kalager Schaller 2012-02-03 15:48:15 UTC
To be clear, these errors are still with Transmageddon, not from the attempt at a simple testcase.
Comment 13 Paolo Borelli 2012-02-05 15:38:52 UTC
Can you check if https://bugzilla.gnome.org/show_bug.cgi?id=669415 helps?
Comment 14 Martin Pitt 2012-02-06 08:43:13 UTC
I just pushed patches to fix bug 669415 to pygobject master. Could you please try again with current master? Thanks in advance!
Comment 15 Christian Fredrik Kalager Schaller 2012-02-06 12:56:50 UTC
Tried with the fix from 669415, crash is gone. Thanks for letting me know Marting. Closing this as a duplicate.

*** This bug has been marked as a duplicate of bug 669415 ***