Project

General

Profile

Actions

Bug #847

closed

Enabling system calls returns code 35 instead of 0

Added by Francis Giraldeau over 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
10/22/2014
Due date:
% Done:

0%

Estimated time:

Description

In previous lttng-tools, enabling system calls would return the code 0, and in version 2.5.0 it returns 35. It means that in a script with "#!/bin/sh -e", this command terminates the script. However, there is no errors, system calls are correctly enabled, and if we proceed to start the trace, it works correctly. Therefore, the command should return 0 instead.

$ lttng create
Session auto-20141022-154556 created.
Traces will be written in /home/francis/lttng-traces/auto-20141022-154556

$ lttng enable-event -a -k 
All Kernel events are enabled in channel channel0

$ lttng enable-event -k --syscall -a 
Warning: Kernel events already enabled (channel channel0, session auto-20141022-154556)

$ echo $?
35

Files

bug.sh (142 Bytes) bug.sh script to trigger the bug Francis Giraldeau, 10/22/2014 03:50 PM
bug.sh (152 Bytes) bug.sh Francis Giraldeau, 10/22/2014 04:09 PM

Related issues 1 (1 open0 closed)

Related to LTTng-tools - Feature #932: LTTng client error code semantics are ill-definedConfirmedJérémie Galarneau09/05/2015

Actions
Actions

Also available in: Atom PDF