Actions
Bug #319
closedIteration to the end of the trace followed by a seek_begin returns a null pointer on reading
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.
Updated by Julien Desfossez over 11 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset db8a45114dfe2ffd2b23ec0517a043b508de41fd.
Actions