Project

General

Profile

Actions

Bug #857

closed

babeltrace will exit (often with a core dump) if an index file is too short

Added by craig harmer over 9 years ago. Updated about 4 years ago.

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

0%

Estimated time:

Description

If a ".idx" file is truncated for some reason then babeltrace will fail to open the trace session and, in most cases core dump. Output looks like:

charmer@ch3[hds-src] babeltrace /home/charmer/lttng-traces/auto-20141110-184157

read index file header: Success
Segmentation fault (core dumped)

Files

babeltrace-ctf.diff (732 Bytes) babeltrace-ctf.diff Patch for the bug. craig harmer, 11/10/2014 09:52 PM
fread-check-error.patch (2.54 KB) fread-check-error.patch Patch for all cases in ctf.c where fread() is called without complete error checking. craig harmer, 11/13/2014 08:56 PM
Actions

Also available in: Atom PDF