[lttng-dev] babeltrace test failures on some architectures

Jon Bernard jbernard at tuxion.com
Fri Jun 20 11:14:10 EDT 2014


* Jérémie Galarneau <jeremie.galarneau at efficios.com> wrote:
> The build logs only seem to contain the "prove" output (invoked by run.sh).
> 
> Could you run tests/bin/test_trace_read and
> tests/lib/test_seek_empty_packet on armel and sparc? The output of
> both of these tests and the coredumps (if any) should give me
> something to work with.

I had a short moment to run gdb on one of the offending tests on sparc,
here is the output:

    (gdb) run tests/ctf-traces/succeed/sequence
    Starting program: /home/jbernard/babeltrace/converter/.libs/lt-babeltrace tests/ctf-traces/succeed/sequence
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/sparc-linux-gnu/libthread_db.so.1".

    Program received signal SIGBUS, Bus error.
    0xf7f78af4 in make_node (scanner=0x7001cfe0, type=NODE_UNARY_EXPRESSION) at ctf-parser.y:373
    373             node->lineno = yyget_lineno(scanner->scanner);
    (gdb) bt
    #0  0xf7f78af4 in make_node (scanner=0x7001cfe0, type=NODE_UNARY_EXPRESSION) at ctf-parser.y:373
    #1  0xf7f7a708 in yyparse (scanner=0x7001cfe0, yyscanner=0x7001c9c8) at ctf-parser.y:1202
    #2  0xf7f6a6a4 in ctf_trace_metadata_read (td=0x7001d600, metadata_fp=<optimized out>, scanner=0x7001cfe0, append=<optimized out>) at ctf.c:1281
    #3  0xf7f6f470 in ctf_open_trace_read (metadata_fp=0x0, packet_seek=0xf7f6cc60 <ctf_packet_seek>, flags=0, path=0x70026630 "tests/ctf-traces/succeed/sequence",
        td=0x7001d600) at ctf.c:2111
    #4  ctf_open_trace (path=0x70026630 "tests/ctf-traces/succeed/sequence", flags=0, packet_seek=0xf7f6cc60 <ctf_packet_seek>, metadata_fp=<optimized out>)
        at ctf.c:2206
    #5  0xf7fafba0 in bt_context_add_trace (ctx=0x7001b950, path=0x70026630 "tests/ctf-traces/succeed/sequence", format_name=0x7001b990 "ctf", packet_seek=0x0,
        stream_list=0x0, metadata=0x0) at context.c:95
    #6  0x70003468 in bt_context_add_traces_recursive (ctx=0x7001b950, path=0x7001b968 "tests/ctf-traces/succeed/sequence", format_str=0x7001b990 "ctf",
        packet_seek=0x0) at babeltrace.c:529
    #7  0x70001ae8 in main (argc=<optimized out>, argv=<optimized out>) at babeltrace.c:738

The scanner pointer and ctf_scanner struct appear to be okay, the bus
error appears to occur on scanner->scanner, which is of type yyscan_t.

I don't have time to look further at the moment, but I'll try next
chance I get.  Hope this helps.

Cheers,

-- 
Jon



More information about the lttng-dev mailing list