Project

General

Profile

Bug #319

Updated by Yannick Brosseau almost 12 years ago

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 until 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.

Back