Project

General

Profile

Actions

Bug #296

closed

libbabeltrace segfault in mmap_align_addr

Added by Yannick Brosseau over 12 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/09/2012
Due date:
% Done:

100%

Estimated time:

Description

We get a SIGSEGV in mmap_align_addr with a call to bt_iter_set_pos

See the callstack.

#0 0x00007ffff4ae2480 in mmap_align_addr (mma=0x0) at ../../../include/babeltrace/mmap-align.h:85
#1 0x00007ffff4ae3128 in ctf_integer_read (ppos=0x80eed8, definition=0x80b550) at integer.c:226
#2 0x00007ffff4ae19f7 in ctf_enum_read (ppos=0x80eed8, definition=0x80b510) at enum.c:39
#3 0x00007ffff4d14368 in generic_rw (pos=0x80eed8, definition=0x80b510) at ../include/babeltrace/types.h:120
#4 0x00007ffff4d143c4 in struct_rw (ppos=0x80eed8, definition=0x80bf70) at struct.c:48
#5 0x00007ffff4ae789e in ctf_struct_rw (ppos=0x80eed8, definition=0x80bf70) at struct.c:29
#6 0x00007ffff4adbb50 in generic_rw (pos=0x80eed8, definition=0x80bf70) at ../../include/babeltrace/types.h:120
#7 0x00007ffff4adc62a in ctf_read_event (ppos=0x80eed8, stream=0x80ee50) at ctf.c:356
#8 0x00007ffff4d0f77d in stream_read_event (sin=0x80ee50) at iterator.c:56
#9 0x00007ffff4d0fbf2 in bt_iter_set_pos (iter=0x7d9460, iter_pos=0x89c8f0) at iterator.c:237
#10 0x0000000000413350 in lttv_traceset_seek_to_position (traceset_pos=0x7fffffffcbf0) at traceset.c:469
#11 0x0000000000413712 in lttv_traceset_position_get_timestamp (pos=0x7fffffffcc40) at traceset.c:616
#12 0x000000000041341f in lttv_traceset_get_timestamp_first_event (ts=0x7d92f0) at traceset.c:504
#13 0x000000000041359b in lttv_traceset_get_time_span_real (ts=0x7d92f0) at traceset.c:577
#14 0x00007ffff09d7d62 in get_events (new_value=38212299323.416458, event_viewer_data=0x7a5b00) at events.c:1361
#15 0x00007ffff09d774a in v_scroll_cb (adjustment=0x7c1c50, data=0x7a5b00) at events.c:1155
#16 0x00007ffff562e724 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffff563f7b0 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff564772c in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff56478c2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#20 0x00007ffff718d82a in gtk_adjustment_value_changed () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#21 0x00007ffff7289cc9 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#22 0x00007ffff724a91e in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#23 0x00007ffff562e724 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#24 0x00007ffff563f530 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#25 0x00007ffff564734b in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#26 0x00007ffff56478c2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#27 0x00007ffff728a3b6 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#28 0x00007ffff728a46f in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#29 0x00007ffff724a538 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#30 0x00007ffff562e724 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#31 0x00007ffff563f530 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#32 0x00007ffff564734b in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#33 0x00007ffff56478c2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#34 0x00007ffff7363451 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#35 0x00007ffff72486c3 in gtk_propagate_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#36 0x00007ffff7248a23 in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#37 0x00007ffff6eb41ec in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#38 0x00007ffff4f64205 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007ffff4f64538 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007ffff4f64932 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007ffff7247a77 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#42 0x00007ffff0beb93f in window_creation_hook (hook_data=0x0, call_data=0x0) at init_module.c:132
#43 0x000000000040a680 in lttv_hooks_call (h=0x62a120, call_data=0x0) at hook.c:272
#44 0x0000000000407f5e in main (argc=15, argv=0x7fffffffe218) at main.c:223


Related issues 1 (0 open1 closed)

Related to Babeltrace - Bug #293: API problem with bt_iter_set_posResolvedJulien Desfossez07/04/2012

Actions
Actions #1

Updated by Yannick Brosseau over 12 years ago

Here's the problematic trace:
http://www.dorsal.polymtl.ca/~ybrosseau/trace-kernel.tar.bz2

The trace looks fine in babeltrace, so it's probably seek related. The
test program in #293 would probably be useful to reproduce.

Actions #2

Updated by Julien Desfossez over 12 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF