Project

General

Profile

Actions

Bug #1412

closed

Trace decoding fails for trace generated on aarch64 with ctf_sequence using _length_type of uint32_t

Added by Christophe Bedard about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/05/2024
Due date:
% Done:

0%

Estimated time:

Description

Context:

  1. Tracepoint with a `ctf_sequence` field using a `_length_type` of `uint32_t`
  2. No need to actually pass any values to run into the issue (i.e., NULL and 0U)
  3. Changing the `_length_type` from `uint32_t` to `uint64_t` fixes the issue on aarch64, but both `uint32_t` and `uint64_t` work fine on an x86_64 system
  4. Issue surfaces when reading the trace, e.g., with `babeltrace` or Trace Compass (I believe that using `babeltrace2` seems to result in the decoding error being ignored)

Reproducer: https://github.com/christophebedard/lttng-sequence-len-type-mwe

Environment info:

aarch64 system:
  1. CLI version: 2.13.12 (from `lttng --version`)
  2. LTTng-UST version: 2.13.5 (built from source; from /usr/include/lttng/ust-version.h)
  3. `uname -a`: Linux host 5.10.120-rt70-tegra #1 SMP PREEMPT RT Mon Apr 1 23:53:36 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
  4. `nproc`: 8
x86_64 system:
  1. CLI version: 2.13.10 (from `lttng --version`)
  2. LTTng-UST version: 2.13.7 (from LTTng stable-2.13 Ubuntu PPA; according to /usr/include/x86_64-linux-gnu/lttng/ust-version.h)
  3. `uname -a`: Linux host 5.15.0-101-generic #111-Ubuntu SMP Tue Mar 5 20:16:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  4. `nproc`: 16

This seems similar to https://review.lttng.org/c/lttng-ust/+/12122, but it's already using an unsigned int (although not literally `unsigned int`).


Files

Actions

Also available in: Atom PDF