Project

General

Profile

Actions

Bug #1279

closed

Bus error with custom source, muxer and sink.ctf.fs

Added by Arnaud Fiorini over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
sink.ctf.fs
Start date:
08/10/2020
Due date:
% Done:

0%

Estimated time:

Description

Components involved: muxer, sink.ctf.fs
Component version: python3-bt2/now 2.1~pre+git4186+202007232032~ubuntu18.04.1
System information:
- Linux 4.15.0-112-generic #113-Ubuntu
- Ubuntu 18.04.4 LTS (core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch)

When running a graph using the script ctftrace.py, the program should parse the given .txt files in the folder provided and output in a folder the ctf trace files.
The script crashes with the following error: "Bus error (core dumped)". A stream file has been created in the trace folder, no metadata file. There should be multiple streams.
When looking at the logs, the crash occurs just after destroying a stream.
08-10 12:05:09.835 20339 20339 D LIB/MSG-STREAM :45 Putting stream: addr=0x1d0a250, id=0, stream-class-addr=0x1cc4510, stream-class-id=1, trace-class-addr=0x1cef200, trace-addr=0x1cff3e0, packet-pool-size=0, packet-pool-cap=0

Steps to reproduce
The scripts bt_plugin_rocm.py and ctftrace.py are available in https://github.com/arfio/PythonTracingThings/tree/master/babeltrace2
The trace files are attached
python3 ctftrace.py out.db /path/to/trace/files/

Each text file has events that are read and are sent to one output port of the RocmSource. Then these ports are linked to a muxer that is linked to a ctf file sink.


Files

hcc_ops_trace.txt (2.53 KB) hcc_ops_trace.txt Arnaud Fiorini, 08/10/2020 12:06 PM
async_copy_trace.txt (2.34 KB) async_copy_trace.txt Arnaud Fiorini, 08/10/2020 12:06 PM
hip_api_trace.txt (41.7 KB) hip_api_trace.txt Arnaud Fiorini, 08/10/2020 12:06 PM
kfd_api_trace.txt (154 KB) kfd_api_trace.txt Arnaud Fiorini, 08/10/2020 12:06 PM
hsa_api_trace.txt (833 KB) hsa_api_trace.txt Arnaud Fiorini, 08/10/2020 12:06 PM
Actions #1

Updated by Simon Marchi over 3 years ago

Arnaud, the following patch should fix it, can you confirm?

https://review.lttng.org/c/babeltrace/+/4483

Actions #2

Updated by Arnaud Fiorini over 3 years ago

I tried with the patch you sent, and it fixes the issue. It works great now, thank you !

Actions #3

Updated by Simon Marchi over 3 years ago

  • Category changed from libbabeltrace2 to sink.ctf.fs
  • Status changed from New to Resolved
Actions

Also available in: Atom PDF