Bug #1279

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

Added by Arnaud Fiorini 8 months ago. Updated 4 months ago.

Start date:
Due date:
% Done:


Estimated time:


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, 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 and are available in
The trace files are attached
python3 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.


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

Updated by Simon Marchi 5 months ago

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


Updated by Arnaud Fiorini 5 months ago

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


Updated by Simon Marchi 4 months ago

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

Also available in: Atom PDF