Project

General

Profile

Actions

Bug #239

closed

Babeltrace ignores errors for an app when conversion for other apps is OK

Added by Jesus Garcia over 12 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Start date:
05/25/2012
Due date:
% Done:

0%

Estimated time:

Description

Hi Guys,

We have found the following issue in Babeltrace rc2:

When running babeltrace over a session directory containing several directories for several apps, babeltrace does not notice that there are issues with one of the apps.
In this particular case the issue is that one of the apps (let's call it appX) does not have a metadata file. The CTF files are fine.
Here is the result:

SC-1:/home/trace # babeltrace TRACact008_1/SC-1 > /tmp/deleteme.txt
SC-1:/home/trace # echo $?
0
SC-1:/home/trace # ll /tmp/deleteme.txt
rw-r--r- 1 root root 1087710 May 25 16:47 /tmp/deleteme.txt <<=====<< babeltrace converted everything else from the other apps
SC-1:/home/trace #

However, when running babeltrace for appX only, it does produce errors:

SC-1:/home/trace # babeltrace TRACact008_1/SC-1/ust/TestApp_type1-12988-20120525-162422/ > /tmp/deleteme.txt
[error] Cannot open any trace for reading.

[error] opening trace "TRACact008_1/SC-1/ust/TestApp_type1-12988-20120525-162422/" for reading.

SC-1:/home/trace # echo $?
1
SC-1:/home/trace # ll /tmp/deleteme.txt
rw-r--r- 1 root root 0 May 25 16:49 /tmp/deleteme.txt
SC-1:/home/trace #

So, when converting the whole session babeltrace should convert what it can (as it did), but then also report any errors and return 1 as error code.

Thanks,
Jesus

Actions

Also available in: Atom PDF