Project

General

Profile

Bug #834

ctf-text: ASCII control characters are not escaped when printing a string/text array

Added by Philippe Proulx over 5 years ago. Updated 3 months ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
09/10/2014
Due date:
% Done:

0%

Estimated time:

Description

ASCII control characters are not escaped when the ctf-text format prints strings or text arrays, leading to interesting results.

Simple steps to reproduce:

lttng create bug
lttng enable-event -k lttng_logger
lttng start
echo -ne 'hello\nworld\x08\x08\x08man\x00true end' > /proc/lttng-logger
lttng stop
lttng view

Babeltrace shows:

[15:04:54.524520321] (+?.?????????) archeepp lttng_logger: { cpu_id = 0 }, { _msg_length = 25, msg = "hello
woman" }
#1

Updated by Jonathan Rajotte Julien 3 months ago

  • Status changed from New to Invalid

State of babeltrace moved a lot since.

Closing this ticket as invalid. Reopen it if it stills apply to Babeltrace 2.

Also available in: Atom PDF