Core Analysis

edscott wilson garcia edscott at imp.mx
Mon Jun 16 23:21:45 CEST 2003


Solaris is very picky about stdio functions with NULL or uninitialized
variables. The line that croaks is:
g_snprintf(caption, sizeof(caption), "%s: %s",tl->options.tooltip, s);

Probably tl->options.tooltip is not a valid memory location. My guess is
that the triggerlauncher in question has no tooltip defined, and when tl
is allocated, options.tooltip is not initialized to "" (initializing to
NULL will cause a crash in Solaris).

If you define a tooltip when adding the triggerlauncher does it crash as
well?

Edscott

El lun, 16-06-2003 a las 11:48, Craig A. Betts escribió:
> Juraj Ziegler wrote:
> > On Mon, Jun 16, 2003 at 08:03:45AM -0700, Craig A. Betts wrote:
> > 
> >>Sorry I took so long with this.  I had to do a lot of RTFMing to figure 
> >>out gdb.  Anyways, here are the results:
> >>
> >><<==--  SNIP  --==>>
> >>/usr/local/lib/gtk-2.0/2.2.0/loaders/libpixbufloader-wbmp.so
> >>#0  0xfe7b3144 in strlen () from /usr/lib/libc.so.1
> >>(gdb)
> >><<==-- UNSNIP --==>>
> > 
> > 
> > It shows the libraries being used. Maybe not in this case (I haven't
> > followed it closely), but it is often good to do a backtrace. 'bt'
> > command in gdb. It shows the stack of functions that have been called at
> > the moment the core dump occured. Effectively, it shows in which
> > function the segmentation fault occured, the values of the functions
> > parametertes, etc.
> > 
> > [e]
> 
> OK, here it goes...
> 
> <<==--  SNIP  --==>>
> (gdb) bt
> #0  0xfe7b3144 in strlen () from /usr/lib/libc.so.1
> #1  0xfe802ea8 in _doprnt () from /usr/lib/libc.so.1
> #2  0xfe80501c in vsnprintf () from /usr/lib/libc.so.1
> #3  0xfec513a8 in g_snprintf (str=0xffbedad0 "ÿ1 ü", n=2147483647,
>      fmt=0xfe5c2d60 "%s: %s") at gprintf.c:149
> #4  0xfe5c1460 in update_state (tl=0x227f08) at triggerlauncher.c:167
> #5  0xfe5c1a04 in create_tl_control (control=0x217de0) at 
> triggerlauncher.c:376
> #6  0x16434 in create_plugin (control=0xfe5c1940,
>      filename=0xfe5c1940 "\235ã¿\220\021") at controls.c:450
> #7  0x164fc in create_control (control=0x217de0, id=-1,
>      filename=0x59030 "libtriggerlauncher.so") at controls.c:470
> #8  0x17d60 in groups_add_control (id=-1,
>      filename=0x59030 "libtriggerlauncher.so", index=13) at groups.c:582
> #9  0x16174 in add_control (data=0xffffffff, n=9, w=0x1c5740) at 
> controls.c:304
> #10 0xff1535bc in gtk_item_factory_callback_marshal (widget=0xffffffff,
>      func_data=0x1c9e58) at gtkitemfactory.c:230
> #11 0xfeed2a10 in g_cclosure_marshal_VOID__VOID (closure=0x1e2390,
>      return_value=0x0, n_param_values=1, param_values=0xffbee0d0,
>      invocation_hint=0xffbedfc0, marshal_data=0xff153578) at gmarshal.c:72
> #12 0xfeebc6e8 in g_closure_invoke (closure=0x1e2390, return_value=0x0,
>      n_param_values=1, param_values=0xffbee0d0, invocation_hint=0xffbedfc0)
>      at gclosure.c:437
> #13 0xfeed2590 in signal_emit_unlocked_R (node=0x191900, detail=0,
>      instance=0x1c5740, emission_return=0x0, instance_and_params=0xffbee0d0)
>      at gsignal.c:2822
> #14 0xfeed1098 in g_signal_emit_valist (instance=0x1c5740, signal_id=149,
>      detail=0, var_args=0xffbee320) at gsignal.c:2554
> #15 0xfeed13a8 in g_signal_emit (instance=0x1c5740, signal_id=149,
>      detail=1644800) at gsignal.c:2612
> #16 0xff26181c in gtk_widget_activate (widget=0x1c5740) at gtkwidget.c:3223
> #17 0xff1802a4 in gtk_menu_shell_activate_item (menu_shell=0x7a840,
>      menu_item=0x1c5740, force_deactivate=0) at gtkmenushell.c:914
> #18 0xff17f1d8 in gtk_menu_shell_button_release (widget=0x7a840,
>      event=0x167ae8) at gtkmenushell.c:528
> #19 0xff177f4c in gtk_menu_button_release (widget=0x7a840, event=0x167ae8)
>      at gtkmenu.c:1972
> #20 0xff16fc58 in _gtk_marshal_BOOLEAN__BOXED (closure=0x51150,
>      return_value=0xffbee6b8, n_param_values=501824, 
> param_values=0xffbee7e8,
>      invocation_hint=0xffbee6d8, marshal_data=0xff177ebc) at 
> gtkmarshalers.c:82
> #21 0xfeebca84 in g_type_class_meta_marshal (closure=0x51150,
>      return_value=0xffbee6b8, n_param_values=501824, 
> param_values=0xffbee7e8,
>      invocation_hint=0xffbee6d8, marshal_data=0xb4) at gclosure.c:514
> #22 0xfeebc6e8 in g_closure_invoke (closure=0x51150, 
> return_value=0xffbee6b8,
>      n_param_values=2, param_values=0xffbee7e8, invocation_hint=0xffbee6d8)
>      at gclosure.c:437
> #23 0xfeed1eb4 in signal_emit_unlocked_R (node=0x517f8, detail=0,
>      instance=0x7a840, emission_return=0xffbee780,
>      instance_and_params=0xffbee7e8) at gsignal.c:2860
> #24 0xfeed0e80 in g_signal_emit_valist (instance=0x7a840, signal_id=333657,
>      detail=0, var_args=0xffbeea3c) at gsignal.c:2564
> #25 0xfeed13a8 in g_signal_emit (instance=0x51738, signal_id=333657,
>      detail=333816) at gsignal.c:2612
> #26 0xff2615b4 in gtk_widget_event_internal (widget=0x7a840, event=0x167ae8)
>      at gtkwidget.c:3191
> #27 0xff16f9f8 in gtk_propagate_event (widget=0x7a840, event=0x167ae8)
>      at gtkmain.c:2261
> #28 0xff16e7e4 in gtk_main_do_event (event=0x167ae8) at gtkmain.c:1503
> #29 0xfefbf858 in gdk_event_dispatch (source=0x167ae8, callback=0,
>      user_data=0x0) at gdkevents-x11.c:2005
> #30 0xfec2a89c in g_main_dispatch (context=0x4c018) at gmain.c:1720
> #31 0xfec2bd10 in g_main_context_dispatch (context=0x4c018) at gmain.c:2268
> #32 0xfec2c0c0 in g_main_context_iterate (context=0x4c018, block=1,
>      dispatch=1, self=0x1400) at gmain.c:2349
> #33 0xfec2c9e0 in g_main_loop_run (loop=0x167530) at gmain.c:2569
> #34 0xff16dd8c in gtk_main () at gtkmain.c:1093
> #35 0x1b4d0 in main (argc=1, argv=0xffbeef24) at main.c:258
> (gdb)
> <<==-- UNSNIP --==>>
> 
> 
> -- 
> Craig A. Betts
> IT Security Design Engineer
> Arcata Associates, Inc. - Dryden Flight Research Center - NASA
> Voice: (661) 276-2085     Pager: (661) 276-3038 #4010
> 
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://moongroup.com/mailman/listinfo/xfce4-dev
> 





More information about the Xfce4-dev mailing list