Project

General

Profile

Actions

Bug #623

closed

ust crash, bus error

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

Status:
Resolved
Priority:
High
Target version:
-
Start date:
08/29/2013
Due date:
% Done:

100%

Estimated time:

Description

Commit id:
UST: 0ff43c44ea52d0d833ea17f15777622ec64d1b1a
tools: 95f3c88c5b889bb3d16bb6857f137c84e06b84c2
urcu: b2f20dff3e0ce8db5f4f0067e2d8810420f16346

Problem:
A program linked with lttng-ust crashes at startup. The crash is hard to reproduce, happens very seldom.
Sessiond is started and configured, tracing started.

See backtrace below,

Program terminated with signal 7, Bus error.
#0  0x0fd1f300 in wait_for_sessiond (sock_info=<optimized out>) at lttng-ust-comm.c:875
875        if (uatomic_read((int32_t *) sock_info->wait_shm_mmap) == 0) {
(gdb) bt full
#0  0x0fd1f300 in wait_for_sessiond (sock_info=<optimized out>) at lttng-ust-comm.c:875
        ret = <optimized out>
#1  ust_listener_thread (arg=0xfd50550 <local_apps>) at lttng-ust-comm.c:923
        sock_info = 0xfd50550 <local_apps>
        sock = <optimized out>
        ret = <optimized out>
        prev_connect_failed = <optimized out>
        has_waited = 0
        i = <optimized out>
        timeout = 822235928
        __func__ = "ust_listener_thread" 
        __PRETTY_FUNCTION__ = "ust_listener_thread" 
#2  0x0ffac84c in ?? () from /lib/libpthread.so.0
No symbol table info available.
#3  0x0fe4e6f4 in clone () from /lib/libc.so.6

Reproducable:
1%


Files

fix-sigbus-race.patch (3.28 KB) fix-sigbus-race.patch Mathieu Desnoyers, 11/06/2013 07:16 AM
Actions

Also available in: Atom PDF