[lttng-dev] Babeltrace trimmer segfaults on custom trace

Dimitri Scheftelowitsch dimitri.scheftelowitsch at esrlabs.com
Tue May 4 10:21:46 EDT 2021


as mentioned on the IRC channel, babeltrace2 (both HEAD and current release
in the lttng Ubuntu 20 repo) aborts with a violated precondition in
`bt_clock_snapshot_get_ns_from_origin` on some custom traces we created.
One of these traces is attached. It seems that the offending message is of
type `BT_MESSAGE_TYPE_PACKET_BEGINNING`. What is confusing is that the
pretty-printer does not seem to be influenced by this, and furthermore, I
am not sure that this type of message actually requires a timestamp (at
least if I understood the CTF spec correctly). Is this an issue with the
trace itself or rather with babeltrace2?

To reproduce: `babeltrace2 nvctf

Any help would be appreciated.

Kind regards

Dimitri Scheftelowitsch
Software Engineer
ESR Labs GmbH
Phone +49 151 440 36 396
E-mail: dimitri.scheftelowitsch at esrlabs.com

*ESR Labs GmbH*
*Sitz der Gesellschaft:* Balanstr. 73, Haus 11, 4. OG, 
81541 München

*Geschäftsführer: *Wolfgang Köcher, Gerd Schäfer

Amtsgericht* *München, HRB 257919, USt-ID: DE282185835

This message 
(including any attachments) contains confidential information intended for 
a specific individual or entity as the intended recipient. If you are not 
the intended recipient, you are hereby notified that any distribution, any 
copying of this message in part or in whole, or any taking of action based 
on it, is strictly prohibited by law and may cause liability. In case you 
have received this message due to an error in transmission, we ask you to 
notify the sender immediately.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20210504/dccfabc4/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nvctf.zip
Type: application/zip
Size: 24553 bytes
Desc: not available
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20210504/dccfabc4/attachment-0001.zip>

More information about the lttng-dev mailing list