Bug #1279
closedBus error with custom source, muxer and sink.ctf.fs
0%
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 destroy_stream_message@stream.c: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