Bug#546668: python-brasero: Packaged example script aborts with GLib-ERROR

Andrew Price andy at andrewprice.me.uk
Tue Sep 15 00:28:14 UTC 2009


Hi Emilio,

On Tue, Sep 15, 2009 at 01:24:03AM +0200, Emilio Pozuelo Monfort wrote:
> Does
> $ python -c 'import braseromedia; braseromedia.MediumMonitor ()'
> fail?

Yes.

> I dunno what's going wrong... Just two ideas, does it fail with glib from
> experimental,

It does.

> and can you rebuild libbrasero-media with
> DEB_BUILD_OPTIONS=nostrip ? The code in libbrasero-media/ doesn't call
> g_thread_create_full (only g_thread_create) so I'm not sure what's calling it
> and why it fails, maybe with more symbols we could find it out.

OK I built it with nostrip and installed some other -dbg packages. I think
we're looking at around line #4 in this one:

GLib-ERROR **: The thread system is not yet initialized.
aborting...

Program received signal SIGTRAP, Trace/breakpoint trap.
IA__g_logv (log_domain=0xb7bc1986 "GLib", log_level=G_LOG_LEVEL_ERROR, format=0xb7bceae8 "The thread system is not yet initialized.", args1=0xbfffe7cc "\232")
    at /build/buildd/glib2.0-2.21.5/glib/gmessages.c:512
512	/build/buildd/glib2.0-2.21.5/glib/gmessages.c: No such file or directory.
	in /build/buildd/glib2.0-2.21.5/glib/gmessages.c
(gdb) bt
#0  IA__g_logv (log_domain=0xb7bc1986 "GLib", log_level=G_LOG_LEVEL_ERROR, format=0xb7bceae8 "The thread system is not yet initialized.", args1=0xbfffe7cc "\232")
    at /build/buildd/glib2.0-2.21.5/glib/gmessages.c:512
#1  0xb7b91cb6 in IA__g_log (log_domain=0xb7bc1986 "GLib", log_level=G_LOG_LEVEL_ERROR, format=0xb7bceae8 "The thread system is not yet initialized.")
    at /build/buildd/glib2.0-2.21.5/glib/gmessages.c:526
#2  0xb7bb0972 in g_thread_fail () at /build/buildd/glib2.0-2.21.5/glib/gthread.c:591
#3  0xb7bb19ff in IA__g_thread_create_full (func=0xb6d95790 <brasero_drive_probe_thread>, data=0x839b460, stack_size=0, joinable=1, bound=0, priority=G_THREAD_PRIORITY_NORMAL, 
    error=0x0) at /build/buildd/glib2.0-2.21.5/glib/gthread.c:663
#4  0xb6d956cd in brasero_drive_init_real_device (object=0x839b460, prop_id=1, value=0xbfffe938, pspec=0x83adef0) at brasero-drive.c:1119
#5  brasero_drive_set_property (object=0x839b460, prop_id=1, value=0xbfffe938, pspec=0x83adef0) at brasero-drive.c:1180
#6  0xb7c1dc51 in object_set_property (type=137887520, n_construct_properties=1, construct_params=0x834ece8) at /build/buildd/glib2.0-2.21.5/gobject/gobject.c:942
#7  g_object_constructor (type=137887520, n_construct_properties=1, construct_params=0x834ece8) at /build/buildd/glib2.0-2.21.5/gobject/gobject.c:1352
#8  0xb7c1e3d6 in IA__g_object_newv (object_type=137887520, n_parameters=2, parameters=0x83b24e8) at /build/buildd/glib2.0-2.21.5/gobject/gobject.c:1215
#9  0xb7c1f002 in IA__g_object_new_valist (object_type=137887520, first_property_name=0xb6d9b82a "device", var_args=0xbfffeb64 "")
    at /build/buildd/glib2.0-2.21.5/gobject/gobject.c:1319
#10 0xb7c1f14e in IA__g_object_new (object_type=137887520, first_property_name=0xb6d9b82a "device") at /build/buildd/glib2.0-2.21.5/gobject/gobject.c:1060
#11 0xb6d8a4c6 in brasero_medium_monitor_init (object=0x838b6a0) at brasero-medium-monitor.c:664
#12 0xb7c3a535 in IA__g_type_create_instance (type=137744328) at /build/buildd/glib2.0-2.21.5/gobject/gtype.c:1674
#13 0xb7c1db65 in g_object_constructor (type=137744328, n_construct_properties=0, construct_params=0x0) at /build/buildd/glib2.0-2.21.5/gobject/gobject.c:1338
#14 0xb7c1e3d6 in IA__g_object_newv (object_type=137744328, n_parameters=0, parameters=0x0) at /build/buildd/glib2.0-2.21.5/gobject/gobject.c:1215
#15 0xb7ab5962 in ?? () from /usr/lib/pymodules/python2.5/gtk-2.0/gobject/_gobject.so
#16 0xb7abd918 in ?? () from /usr/lib/pymodules/python2.5/gtk-2.0/gobject/_gobject.so
#17 0x080ad691 in type_call (type=0xb7aca970, args=0xb7de402c, kwds=0x0) at ../Objects/typeobject.c:436
#18 0x0805d4b7 in PyObject_Call (func=0x30, arg=0xb7de402c, kw=0x0) at ../Objects/abstract.c:1861
#19 0x080ccf75 in do_call (f=0x817d39c, throwflag=0) at ../Python/ceval.c:3823
#20 call_function (f=0x817d39c, throwflag=0) at ../Python/ceval.c:3635
#21 PyEval_EvalFrameEx (f=0x817d39c, throwflag=0) at ../Python/ceval.c:2304
#22 0x080d00c5 in PyEval_EvalCodeEx (co=0xb7dac380, globals=0xb7dfdacc, locals=0xb7dfdacc, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at ../Python/ceval.c:2875
#23 0x080d02d7 in PyEval_EvalCode (co=0xb7dac380, globals=0xb7dfdacc, locals=0xb7dfdacc) at ../Python/ceval.c:514
#24 0x080ed71f in run_mod (fp=0x816e008, filename=0xbffff564 "drive_selection.py", start=257, globals=0xb7dfdacc, locals=0xb7dfdacc, closeit=1, flags=0xbffff308)
    at ../Python/pythonrun.c:1273
#25 PyRun_FileExFlags (fp=0x816e008, filename=0xbffff564 "drive_selection.py", start=257, globals=0xb7dfdacc, locals=0xb7dfdacc, closeit=1, flags=0xbffff308)
    at ../Python/pythonrun.c:1259
#26 0x080ed9ea in PyRun_SimpleFileExFlags (fp=0x816e008, filename=0xbffff564 "drive_selection.py", closeit=1, flags=0xbffff308) at ../Python/pythonrun.c:879
#27 0x08059357 in Py_Main (argc=1, argv=0xbffff3d4) at ../Modules/main.c:532
#28 0x08058722 in main (argc=Cannot access memory at address 0x30
) at ../Modules/python.c:23

I hope that's more helpful.

Cheers,

Andrew






More information about the pkg-gnome-maintainers mailing list