Re: NMClient g-i bindings unusable



Hi Tomeu,

Thanks a lot for looking at this during the hackfest!

On Sat, Aug 6, 2011 at 10:27 PM, Daniel Drake <dsd laptop org> wrote:
> And after making those fixes, I ran into crashes in doing things like
> NMClient.Client().get_devices() (this segfaults inside
> g_object_set_qdata).

After applying

http://mail.gnome.org/archives/networkmanager-list/2011-August/msg00060.html
and
http://mail.gnome.org/archives/networkmanager-list/2011-August/msg00068.html
and
http://mail.gnome.org/archives/networkmanager-list/2011-August/msg00069.html

I can still reproduce the same crash. Here are more details:

Python 2.7.1 (r271:86832, Apr 12 2011, 16:16:18)
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import NMClient
>>> client = NMClient.Client(dbus_path='/org/freedesktop/NetworkManager')
>>> devs = client.get_devices()

Program received signal SIGSEGV, Segmentation fault.
0x42112087 in g_object_get_qdata () from /lib/libgobject-2.0.so.0
(gdb) bt
#0  0x42112087 in g_object_get_qdata () from /lib/libgobject-2.0.so.0
#1  0x00926a5f in pygobject_new_full (obj=0x20, sink=1, g_class=0x0)
    at pygobject.c:948
#2  0x00926c0c in pygobject_new (obj=0x20) at pygobject.c:988
#3  0x00fa37eb in _pygi_argument_to_object (arg=0xbfd77c94, type_info=
    0x9536f80, transfer=GI_TRANSFER_NOTHING) at pygi-argument.c:1674
#4  0x00fa34d2 in _pygi_argument_to_object (arg=0xbfd77dcc, type_info=
    0x945de00, transfer=GI_TRANSFER_NOTHING) at pygi-argument.c:1532
#5  0x00fa083b in _process_invocation_state (py_args=0xb7427c4c, function_info=
    0x94d85b0, state=0xbfd77d60) at pygi-invoke.c:761
#6  _wrap_g_callable_info_invoke (self=0xb7424fcc, py_args=0xb7427c4c, kwargs=
    0x0) at pygi-invoke.c:1026
#7  0x430a3a4d in PyCFunction_Call () from /usr/lib/libpython2.7.so.1.0

Any ideas?

Thanks,
Daniel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]