Crash in lttv-10.0-pre5 on 2.6.24-rc5
Gregory Haskins <[email protected]> Tue, 18 Dec 2007 10:32:49 -0500
| Newsgroups | gmane.linux.kernel.tracing |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
I'm new to the list, and this is my first post.
Ive been trying to get LTTng working on several different versions of
linux to no avail. The good news is that I actually was able to
generate a semblance of a trace for the first time today, so I was very
happy about that. However, I ran into several problems:
1) lttv crashes with the following:
** Message: statistics viewer : background computation data ready.
** Message: statistics viewer : background computation data ready.
Gtk-Message: The filename "CA\3056zA\305-dBqaA\305" couldn't be
converted to UTF-8. (try setting the environment variable
G_FILENAME_ENCODING): Invalid byte sequence in conversion input
** (lttv.real:28905): WARNING **: No marker of name
kernel_arch_syscall_entry found
(lttv.real:28905): GLib-CRITICAL **: g_array_remove_range: assertion
`index_ < array->len' failed
** (lttv.real:28905): WARNING **: No marker of name
kernel_arch_trap_entry found/usr/local/bin/lttv-gui: line 10: 28905
Segmentation fault (core dumped) $LTTV_CMD.real -m guievents -m
guifilter -m guicontrolflow -m resourceview -m guistatistics -m
guitracecontrol $*
--------------------------------------------
Program terminated with signal 11, Segmentation fault.
#0 0x000000000041809a in lttv_trace_hook_remove_all (th=0x7fff2a1ca068)
at tracecontext.c:1041
1041 for(i=0; i<(*th)->len; i++) {
(gdb) bt
#0 0x000000000041809a in lttv_trace_hook_remove_all (th=0x7fff2a1ca068)
at tracecontext.c:1041
#1 0x0000000000412c32 in init (self=0x897d30, ts=0x886f00) at state.c:1817
#2 0x00000000004174b5 in init (self=0x897d30, ts=0x886f00) at stats.c:199
#3 0x00002b1082b9e965 in lttvwindowtraces_add_trace (trace=0x7d96f0)
at lttvwindowtraces.c:196
#4 0x00002b1082ba972d in add_trace (widget=0x527910,
user_data=<value optimized out>) at callbacks.c:1824
#5 0x00002b1080ea43ba in g_closure_invoke ()
from /opt/gnome/lib64/libgobject-2.0.so.0
#6 0x00002b1080eb3ef1 in g_str_equal ()
from /opt/gnome/lib64/libgobject-2.0.so.0
#7 0x00002b1080eb5715 in g_signal_emit_valist ()
from /opt/gnome/lib64/libgobject-2.0.so.0
#8 0x00002b1080eb58f3 in g_signal_emit ()
from /opt/gnome/lib64/libgobject-2.0.so.0
#9 0x00002b1081654f0a in gtk_widget_activate ()
from /opt/gnome/lib64/libgtk-x11-2.0.so.0
#10 0x00002b1081582420 in gtk_menu_shell_activate_item ()
from /opt/gnome/lib64/libgtk-x11-2.0.so.0
#11 0x00002b1081583890 in g_str_equal ()
from /opt/gnome/lib64/libgtk-x11-2.0.so.0
#12 0x00002b10815774cd in g_str_equal ()
from /opt/gnome/lib64/libgtk-x11-2.0.so.0
#13 0x00002b1080ea43ba in g_closure_invoke ()
from /opt/gnome/lib64/libgobject-2.0.so.0
#14 0x00002b1080eb4511 in g_str_equal ()
from /opt/gnome/lib64/libgobject-2.0.so.0
#15 0x00002b1080eb54dd in g_signal_emit_valist ()
from /opt/gnome/lib64/libgobject-2.0.so.0
#16 0x00002b1080eb58f3 in g_signal_emit ()
from /opt/gnome/lib64/libgobject-2.0.so.0
#17 0x00002b10816514be in g_str_equal ()
from /opt/gnome/lib64/libgtk-x11-2.0.so.0
#18 0x00002b108157119d in gtk_propagate_event ()
from /opt/gnome/lib64/libgtk-x11-2.0.so.0
#19 0x00002b10815721d1 in gtk_main_do_event ()
from /opt/gnome/lib64/libgtk-x11-2.0.so.0
#20 0x00002b10818bf5fc in g_str_equal ()
from /opt/gnome/lib64/libgdk-x11-2.0.so.0
#21 0x00002b1080d2ffca in g_main_context_dispatch ()
from /opt/gnome/lib64/libglib-2.0.so.0
#22 0x00002b1080d33055 in g_str_equal () from
/opt/gnome/lib64/libglib-2.0.so.0
#23 0x00002b1080d33365 in g_main_loop_run ()
from /opt/gnome/lib64/libglib-2.0.so.0
#24 0x00002b1081572563 in gtk_main () from
/opt/gnome/lib64/libgtk-x11-2.0.so.0
#25 0x00002b1082ba0096 in window_creation_hook (
hook_data=<value optimized out>, call_data=<value optimized out>)
at init_module.c:129
#26 0x000000000040c93a in lttv_hooks_call (h=0x531158, call_data=0x0)
at hook.c:272
#27 0x000000000040aecd in main (argc=13, argv=0x7fff2a1cd268) at main.c:219
(gdb)
I would be more than happy to provide the trace and/or corefile that
generated this crash. It is 100% reproducible.
I have fixed the crash with the following patch:
--- tracecontext.c~ 2007-11-11 23:33:20.000000000 -0500
+++ tracecontext.c 2007-12-18 07:37:04.000000000 -0500
@@ -1038,6 +1038,10 @@
void lttv_trace_hook_remove_all(GArray **th)
{
int i;
+
+ if (!(*th))
+ return;
+
for(i=0; i<(*th)->len; i++) {
g_ptr_array_free(g_array_index(*th, LttvTraceHook, i).fields, TRUE);
}
2) The second problem I have is that even after fixing the crash, my
traces contain almost zero data. I have 14 events related to "core" and
"facility" but nothing really useful. I noticed that in older versions
of lttng, I would have ltt-probe-* modules in addition to
ltt-control/ltt-statedump, etc. In the 24-rc version, the ltt-probe
modules seem to be missing. Is this expected? Is this the reason why I
have no useful data?
Any help would be appreciated!
Regards,
-Greg
_______________________________________________
Ltt-dev mailing list
[email protected]
http://listserv.shafik.org/mailman/listinfo/ltt-dev
signature.asc
(application/pgp-signature, 260 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHZyfWP5K2CMvXmqERAhzMAKCBKOo49CEKSaPUTs3CWq7WHimwNwCfegqB AAFybuVlVU4TUaPcxc5posQ= =XKD9 -----END PGP SIGNATURE-----