Project

General

Profile

Bug #518

Babeltrace segfaults when non-ctf files exist in the session directory

Added by Amer Alhalabi almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
05/03/2013
Due date:
% Done:

100%

Estimated time:

Description

I collected traces (using Per-UID buffers), and then I added a non-ctf file to <session>/ust/uid/0/64-bit/ using touch
When I tried to convert the session using babeltrace, it segfaulted.

by the way, I am using the latest commits on the babeltrace master branch at the time.
  • 888ec52 (HEAD, origin/master, origin/HEAD) Fix: add missing error return when create_event_definitions fails
  • a39683c Fix: ctf-text should link on libbabeltrace-ctf

Here is the backtrace:
(gdb) bt
#0 0x00007fe01247c42c in ?? () from /usr/lib64/libbabeltrace-ctf.so.0
#1 0x00007fe01247c91e in ?? () from /usr/lib64/libbabeltrace-ctf.so.0
#2 0x00007fe0126a5a16 in bt_context_add_trace () from /usr/lib64/libbabeltrace.so.0
#3 0x0000000000402315 in bt_context_add_traces_recursive ()
#4 0x0000000000402ca8 in main ()

Thanks,
Amer

#1

Updated by Mathieu Desnoyers almost 7 years ago

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

Also available in: Atom PDF