Re: libseed-list GLib.log_set_default_handler segfaults



This should be fixed in HEAD now. (although it does not actually return the callback as we do not handle that yet.)

Regards
Alan

 --- On 03/Jul/2010, Jonatan Liljedahl wrote: 
> #0  0x003733e6 in g_type_info_get_tag () from 
> /usr/lib/libgirepository-1.0.so.0
> #1  0x00143b66 in seed_gi_argument_make_js (ctx=0xb656d1b8, 
> arg=0xbfffe6b4, type_info=0x0, exception=0xbfffe8ac)
>      at seed-types.c:791
> #2  0x00144029 in seed_gi_argument_make_js (ctx=0xb656d1b8, 
> arg=0xbfffe734, type_info=0x808e130, exception=0xbfffe8ac)
>      at seed-types.c:909
> #3  0x0013baf8 in seed_gobject_method_invoked (ctx=0xb656d1b8, 
> function=0xb651f240, this_object=0xb65039c0,
>      argumentCount=2, arguments=0xbfffe864, exception=0xbfffe8ac) at 
> seed-engine.c:661
> #4  0x004b7941 in ?? () from /usr/lib/libwebkit-1.0.so.2
> #5  0x004f9bfd in ?? () from /usr/lib/libwebkit-1.0.so.2
> #6  0x024d1061 in ?? ()
> #7  0x00508b88 in ?? () from /usr/lib/libwebkit-1.0.so.2
> #8  0x0058511f in ?? () from /usr/lib/libwebkit-1.0.so.2
> #9  0x004b30bf in JSEvaluateScript () from /usr/lib/libwebkit-1.0.so.2
> #10 0x001385be in seed_simple_evaluate (ctx=0xb69a1564, source=0x8093688 
> "GLib.log_set_default_handler(f,null)",
>      exception=0xbfffec6c) at seed-api.c:305
> 
> This was triggered by:
> 
> f = function(domain,level,message,data) { print(domain+message) }
> GLib.log_set_default_handler(f,null)
> 
> It seems it gets a type_info of NULL. One thing I don't understand is 
> why the crashing call is made by seed_gi_argument_make_js() at line 909, 
> where it handles GLIST arguments, since the log_handler callback 
> (GLogFunc) doesn't take any list arguments..
> 
> /Jonatan
> _______________________________________________
> libseed-list mailing list
> libseed-list gnome org
> http://mail.gnome.org/mailman/listinfo/libseed-list



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