Project

General

Profile

Actions

Bug #319

closed

Iteration to the end of the trace followed by a seek_begin returns a null pointer on reading

Added by Francis Deslauriers over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/31/2012
Due date:
% Done:

100%

Estimated time:

Description

Program to trigger the bug :
git clone -b test_seek_begin git://git.dorsal.polymtl.ca/~fdeslauriers/babeltrace-api-test/.git

Trace to trigger the bug :
wget http://www.dorsal.polymtl.ca/~fdeslauriers/seek_begin_trace.tar

1. The test program iterate on the events until it reaches a null event(end of the trace).
2. It use a bt_seek_begin position iterator to seek to the beginning of the trace
3. Trying to read the first event returns a null pointer event which cause a segmentation fault when we try to use it.

Workaround :
Use a bt_seek_time with the member u.seek_time set to "0" to move your iterator on the first event.

Actions #1

Updated by Yannick Brosseau over 11 years ago

  • Description updated (diff)
Actions #2

Updated by Julien Desfossez over 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF