Project

General

Profile

Actions

Bug #1080

closed

Segfault on bt_ctf_get_field_list for sequence element

Added by Jonathan Rajotte Julien over 7 years ago. Updated about 4 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
12/13/2016
Due date:
% Done:

0%

Estimated time:

Description

Test program found on: https://lists.lttng.org/pipermail/lttng-dev/2014-May/023058.html

Compiled with: gcc segfault_libbabeltrace.c -lbabeltrace -lbabeltrace-ctf -o segfault_libbabeltrace -g -O0

Executed as: $ ./segfault_libbabeltrace test-trace/ust/uid/0/32-bit

Result: Segmentation fault (core dumped)
Line causing the segfault: Line 78: ret = bt_ctf_get_field_list(bt_event, field_def,

Tested on babeltrace tag 1.5.0 and reproducible on 1.4.1.

See attached test-trace and test program.


Files

segfault_libbabeltrace.c (4.23 KB) segfault_libbabeltrace.c Test program Jonathan Rajotte Julien, 12/13/2016 04:30 PM
test-trace.tar.gz (2.67 MB) test-trace.tar.gz Test trace Jonathan Rajotte Julien, 12/13/2016 04:30 PM
Actions #1

Updated by Jonathan Rajotte Julien about 4 years ago

  • Status changed from Confirmed to Invalid

The state of babeltrace changed a lot.

Closing as invalid. If this still applies to Babeltrace 2, please create a new issue.

Actions

Also available in: Atom PDF