[ltt-dev] lttv segfault on File->Quit

Atsushi Nemoto anemo at mba.ocn.ne.jp
Tue Jun 9 11:07:15 EDT 2009


Hi.  lttv 0.12.14 (and maybe others) will cause segfault by Quit
command in File menu.

Here is gdb session log.  Just invoke lttv (without trace data) and
select Quit.

$ gdb ../local/bin/lttv.real 
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run -m guievents -m guifilter -m guicontrolflow -m resourceview -m guistatistics -m guitracecontrol --debug --verbose
Starting program: /work/local/bin/lttv.real -m guievents -m guifilter -m guicontrolflow -m resourceview -m guistatistics -m guitracecontrol --debug --verbose
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c846b0 (LWP 4792)]
** (process:4792): DEBUG: Option verbose hook called
** INFO: Logging set to include INFO level messages
** (process:4792): DEBUG: GUI window_creation_hook()
** (lttv.real:4792): DEBUG: construct_main_window()
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** INFO: h_guicontrolflow, 0x93a4858
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** Message: statistics viewer : background computation data ready.
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** INFO: There are now : 1 windows

** (lttv.real:4792): DEBUG: get_events : SCROLL_NONE
** INFO: Entering seek_time_closest for time 0.0
** INFO: NOT Calling restore
** INFO: Entering seek_time_closest for time 4294967295.1000000000
** INFO: NOT Calling restore
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** INFO: processlist_clear 0x94e2848
** INFO: processlist_clear 0x94e2848
** (lttv.real:4792): DEBUG: req : window start_time : 0, 0
** (lttv.real:4792): DEBUG: req : window time width : 1, 0
** (lttv.real:4792): DEBUG: req : window_end : 1, 0
** (lttv.real:4792): DEBUG: x is : 0, x+width is : 1
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** Message: statistics viewer : background computation data ready.
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** INFO: Old time window HOOK : 0, 0 to 1, 0
** INFO: New time window HOOK : 0, 0 to 1, 0
** INFO: scrolling
** INFO: not scrolling
** INFO: update_current_time
** INFO: Entering seek_time_closest for time 0.0
** INFO: NOT Calling restore
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** INFO: event_update_selection
** INFO: New current time HOOK : 0, 0
** (lttv.real:4792): DEBUG: size allocate 0x94cd2a0 : last_num_visible_events : 1
** (lttv.real:4792): DEBUG: num_visible_events : 7, value 0.000000
** (lttv.real:4792): DEBUG: get_events : SCROLL_JUMP
** INFO: Entering seek_time_closest for time 0.0
** INFO: NOT Calling restore
** (lttv.real:4792): DEBUG: drawing configure event
** (lttv.real:4792): DEBUG: New alloc draw size : 642 by 176
** (lttv.real:4792): DEBUG: req : window start_time : 0, 0
** (lttv.real:4792): DEBUG: req : window time width : 1, 0
** (lttv.real:4792): DEBUG: req : window_end : 1, 0
** (lttv.real:4792): DEBUG: x is : 0, x+width is : 642
** (lttv.real:4792): DEBUG: AFTER EXPOSE
** (lttv.real:4792): DEBUG: ruler expose event
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** (lttv.real:4792): DEBUG: attribute_finalize()
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** (lttv.real:4792): DEBUG: attribute_finalize()
** INFO: Unload library builtin: module print used
** INFO: Module module: destroy()
** INFO: Destroy module.c
** INFO: Unload library builtin: locked loaded
** INFO: Unload library builtin: locked loaded
** INFO: Module guievents: destroy()
** (lttv.real:4792): DEBUG: lttv_hooks_destroy()
** INFO: Unload library guievents: locked loaded
** INFO: Module print: destroy()
** INFO: Unload library builtin: locked loaded
** INFO: Unload library guievents: locked loaded
** INFO: Unload library guievents: module lttvwindow used
** INFO: Unload library guievents: module lttvwindow used
** INFO: Module guifilter: destroy()
** INFO: Unload library guievents: module lttvwindow used
** INFO: Unload library guifilter: locked loaded
** INFO: Unload library guifilter: close the GModule
** INFO: Unload library guievents: module lttvwindow used
** INFO: Unload library guievents: module lttvwindow used
** INFO: Module guicontrolflow: destroy()
** INFO: GUI Control Flow Viewer destroy()
** INFO: Walk destroy GUI Control Flow Viewer
** INFO: CFV.c : guicontrolflow_destructor_full, 0x94e1808
** (lttv.real:4792): DEBUG: processlist_destroy 0x94e2848
** (lttv.real:4792): DEBUG: processlist_destroy end
** INFO: drawing_destroy 0x94cd340
** INFO: drawing_destroy end
** INFO: CFV.c : guicontrolflow_destructor, 0x94e1808
** INFO: 0xb7401a50, 0x94e1808, 0x93a4858
** INFO: widget still exists
** INFO: CFV.c : guicontrolflow_destructor end, 0x94e1820
** INFO: Unload library guievents: module lttvwindow used
** INFO: Unload library guicontrolflow: locked loaded
** INFO: Unload library guicontrolflow: close the GModule
** INFO: Unload library guievents: module lttvwindow used
** INFO: Unload library guievents: module lttvwindow used
** INFO: Module resourceview: destroy()
** INFO: GUI resource viewer destroy()
** INFO: Unload library guievents: module lttvwindow used
** INFO: Unload library resourceview: locked loaded
** INFO: Unload library resourceview: close the GModule
** INFO: Unload library guievents: module lttvwindow used
** INFO: Unload library guievents: module lttvwindow used
** INFO: Module guistatistics: destroy()
** (lttv.real:4792): DEBUG: CFV.c : statistic_destroy_walk, 0x94e9420

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7c846b0 (LWP 4792)]
0xb7e23ef0 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
(gdb) bt
#0  0xb7e23ef0 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#1  0xb7e244ba in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#2  0xb7e2460e in g_object_new () from /usr/lib/libgobject-2.0.so.0
#3  0xb794c11d in gtk_adjustment_new () from /usr/lib/libgtk-x11-2.0.so.0
#4  0xb7b03726 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#5  0x00000000 in ?? ()
(gdb) 


The Close command in File menu work fine.  Any suggestions?

---
Atsushi Nemoto




More information about the lttng-dev mailing list