Project

General

Profile

Actions

Bug #734

closed

LTTng-UST produces unreadable traces when string input from application is concurrently changed

Added by Stanislav Vovk about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
High
Target version:
Start date:
02/18/2014
Due date:
% Done:

100%

Estimated time:

Description

Commit:
babeltrace 87353f23d5107c8cc09719d46cc8ccee5da989f7 (v1.1.1)

Problem:
Command used when crash happend, directory points to a folder containing a snapshot.

babeltrace --clock-date -n none /trace/telog

crash occurrence is not regular, happens rarely. Following is printed by shell at moment of the crash.
babeltrace: ../../include/babeltrace/ctf/types.h:224: ctf_pos_get_event: Assertion `pos->offset <= pos->content_size' failed.

Backtrace:

(gdb) bt full
#0  0x0fbadaa0 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x0fbb2930 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x0fba599c in ?? () from /lib/libc.so.6
No symbol table info available.
#3  0x0fba5a54 in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#4  0x0ff8b274 in ?? () from /usr/lib/libbabeltrace-ctf.so.0
No symbol table info available.
#5  0x0ffd4edc in ?? () from /usr/lib/libbabeltrace.so.0
No symbol table info available.
#6  0x0ffd6110 in bt_iter_next () from /usr/lib/libbabeltrace.so.0
No symbol table info available.
#7  0x10001ff0 in convert_trace (ctx=0x10015f48, td_write=0x100a8b24) at babeltrace.c:633
        iter = 0x100a7550
        ret = <optimized out>
        sout = 0x100a8b10
        begin_pos = {type = BT_SEEK_BEGIN, u = {seek_time = 1141231514160201729, restore = 0xfd67804}}
        ctf_event = <optimized out>
#8  main (argc=<optimized out>, argv=<optimized out>) at babeltrace.c:760
        ret = <optimized out>
        partial_error = <optimized out>
        open_success = <optimized out>
        fmt_write = 0xff72f4c
        td_write = 0x100a8b24
        ctx = 0x10015f48
        i = <optimized out>
(gdb) q  


Files

fix-ust-strcpy-with-racy-input.patch (7.12 KB) fix-ust-strcpy-with-racy-input.patch Mathieu Desnoyers, 04/14/2014 11:19 AM
fix-ust-strcpy-with-racy-input-2.patch (7.56 KB) fix-ust-strcpy-with-racy-input-2.patch Mathieu Desnoyers, 04/14/2014 03:17 PM
fix-ust-strcpy-with-racy-input-3.patch (7.56 KB) fix-ust-strcpy-with-racy-input-3.patch Mathieu Desnoyers, 04/15/2014 01:01 PM
race-tp-string.c (1.67 KB) race-tp-string.c Mathieu Desnoyers, 04/16/2014 05:30 PM
ust_test.h (1.64 KB) ust_test.h Mathieu Desnoyers, 04/16/2014 05:30 PM
Actions

Also available in: Atom PDF