[lttng-dev] babeltrace assertion "`pos->offset <= pos->content_size' failed"

Wade Farnsworth wade_farnsworth at mentor.com
Tue Sep 4 11:33:43 EDT 2012


Hi,

I'm occasionally seeing the following error when I pass a trace through 
babeltrace:

babeltrace: ../../include/babeltrace/ctf/types.h:203: ctf_pos_get_event: 
Assertion `pos->offset <= pos->content_size' failed.
Aborted

Here are my platform details:

Board: ARM Pandaboard
Kernel: v3.1.0 from 
git://dev.omapzoom.org/pub/scm/integration/kernel-ubuntu.git
lttng-modules: v2.0.5
lttng-tools: v2.0.3
babeltrace: 1.0.0-rc5

Now, I'm not very familiar with the internal workings of, but it seems 
like this situation should be prevented by the call to v_cmpxchg in 
lib_ring_buffer_check_deliver() which claims to have exclusive subbuffer 
access when the content_size field is written.  Is this understanding 
correct?

Does anyone have any suggestions on where the problem might be?  Any 
help you might be able to give me would be appreciated.

Thanks,

Wade Farnsworth



More information about the lttng-dev mailing list