Project

General

Profile

Actions

Bug #834

closed

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

Added by Philippe Proulx over 9 years ago. Updated about 4 years 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" }
Actions #1

Updated by Jonathan Rajotte Julien about 4 years 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.

Actions

Also available in: Atom PDF