Project

General

Profile

Actions

Bug #697

closed

'unit/test_session' and 'unit/test_ust_data' compiled with clang fail

Added by Zifei Tong about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/25/2013
Due date:
% Done:

0%

Estimated time:

Description

./run.sh unit_tests
unit/test_kernel_data .............. ok     
unit/test_session .................. Failed 6/11 subtests 
unit/test_uri ...................... ok     
unit/test_ust_data ................. Failed 8/10 subtests 
unit/test_utils_parse_size_suffix .. ok     

Test Summary Report
-------------------
unit/test_session                (Wstat: 6 Tests: 5 Failed: 0)
  Non-zero wait status: 6
  Parse errors: Bad plan.  You planned 11 tests but ran 5.
unit/test_ust_data               (Wstat: 6 Tests: 2 Failed: 0)
  Non-zero wait status: 6
  Parse errors: Bad plan.  You planned 10 tests but ran 2.

Backtrace for each test (on lttng-tools-2.3.1):

Core was generated by `unit/test_session'.
Program terminated with signal 6, Aborted.
#0  0x00007f92403de3d9 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007f92403de3d9 in raise () from /usr/lib/libc.so.6
#1  0x00007f92403df7d8 in abort () from /usr/lib/libc.so.6
#2  0x00007f92403d7506 in __assert_fail_base () from /usr/lib/libc.so.6
#3  0x00007f92403d75b2 in __assert_fail () from /usr/lib/libc.so.6
#4  0x0000000000406063 in snapshot_delete_output (snapshot=<optimized out>, output=<optimized out>) at snapshot.c:185
#5  0x000000000040639e in snapshot_destroy (obj=0x18a1218) at snapshot.c:319
#6  0x0000000000403197 in session_destroy (session=0x18a10a0) at session.c:163
#7  0x0000000000402964 in destroy_one_session (session=0x18a10a0) at test_session.c:159
#8  test_destroy_session () at test_session.c:238
#9  0x0000000000402ec0 in main (argc=6269, argv=0x187d) at test_session.c:305

Core was generated by `unit/test_ust_data'.
Program terminated with signal 6, Aborted.
#0  0x00007fc7d20213d9 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007fc7d20213d9 in raise () from /usr/lib/libc.so.6
#1  0x00007fc7d20227d8 in abort () from /usr/lib/libc.so.6
#2  0x00007fc7d201a506 in __assert_fail_base () from /usr/lib/libc.so.6
#3  0x00007fc7d201a5b2 in __assert_fail () from /usr/lib/libc.so.6
#4  0x00000000004047d9 in destroy_channels (channels=<optimized out>) at trace-ust.c:647
#5  destroy_domain_global (dom=<optimized out>) at trace-ust.c:662
#6  trace_ust_destroy_session (session=<optimized out>) at trace-ust.c:679
#7  0x0000000000403411 in test_create_one_ust_session () at test_ust_data.c:91
#8  main (argc=<optimized out>, argv=0x187f) at test_ust_data.c:188

This problem can be reproduced with lttng-tools-2.3.1 and master on my own machine and on travis-ci (https://travis-ci.org/5kg/lttng-tools/jobs/14473969).

The version of clang I tested is 3.3.

Actions

Also available in: Atom PDF