LTTng bugs repository: Issueshttps://bugs.lttng.org/https://bugs.lttng.org/themes/lttng/favicon/a.ico?14249722912023-09-18T20:16:39ZLTTng bugs repository
Redmine Babeltrace - Bug #1389 (New): src.ctf.fs crash with invalid tracehttps://bugs.lttng.org/issues/13892023-09-18T20:16:39ZSimon Marchisimon.marchi@polymtl.ca
<p>Using the attached trace, I get:</p>
<pre>
$ ./src/cli/babeltrace2 trace
09-18 16:15:58.978 335803 335803 E PLUGIN/CTF/MSG-ITER ctf_msg_iter_get_next_message@msg-iter.cpp:2715 [auto-disc-source-ctf-fs] Cannot handle state: msg-it-addr=0x613000000580, state=DSCOPE_EVENT_PAYLOAD_CONTINUE
09-18 16:15:58.978 335803 335803 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:63 Babeltrace 2 library postcondition not satisfied.
09-18 16:15:58.978 335803 335803 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:65 ------------------------------------------------------------------------
09-18 16:15:58.978 335803 335803 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:66 Condition ID: `post:message-iterator-class-next-method:no-error-if-no-error-status`.
09-18 16:15:58.978 335803 335803 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:68 Function: bt_message_iterator_class_next_method().
09-18 16:15:58.978 335803 335803 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:69 ------------------------------------------------------------------------
09-18 16:15:58.978 335803 335803 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:70 Error is:
09-18 16:15:58.978 335803 335803 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:72 Current thread has an error, but user function returned a non-error status: status=OK
09-18 16:15:58.978 335803 335803 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:75 Aborting...
</pre> Babeltrace - Bug #1346 (New): sink.ctf.fs: Assertion failure while encoding length FC of dynamic ...https://bugs.lttng.org/issues/13462022-02-15T16:14:22ZFrancis Deslauriersfrancis.deslauriers@efficios.com
<p>I witnessed this issue while working on the CTF2 support of the sink.ctf.fs component class.</p>
<pre>
(╯°□°)╯︵ ┻━┻ translate-trace-ir-to-ctf-ir.cpp:283: create_relative_field_ref(): Assertion `bt_field_path_item_get_type(fp_item) == BT_FIELD_PATH_ITEM_TYPE_INDEX` failed.
</pre>
<p>The problem is triggered when a length field class of a dynamic array field class is contained within an element of a static array field class. Both dynamic array and its length are in the same element within the static array.</p>
<p>I attached the source of a Python plugin that reproduces this issue.</p>
<p>I can reproduce the issue with the following command:<br /><pre>
babeltrace2 --plugin-path=/home/frdeso/projets/babeltrace-fun-plugins/my-first-components/ -c source.reprod.MyFirstSource -c sink.ctf.fs -p path=\"ici\"
</pre></p>
<p>Here is the full stack trace of the assertion failure:<br /><pre>
#3 0x00007ffff6534c11 in bt_common_assert_failed (file=0x7ffff654c62c "translate-trace-ir-to-ctf-ir.cpp", line=283, func=0x7ffff654cf00 "create_relative_field_ref", assertion=0x7ffff654cf3a "bt_field_path_item_get_type(fp_item) == BT_FIELD_PATH_ITEM_TYPE_INDEX") at assert.c:40
#4 0x00007ffff6505624 in create_relative_field_ref (ctx=0x7fffffffe0f8, tgt_ir_field_path=0x5555555980a0, tgt_field_ref=0x555555599900, user_tgt_fc=0x0) at translate-trace-ir-to-ctf-ir.cpp:283
#5 0x00007ffff650529b in resolve_field_class (ctx=0x7fffffffe0f8, tgt_ir_field_path=0x5555555980a0, tgt_field_ref=0x555555599900, create_before=0x55555559b420, user_tgt_fc=0x0) at translate-trace-ir-to-ctf-ir.cpp:510
#6 0x00007ffff6503ccb in translate_dynamic_array_field_class (ctx=0x7fffffffe0f8) at translate-trace-ir-to-ctf-ir.cpp:1087
#7 0x00007ffff65035b7 in translate_field_class (ctx=0x7fffffffe0f8) at translate-trace-ir-to-ctf-ir.cpp:1191
#8 0x00007ffff6502e5a in translate_structure_field_class_members (ctx=0x7fffffffe0f8, struct_fc=0x55555559b2f0, ir_fc=0x5555556fed80) at translate-trace-ir-to-ctf-ir.cpp:615
#9 0x00007ffff650398a in translate_structure_field_class (ctx=0x7fffffffe0f8) at translate-trace-ir-to-ctf-ir.cpp:638
#10 0x00007ffff6503570 in translate_field_class (ctx=0x7fffffffe0f8) at translate-trace-ir-to-ctf-ir.cpp:1187
#11 0x00007ffff6503b18 in translate_static_array_field_class (ctx=0x7fffffffe0f8) at translate-trace-ir-to-ctf-ir.cpp:1061
#12 0x00007ffff650358f in translate_field_class (ctx=0x7fffffffe0f8) at translate-trace-ir-to-ctf-ir.cpp:1189
#13 0x00007ffff6502e5a in translate_structure_field_class_members (ctx=0x7fffffffe0f8, struct_fc=0x55555559b120, ir_fc=0x5555557500d0) at translate-trace-ir-to-ctf-ir.cpp:615
#14 0x00007ffff6502819 in translate_scope_field_class (ctx=0x7fffffffe0f8, scope=BT_FIELD_PATH_SCOPE_EVENT_PAYLOAD, fc=0x55555559b028, ir_fc=0x5555557500d0) at translate-trace-ir-to-ctf-ir.cpp:1446
#15 0x00007ffff6501ab9 in translate_event_class (fs_sink=0x555555598510, sc=0x55555559ae80, ir_ec=0x5555557166e0, out_ec=0x7fffffffe1e8) at translate-trace-ir-to-ctf-ir.cpp:1503
#16 0x00007ffff6501955 in try_translate_event_class_trace_ir_to_ctf_ir (fs_sink=0x555555598510, sc=0x55555559ae80, ir_ec=0x5555557166e0, out_ec=0x7fffffffe1e8) at translate-trace-ir-to-ctf-ir.cpp:1532
#17 0x00007ffff64fe4a4 in handle_event_msg (fs_sink=0x555555598510, msg=0x55555559a530) at fs-sink.cpp:266
#18 0x00007ffff64fe082 in ctf_fs_sink_consume (self_comp=0x555555598480) at fs-sink.cpp:957
</pre></p> Babeltrace - Bug #1321 (New): Segfault in bfcr_unsigned_int_cb()https://bugs.lttng.org/issues/13212021-08-15T23:28:57ZSergei Dyshel
<p>#0 0x00007fe6cdfe0d62 in bfcr_unsigned_int_cb (value=65535, fc=0x23d1240, data=0x1e6ca30)<br /> at msg-iter.c:2005<br />#1 0x00007fe6cdfdc615 in read_basic_int_and_call_cb (at=<optimized out>,<br /> buf=<optimized out>, bfcr=0x1e6cc00) at bfcr.c:661<br />#2 read_bit_array_class_and_call_begin (read_basic_and_call_cb=<optimized out>,<br /> bfcr=0x1e6cc00) at bfcr.c:758<br />#3 read_basic_int_class_and_call_begin (bfcr=0x1e6cc00) at bfcr.c:797<br />#4 read_basic_begin_state (bfcr=0x1e6cc00) at bfcr.c:942<br />#5 handle_state (bfcr=0x1e6cc00) at bfcr.c:1178<br />#6 bt_bfcr_start (bfcr=0x1e6cc00, cls=cls@entry=0x23d5b10, buf=<optimized out>,<br /> offset=<optimized out>, packet_offset=<optimized out>, sz=<optimized out>,<br /> status=<optimized out>) at bfcr.c:1315<br /><a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Bug: Double PID registering and unregistering race (Resolved)" href="https://bugs.lttng.org/issues/7">#7</a> 0x00007fe6cdfe2c5d in read_dscope_begin_state (dscope_field=0x0,<br /> continue_state=STATE_DSCOPE_EVENT_HEADER_CONTINUE, done_state=STATE_AFTER_EVENT_HEADER,<br /> dscope_fc=0x23d5b10, msg_it=0x1e6ca30) at msg-iter.c:602<br />#8 read_event_header_begin_state (msg_it=msg_it@entry=0x1e6ca30) at msg-iter.c:1223<br /><a class="issue tracker-1 status-5 priority-3 priority-lowest closed" title="Bug: LTTng-UST java jni wrapper does not build with OpenJDK (Resolved)" href="https://bugs.lttng.org/issues/9">#9</a> 0x00007fe6cdfe4a03 in handle_state (msg_it=0x1e6ca30) at msg-iter.c:1739<br /><a class="issue tracker-1 status-5 priority-6 priority-highest closed" title="Bug: tor instrumentation only works partly (Resolved)" href="https://bugs.lttng.org/issues/10">#10</a> ctf_msg_iter_get_next_message (msg_it=0x1e6ca30, message=message@entry=0x7ffdf1b5ac08)<br /> at msg-iter.c:2892<br /><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Python sometimes registers to sessiond as lttng-ust application (Resolved)" href="https://bugs.lttng.org/issues/11">#11</a> 0x00007fe6ce002fd8 in lttng_live_iterator_next_handle_one_active_data_stream (<br /> lttng_live_stream=0x1bd3460, lttng_live_stream=0x1bd3460, message=0x7ffdf1b5ac08,<br /> lttng_live_msg_iter=0x1e69da0) at lttng-live.c:821<br />#12 lttng_live_iterator_next_msg_on_stream (curr_msg=0x7ffdf1b5ac08, stream_iter=0x1bd3460,<br /> lttng_live_msg_iter=0x1e69da0) at lttng-live.c:990<br />#13 next_stream_iterator_for_trace (live_trace=0x1bd3970, live_trace=0x1bd3970,<br /> youngest_trace_stream_iter=<synthetic pointer>, lttng_live_msg_iter=0x1e69da0)<br /> at lttng-live.c:1113<br />#14 next_stream_iterator_for_session (youngest_session_stream_iter=<synthetic pointer>,<br /> session=0x1e6b1e0, lttng_live_msg_iter=0x1e69da0) at lttng-live.c:1345<br /><a class="issue tracker-2 status-7 priority-3 priority-lowest overdue behind-schedule" title="Feature: LTTng simple trace (Confirmed)" href="https://bugs.lttng.org/issues/15">#15</a> lttng_live_msg_iter_next (self_msg_it=<optimized out>, msgs=0x1e69d10, capacity=15,<br /> count=0x7ffdf1b5adb8) at lttng-live.c:1538</p>
<p>Details of LTTNG session and babeltrace usage are same as in <a class="external" href="https://bugs.lttng.org/issues/1319">https://bugs.lttng.org/issues/1319</a></p> Babeltrace - Bug #1293 (New): Use after free in sink.ctf.fs finalizehttps://bugs.lttng.org/issues/12932020-12-02T21:27:04ZSimon Marchisimon.marchi@polymtl.ca
<p>I run this:</p>
<pre>./src/cli/babeltrace2 ~/lttng-traces/auto-20200318-221703 -c sink.ctf.fs -p 'path="/tmp/yo"'</pre>
<p>and interrupt with with ^C while it's running. I get:</p>
<pre>
➜ babeltrace ./src/cli/babeltrace2 ~/lttng-traces/auto-20200318-221703 -c sink.ctf.fs -p 'path="/tmp/yo"'
^C=================================================================
==1611811==ERROR: AddressSanitizer: heap-use-after-free on address 0x60d000001de8 at pc 0x7faa59a98c13 bp 0x7fff9f10b9b0 sp 0x7fff9f10b9a0
READ of size 8 at 0x60d000001de8 thread T0
#0 0x7faa59a98c12 in bt_trace_get_environment_entry_count /home/simark/src/babeltrace/src/lib/trace-ir/trace.c:345
#1 0x7faa5663faed in translate_trace_ctf_ir_to_tsdl /home/simark/src/babeltrace/src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.c:935
#2 0x7faa566496f4 in fs_sink_trace_destroy /home/simark/src/babeltrace/src/plugins/ctf/fs-sink/fs-sink-trace.c:499
#3 0x7faa598959d1 (/usr/lib/libglib-2.0.so.0+0x3c9d1)
#4 0x7faa5989663a in g_hash_table_remove_all (/usr/lib/libglib-2.0.so.0+0x3d63a)
#5 0x7faa59899d5e in g_hash_table_destroy (/usr/lib/libglib-2.0.so.0+0x40d5e)
#6 0x7faa5662a894 in destroy_fs_sink_comp /home/simark/src/babeltrace/src/plugins/ctf/fs-sink/fs-sink.c:132 #7 0x7faa5663161b in ctf_fs_sink_finalize /home/simark/src/babeltrace/src/plugins/ctf/fs-sink/fs-sink.c:1141
#8 0x7faa59a2f50b in finalize_component /home/simark/src/babeltrace/src/lib/graph/component.c:97 #9 0x7faa59a2f87a in destroy_component /home/simark/src/babeltrace/src/lib/graph/component.c:148
#10 0x7faa59a340e2 in bt_object_try_spec_release /home/simark/src/babeltrace/src/lib/object.h:145 #11 0x7faa5987765f (/usr/lib/libglib-2.0.so.0+0x1e65f)
#12 0x7faa59a34ee6 in destroy_graph /home/simark/src/babeltrace/src/lib/graph/graph.c:103
#13 0x7faa59a346af in bt_object_put_ref_no_null_check /home/simark/src/babeltrace/src/lib/object.h:307
#14 0x7faa59a34800 in bt_object_put_ref /home/simark/src/babeltrace/src/lib/object.h:335 #15 0x7faa59a3adb4 in bt_graph_put_ref /home/simark/src/babeltrace/src/lib/graph/graph.c:1331
#16 0x55e2ffb90c67 in cmd_run_ctx_destroy /home/simark/src/babeltrace/src/cli/babeltrace2.c:1685 #17 0x55e2ffb95d9e in cmd_run /home/simark/src/babeltrace/src/cli/babeltrace2.c:2538
#18 0x55e2ffb96a99 in main /home/simark/src/babeltrace/src/cli/babeltrace2.c:2673
#19 0x7faa59696151 in __libc_start_main (/usr/lib/libc.so.6+0x28151)
#20 0x55e2ffb87fdd in _start (/home/simark/build/babeltrace/src/cli/.libs/lt-babeltrace2+0x1ffdd)
0x60d000001de8 is located 104 bytes inside of 144-byte region [0x60d000001d80,0x60d000001e10)
freed by thread T0 here:
#0 0x7faa59c1c0e9 in __interceptor_free /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:123
#1 0x7faa59a97b4a in destroy_trace /home/simark/src/babeltrace/src/lib/trace-ir/trace.c:143
#2 0x7faa59a90621 in bt_object_put_ref_no_null_check /home/simark/src/babeltrace/src/lib/object.h:307
#3 0x7faa59a8ff99 in bt_object_with_parent_release_func /home/simark/src/babeltrace/src/lib/object.h:178
#4 0x7faa59a8b329 in bt_object_put_ref_no_null_check /home/simark/src/babeltrace/src/lib/object.h:307
#5 0x7faa59a8c2f1 in bt_packet_recycle /home/simark/src/babeltrace/src/lib/trace-ir/packet.c:131
#6 0x7faa59a8b329 in bt_object_put_ref_no_null_check /home/simark/src/babeltrace/src/lib/object.h:307
#7 0x7faa59a8b47a in bt_object_put_ref /home/simark/src/babeltrace/src/lib/object.h:335
#8 0x7faa59a8ccc4 in bt_packet_put_ref /home/simark/src/babeltrace/src/lib/trace-ir/packet.c:236
#9 0x7faa56643f48 in fs_sink_stream_destroy /home/simark/src/babeltrace/src/plugins/ctf/fs-sink/fs-sink-stream.c:39
#10 0x7faa598959d1 (/usr/lib/libglib-2.0.so.0+0x3c9d1)
previously allocated by thread T0 here:
#0 0x7faa59c1c639 in __interceptor_calloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x7faa598a9641 in g_malloc0 (/usr/lib/libglib-2.0.so.0+0x50641)
#2 0x7faa566568b8 in ctf_fs_trace_create /home/simark/src/babeltrace/src/plugins/ctf/fs-src/fs.c:1080
#3 0x7faa566572b0 in ctf_fs_component_create_ctf_fs_trace_one_path /home/simark/src/babeltrace/src/plugins/ctf/fs-src/fs.c:1183
#4 0x7faa5665be1d in ctf_fs_component_create_ctf_fs_trace /home/simark/src/babeltrace/src/plugins/ctf/fs-src/fs.c:2097
#5 0x7faa5665dff0 in ctf_fs_create /home/simark/src/babeltrace/src/plugins/ctf/fs-src/fs.c:2397
#6 0x7faa5665e172 in ctf_fs_init /home/simark/src/babeltrace/src/plugins/ctf/fs-src/fs.c:2431
#7 0x7faa59a39c15 in add_component_with_init_method_data /home/simark/src/babeltrace/src/lib/graph/graph.c:1048
#8 0x7faa59a3a2fb in add_source_component_with_initialize_method_data /home/simark/src/babeltrace/src/lib/graph/graph.c:1127
#9 0x7faa59a3a3a2 in bt_graph_add_source_component /home/simark/src/babeltrace/src/lib/graph/graph.c:1152
#10 0x55e2ffb94343 in cmd_run_ctx_create_components_from_config_components /home/simark/src/babeltrace/src/cli/babeltrace2.c:2252
#11 0x55e2ffb94ff7 in cmd_run_ctx_create_components /home/simark/src/babeltrace/src/cli/babeltrace2.c:2347
#12 0x55e2ffb95825 in cmd_run /home/simark/src/babeltrace/src/cli/babeltrace2.c:2461
#13 0x55e2ffb96a99 in main /home/simark/src/babeltrace/src/cli/babeltrace2.c:2673
#14 0x7faa59696151 in __libc_start_main (/usr/lib/libc.so.6+0x28151)
SUMMARY: AddressSanitizer: heap-use-after-free /home/simark/src/babeltrace/src/lib/trace-ir/trace.c:345 in bt_trace_get_environment_entry_count
</pre> Babeltrace - Bug #1282 (New): `src.ctf.fs` accepts the same input twicehttps://bugs.lttng.org/issues/12822020-09-09T14:39:02ZPhilippe Proulxeeppeliteloop@gmail.com
<p>It looks like <code>src.ctf.fs</code> accepts the same path twice.</p>
<p>Reproduce with:</p>
<pre>
$ babeltrace2 my-trace my-trace
</pre>
<p>Result:</p>
<pre>
09-09 10:37:36.918 57494 57494 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:64 Babeltrace 2 library precondition not satisfied.
09-09 10:37:36.918 57494 57494 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:66 ------------------------------------------------------------------------
09-09 10:37:36.918 57494 57494 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:67 Condition ID: `pre:self-component-source-add-output-port:output-port-is-unique`.
09-09 10:37:36.918 57494 57494 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:69 Function: bt_self_component_source_add_output_port().
09-09 10:37:36.918 57494 57494 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:70 ------------------------------------------------------------------------
09-09 10:37:36.918 57494 57494 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:71 Error is:
09-09 10:37:36.918 57494 57494 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:73 Output port name is not unique: name="e10963ca-f2a8-11ea-979f-739d4e2506e9 | 0 | ctf/stream", comp-addr=0x55717a299c20, comp-name="auto-disc-source-ctf-fs", comp-log-level=WARNING, comp-class-type=SOURCE, comp-class-name="fs", comp-class-partial-descr="Read CTF traces from the file sy"
09-09 10:37:36.918 57494 57494 F LIB/ASSERT-COND bt_lib_assert_cond_failed@assert-cond.c:76 Aborting...
</pre> Babeltrace - Bug #1277 (Confirmed): The `ctf` plugin does not support a negative TSDL clock class...https://bugs.lttng.org/issues/12772020-07-23T14:08:36ZSeongab Kim
<p>Hi,</p>
<p>I have a trace which cannot be opened by babeltrace as below, but I can open it with Trace Compass.</p>
<pre>
skim@d54030999178:/mnt/ssd/work/skim/traces$ babeltrace2 ./kernel/
</pre>
<pre>
07-22 07:49:20.099 5264 5264 E PLUGIN/CTF/META/IR-VISITOR get_unary_unsigned@visitor-generate-ir.c:800 [auto-disc-source-ctf-fs] At line 40 in metadata stream: Invalid constant unsigned integer.
07-22 07:49:20.099 5264 5264 E PLUGIN/CTF/META/IR-VISITOR visit_clock_decl_entry@visitor-generate-ir.c:4357 [auto-disc-source-ctf-fs] At line 40 in metadata stream: Unexpected unary expression for clock class's `offset` attribute.
07-22 07:49:20.099 5264 5264 E PLUGIN/CTF/META/IR-VISITOR visit_clock_decl@visitor-generate-ir.c:4532 [auto-disc-source-ctf-fs] At line 40 in metadata stream: Cannot visit clock class's entry: ret=-22
07-22 07:49:20.099 5264 5264 E PLUGIN/CTF/META/IR-VISITOR ctf_visitor_generate_ir_visit_node@visitor-generate-ir.c:4775 [auto-disc-source-ctf-fs] At line 41 in metadata stream: Cannot visit clock class: ret=-22
07-22 07:49:20.099 5264 5264 E PLUGIN/CTF/META/DECODER ctf_metadata_decoder_append_content@decoder.c:337 [auto-disc-source-ctf-fs] Failed to visit AST node to create CTF IR objects: mdec-addr=0x22a0d90, ret=-22
07-22 07:49:20.099 5264 5264 E PLUGIN/SRC.CTF.FS/META ctf_fs_metadata_set_trace_class@metadata.c:128 [auto-disc-source-ctf-fs] Cannot update metadata decoder's content.
07-22 07:49:20.122 5264 5264 E PLUGIN/SRC.CTF.FS ctf_fs_component_create_ctf_fs_trace_one_path@fs.c:1206 [auto-disc-source-ctf-fs] Cannot create trace for `/mnt/ssd/work/skim/traces/kernel`.
07-22 07:49:20.123 5264 5264 W LIB/GRAPH add_component_with_init_method_data@graph.c:977 Component initialization method failed: status=ERROR, comp-addr=0x22a68d0, comp-name="auto-disc-source-ctf-fs", comp-log-level=WARNING, comp-class-type=SOURCE, comp-class-name="fs", comp-class-partial-descr="Read CTF traces from the file sy", comp-class-is-frozen=0, comp-class-so-handle-addr=0x22b0de0, comp-class-so-handle-path="/usr/lib/x86_64-linux-gnu/babeltrace2/plugins/babeltrace-plugin-ctf.so", comp-input-port-count=0, comp-output-port-count=0
07-22 07:49:20.123 5264 5264 E CLI cmd_run_ctx_create_components_from_config_components@babeltrace2.c:2301 Cannot create component: plugin-name="ctf", comp-cls-name="fs", comp-cls-type=1, comp-name="auto-disc-source-ctf-fs"
07-22 07:49:20.123 5264 5264 E CLI cmd_run@babeltrace2.c:2480 Cannot create components.
ERROR: [Babeltrace CLI] (babeltrace2.c:2480)
Cannot create components.
CAUSED BY [Babeltrace CLI] (babeltrace2.c:2301)
Cannot create component: plugin-name="ctf", comp-cls-name="fs", comp-cls-type=1, comp-name="auto-disc-source-ctf-fs"
CAUSED BY [libbabeltrace2] (graph.c:977)
Component initialization method failed: status=ERROR, comp-addr=0x22a68d0, comp-name="auto-disc-source-ctf-fs", comp-log-level=WARNING,
comp-class-type=SOURCE, comp-class-name="fs", comp-class-partial-descr="Read CTF traces from the file sy", comp-class-is-frozen=0,
comp-class-so-handle-addr=0x22b0de0, comp-class-so-handle-path="/usr/lib/x86_64-linux-gnu/babeltrace2/plugins/babeltrace-plugin-ctf.so",
comp-input-port-count=0, comp-output-port-count=0 CAUSED BY [auto-disc-source-ctf-fs: 'source.ctf.fs'] (fs.c:1206)
Cannot create trace for `/mnt/ssd/work/skim/traces/kernel`.
</pre>
<p>I'm using below version.</p>
<pre>
skim@d54030999178:~/work/tmp$ babeltrace2 -V
Babeltrace 2.0.4 "Amqui"
Amqui (/_mkwi_/) is a town in eastern Qu_bec, Canada, at the base of the Gasp_ peninsula in Bas-Saint-Laurent. Located at the confluence of the Humqui and Matap_dia Rivers, its proximity to woodlands makes it a great destination for outdoor activities such as camping, hiking, and mountain biking.
</pre>
<p>Here is the test result which Philippe Proulx requested.</p>
<pre>
skim@d54030999178:~/ssd_work/traces$ babeltrace2 -o ctf-metadata ./kernel | grep -A10 '^clock {'
</pre>
<pre>
clock {
name = "monotonic";
uuid = "e00bcef2-1ef1-4f02-a241-8561834511fd";
description = "Monotonic Clock";
freq = 1000000000; /* Frequency, in Hz */
/* clock value offset from Epoch is: offset * (1/freq) */
offset = -48;
};
</pre> Babeltrace - Bug #1258 (New): Segmentation fault when running with --debughttps://bugs.lttng.org/issues/12582020-04-22T20:56:50ZGeneviève Bastiengbastien+lttng@versatic.net
<p>When running babeltrace2 with the --debug flag for a CTF trace, babeltrace segfaults with last messages being:</p>
<p>04-22 16:23:37.188 97664 97664 I LIB/PLUGIN-SO <a class="email" href="mailto:bt_plugin_so_init@plugin-so.c">bt_plugin_so_init@plugin-so.c</a>:761 Creating and setting properties of plugin's component class: plugin-path="/usr/local/lib/babeltrace2/plugins/babeltrace-plugin-ctf.la", plugin-name="ctf", comp-class-name="fs", comp-class-type=SOURCE<br />04-22 16:23:37.188 97664 97664 D LIB/CUR-THREAD <a class="email" href="mailto:bt_current_thread_take_error@current-thread.c">bt_current_thread_take_error@current-thread.c</a>:30 Took current thread's error object: addr=(nil)<br />04-22 16:23:37.188 97664 97664 I LIB/MESSAGE-ITERATOR-CLASS <a class="email" href="mailto:bt_message_iterator_class_create@message-iterator-class.c">bt_message_iterator_class_create@message-iterator-class.c</a>:61 Creating message iterator class: next-method-addr=0x7f066675e3b0<br />04-22 16:23:37.188 97664 97664 D LIB/CUR-THREAD <a class="email" href="mailto:bt_current_thread_take_error@current-thread.c">bt_current_thread_take_error@current-thread.c</a>:30 Took current thread's error object: addr=(nil)<br />04-22 16:23:37.188 97664 97664 D LIB/MESSAGE-ITERATOR-CLASS <a class="email" href="mailto:bt_message_iterator_class_set_initialize_method@message-iterator-class.c">bt_message_iterator_class_set_initialize_method@message-iterator-class.c</a>:89 Set message iterator class's iterator initialization method: addr=0x564bd652ac60<br />04-22 16:23:37.188 97664 97664 D LIB/CUR-THREAD <a class="email" href="mailto:bt_current_thread_take_error@current-thread.c">bt_current_thread_take_error@current-thread.c</a>:30 Took current thread's error object: addr=(nil)<br />04-22 16:23:37.188 97664 97664 D LIB/MESSAGE-ITERATOR-CLASS <a class="email" href="mailto:bt_message_iterator_class_set_finalize_method@message-iterator-class.c">bt_message_iterator_class_set_finalize_method@message-iterator-class.c</a>:104 Set message iterator class's finalization method: addr=0x564bd652ac60<br />04-22 16:23:37.188 97664 97664 D LIB/CUR-THREAD <a class="email" href="mailto:bt_current_thread_take_error@current-thread.c">bt_current_thread_take_error@current-thread.c</a>:30 Took current thread's error object: addr=(nil)<br />[1] 97664 segmentation fault (core dumped)</p>
<p>Reproducible on archlinux and ubuntu, with or without the BABELTRACE_DEBUG_MODE enabled</p> Babeltrace - Bug #1254 (New): Trace with non-monotonic clocks make babeltrace2 aborthttps://bugs.lttng.org/issues/12542020-04-07T20:08:37ZSimon Marchisimon.marchi@polymtl.ca
<p>The trace as attachment here: <a class="external" href="https://www.eclipse.org/lists/tracecompass-dev/msg01505.html">https://www.eclipse.org/lists/tracecompass-dev/msg01505.html</a><br />... and the trace here: <a class="external" href="https://filebin.net/8bbv15rl60da6s9g/example.tgz?t=o3y9sgrz">https://filebin.net/8bbv15rl60da6s9g/example.tgz?t=o3y9sgrz</a></p>
<p>... both make babeltrace2 abort with:</p>
<pre>
$ ./src/cli/babeltrace2 /home/simark/Downloads/une-trace
04-07 15:43:15.359 2011726 2011726 F LIB/MSG-ITER call_iterator_next_method@iterator.c:815 Babeltrace 2 library postcondition not satisfied; error is:
04-07 15:43:15.359 2011726 2011726 F LIB/MSG-ITER call_iterator_next_method@iterator.c:815 Clock snapshots are not monotonic
04-07 15:43:15.359 2011726 2011726 F LIB/MSG-ITER call_iterator_next_method@iterator.c:815 Aborting...
[1] 2011726 abort (core dumped) ./src/cli/babeltrace2 /home/simark/Downloads/une-trace
</pre>
<p>This should at least be reported as an error.</p> Babeltrace - Bug #1236 (New): SIGTRAP in glib found during fuzzinghttps://bugs.lttng.org/issues/12362020-02-17T21:59:20ZFrancis Deslauriersfrancis.deslauriers@efficios.com
<p>I was fuzzing Babeltrace 2 by randomly mutating one of the channel file at each run and I encountered a crash very quickly. This may be a glib bug.<br />I attached the trace in a zip.</p>
<p>Running this command: babeltrace --verbose -o dummy input/1125/<br /><pre>
1-17 22:05:33.065 26581 26581 I CLI print_cfg@babeltrace.c:682 Configuration:
Debug mode: no
Verbose mode: no
Plugin paths:
- /home/frdeso/.local/lib/babeltrace/plugins
- /usr/local/lib/babeltrace/plugins
- /home/frdeso/.local/lib/babeltrace/plugins
- /usr/local/lib/babeltrace/plugins
Source component instances:
'source.ctf.fs':
Name: source-ctf-fs
Parameters:
path: input/1125/
Filter component instances:
'filter.utils.muxer':
Name: muxer
Parameters:
{ }
Sink component instances:
'sink.utils.dummy':
Name: dummy
Parameters:
{ }
Connections:
source-ctf-fs.* -> muxer.*
muxer.* -> dummy.*
01-17 22:05:33.065 26581 26581 I CLI load_dynamic_plugins@babeltrace.c:758 Loading dynamic plugins.
01-17 22:05:33.066 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.066 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.067 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.067 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.067 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.067 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.067 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.068 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.068 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.068 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.068 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.069 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.070 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.070 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.071 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.072 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.072 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.072 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.072 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.072 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="text", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-text.la", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-text.so"
01-17 22:05:33.072 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="utils", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-utils.la", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-utils.so"
01-17 22:05:33.072 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="ctf", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-ctf.la", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-ctf.so"
01-17 22:05:33.072 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="lttng-utils", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-lttng-utils.la", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-lttng-utils.so"
01-17 22:05:33.073 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.073 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.073 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.073 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.073 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.073 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.073 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.074 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.074 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.074 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.074 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.074 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.075 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.076 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.076 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.076 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.076 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.076 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.076 26581 26581 I PLUGIN init_python_plugin_provider@plugin.c:82 Cannot open `libbabeltrace-python-plugin-provider.so`: libbabeltrace-python-plugin-provider.so: cannot open shared object file: No such file or directory: continuing without Python plugin support.
01-17 22:05:33.076 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="text", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-text.so", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-text.so"
01-17 22:05:33.076 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="text", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-text.la", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-text.so"
01-17 22:05:33.076 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="utils", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-utils.so", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-utils.so"
01-17 22:05:33.076 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="ctf", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-ctf.so", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-ctf.so"
01-17 22:05:33.076 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="utils", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-utils.la", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-utils.so"
01-17 22:05:33.076 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="lttng-utils", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-lttng-utils.so", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-lttng-utils.so"
01-17 22:05:33.076 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="ctf", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-ctf.la", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-ctf.so"
01-17 22:05:33.076 26581 26581 I CLI add_to_loaded_plugins@babeltrace.c:733 Not using plugin: another one already exists with the same name: plugin-name="lttng-utils", plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-lttng-utils.la", existing-plugin-path="/usr/local/lib/babeltrace/plugins/babeltrace-plugin-lttng-utils.so"
01-17 22:05:33.076 26581 26581 I CLI load_static_plugins@babeltrace.c:808 Loading static plugins.
01-17 22:05:33.076 26581 26581 I CLI load_all_plugins@babeltrace.c:837 Loaded all plugins: count=4
01-17 22:05:33.076 26581 26581 I CLI main@babeltrace.c:2888 Executing command: cmd=0, command-name="convert"
01-17 22:05:33.076 26581 26581 I CLI cmd_run@babeltrace.c:2595 Creating components.
01-17 22:05:33.114 26581 26581 I PLUGIN-CTF-METADATA-IR-VISITOR ctf_visitor_generate_ir_visit_node@visitor-generate-ir.c:5388 Visiting metadata's AST to generate CTF IR objects.
01-17 22:05:33.114 26581 26581 I PLUGIN-CTF-METADATA-IR-VISITOR visit_env@visitor-generate-ir.c:4630 Detected LTTng trace from `tracer_name` environment value: tracer-name="lttng-modules"
01-17 22:05:33.151 26581 26581 W PLUGIN-CTF-FS-SRC-DS build_index_from_stream_file@data-stream-file.c:723 Invalid packet size reported in file: stream="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_1", packet-offset=0, packet-size-bytes=2199023517696, file-size=2531328
01-17 22:05:33.151 26581 26581 W PLUGIN-CTF-FS-SRC add_ds_file_to_ds_file_group@fs.c:656 Failed to index CTF stream file '/home/frdeso/projets/bt-fuzzing/input/1125/channel0_1'
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1932 Port added to a graph's component: comp-addr=0x16fe140, comp-name="source-ctf-fs", port-addr=0x18a71f0, port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_1"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1932 Port added to a graph's component: comp-addr=0x16fe140, comp-name="source-ctf-fs", port-addr=0x17f18b0, port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_3"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1932 Port added to a graph's component: comp-addr=0x16fe140, comp-name="source-ctf-fs", port-addr=0x17dfd10, port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_0"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1932 Port added to a graph's component: comp-addr=0x16fe140, comp-name="source-ctf-fs", port-addr=0x16fd790, port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_2"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_create_components_from_config_components@babeltrace.c:2429 Created and inserted component: comp-addr=0x16fe140, comp-name="source-ctf-fs"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1932 Port added to a graph's component: comp-addr=0x17bf3f0, comp-name="muxer", port-addr=0x1853640, port-name="in0"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1932 Port added to a graph's component: comp-addr=0x17bf3f0, comp-name="muxer", port-addr=0x17f4690, port-name="out"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_create_components_from_config_components@babeltrace.c:2429 Created and inserted component: comp-addr=0x17bf3f0, comp-name="muxer"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1932 Port added to a graph's component: comp-addr=0x1906e30, comp-name="dummy", port-addr=0x18754b0, port-name="in"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_create_components_from_config_components@babeltrace.c:2429 Created and inserted component: comp-addr=0x1906e30, comp-name="dummy"
01-17 22:05:33.152 26581 26581 I CLI cmd_run@babeltrace.c:2609 Connecting components.
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port@babeltrace.c:1872 Connecting upstream port: comp-addr=0x16fe140, comp-name="source-ctf-fs", port-addr=0x18a71f0, port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_1"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port_to_downstream_component@babeltrace.c:1613 Connecting upstream port to the next available downstream port: upstream-port-addr=0x18a71f0, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_1", downstream-comp-name="muxer", conn-arg="source-ctf-fs:muxer"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1932 Port added to a graph's component: comp-addr=0x17bf3f0, comp-name="muxer", port-addr=0x18aaf60, port-name="in1"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1949 Skipping input port.
01-17 22:05:33.152 26581 26581 I CLI graph_ports_connected_listener@babeltrace.c:1991 Graph's component ports connected: upstream-comp-addr=0x16fe140, upstream-comp-name="source-ctf-fs", upstream-port-addr=0x18a71f0, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_1", downstream-comp-addr=0x17bf3f0, downstream-comp-name="muxer", downstream-port-addr=0x1853640, downstream-port-name="in0"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port_to_downstream_component@babeltrace.c:1796 Connected component ports: upstream-comp-addr=0x16fe140, upstream-comp-name="source-ctf-fs", upstream-port-addr=0x18a71f0, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_1", downstream-comp-addr=0x17bf3f0, downstream-comp-name="muxer", downstream-port-addr=(nil), downstream-port-name="in0", conn-arg="source-ctf-fs:muxer"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port@babeltrace.c:1872 Connecting upstream port: comp-addr=0x16fe140, comp-name="source-ctf-fs", port-addr=0x17f18b0, port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_3"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port_to_downstream_component@babeltrace.c:1613 Connecting upstream port to the next available downstream port: upstream-port-addr=0x17f18b0, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_3", downstream-comp-name="muxer", conn-arg="source-ctf-fs:muxer"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1932 Port added to a graph's component: comp-addr=0x17bf3f0, comp-name="muxer", port-addr=0x194d720, port-name="in2"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1949 Skipping input port.
01-17 22:05:33.152 26581 26581 I CLI graph_ports_connected_listener@babeltrace.c:1991 Graph's component ports connected: upstream-comp-addr=0x16fe140, upstream-comp-name="source-ctf-fs", upstream-port-addr=0x17f18b0, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_3", downstream-comp-addr=0x17bf3f0, downstream-comp-name="muxer", downstream-port-addr=0x18aaf60, downstream-port-name="in1"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port_to_downstream_component@babeltrace.c:1796 Connected component ports: upstream-comp-addr=0x16fe140, upstream-comp-name="source-ctf-fs", upstream-port-addr=0x17f18b0, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_3", downstream-comp-addr=0x17bf3f0, downstream-comp-name="muxer", downstream-port-addr=(nil), downstream-port-name="in1", conn-arg="source-ctf-fs:muxer"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port@babeltrace.c:1872 Connecting upstream port: comp-addr=0x16fe140, comp-name="source-ctf-fs", port-addr=0x17dfd10, port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_0"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port_to_downstream_component@babeltrace.c:1613 Connecting upstream port to the next available downstream port: upstream-port-addr=0x17dfd10, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_0", downstream-comp-name="muxer", conn-arg="source-ctf-fs:muxer"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1932 Port added to a graph's component: comp-addr=0x17bf3f0, comp-name="muxer", port-addr=0x18b5cb0, port-name="in3"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1949 Skipping input port.
01-17 22:05:33.152 26581 26581 I CLI graph_ports_connected_listener@babeltrace.c:1991 Graph's component ports connected: upstream-comp-addr=0x16fe140, upstream-comp-name="source-ctf-fs", upstream-port-addr=0x17dfd10, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_0", downstream-comp-addr=0x17bf3f0, downstream-comp-name="muxer", downstream-port-addr=0x194d720, downstream-port-name="in2"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port_to_downstream_component@babeltrace.c:1796 Connected component ports: upstream-comp-addr=0x16fe140, upstream-comp-name="source-ctf-fs", upstream-port-addr=0x17dfd10, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_0", downstream-comp-addr=0x17bf3f0, downstream-comp-name="muxer", downstream-port-addr=(nil), downstream-port-name="in2", conn-arg="source-ctf-fs:muxer"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port@babeltrace.c:1872 Connecting upstream port: comp-addr=0x16fe140, comp-name="source-ctf-fs", port-addr=0x16fd790, port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_2"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port_to_downstream_component@babeltrace.c:1613 Connecting upstream port to the next available downstream port: upstream-port-addr=0x16fd790, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_2", downstream-comp-name="muxer", conn-arg="source-ctf-fs:muxer"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1932 Port added to a graph's component: comp-addr=0x17bf3f0, comp-name="muxer", port-addr=0x17b9610, port-name="in4"
01-17 22:05:33.152 26581 26581 I CLI graph_port_added_listener@babeltrace.c:1949 Skipping input port.
01-17 22:05:33.152 26581 26581 I CLI graph_ports_connected_listener@babeltrace.c:1991 Graph's component ports connected: upstream-comp-addr=0x16fe140, upstream-comp-name="source-ctf-fs", upstream-port-addr=0x16fd790, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_2", downstream-comp-addr=0x17bf3f0, downstream-comp-name="muxer", downstream-port-addr=0x18b5cb0, downstream-port-name="in3"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port_to_downstream_component@babeltrace.c:1796 Connected component ports: upstream-comp-addr=0x16fe140, upstream-comp-name="source-ctf-fs", upstream-port-addr=0x16fd790, upstream-port-name="/home/frdeso/projets/bt-fuzzing/input/1125/channel0_2", downstream-comp-addr=0x17bf3f0, downstream-comp-name="muxer", downstream-port-addr=(nil), downstream-port-name="in3", conn-arg="source-ctf-fs:muxer"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port@babeltrace.c:1872 Connecting upstream port: comp-addr=0x17bf3f0, comp-name="muxer", port-addr=0x17f4690, port-name="out"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port_to_downstream_component@babeltrace.c:1613 Connecting upstream port to the next available downstream port: upstream-port-addr=0x17f4690, upstream-port-name="out", downstream-comp-name="dummy", conn-arg="muxer:dummy"
01-17 22:05:33.152 26581 26581 I CLI graph_ports_connected_listener@babeltrace.c:1991 Graph's component ports connected: upstream-comp-addr=0x17bf3f0, upstream-comp-name="muxer", upstream-port-addr=0x17f4690, upstream-port-name="out", downstream-comp-addr=0x1906e30, downstream-comp-name="dummy", downstream-port-addr=0x18754b0, downstream-port-name="in"
01-17 22:05:33.152 26581 26581 I CLI cmd_run_ctx_connect_upstream_port_to_downstream_component@babeltrace.c:1796 Connected component ports: upstream-comp-addr=0x17bf3f0, upstream-comp-name="muxer", upstream-port-addr=0x17f4690, upstream-port-name="out", downstream-comp-addr=0x1906e30, downstream-comp-name="dummy", downstream-port-addr=(nil), downstream-port-name="in", conn-arg="muxer:dummy"
01-17 22:05:33.152 26581 26581 I CLI cmd_run@babeltrace.c:2623 Running the graph.
(process:26581): GLib-ERROR **: /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmem.c:165: failed to allocate 27128233984 bytes
zsh: trace trap (core dumped) babeltrace --verbose -o dummy input/1125/
</pre></p>
<p>Here is the gdb backtrace of the crash running this command: gdb --args babeltrace -o dummy input/1125/<br /><pre>
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff7262a5b in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0 0x00007ffff7262a5b in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007ffff7262bcf in g_log () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007ffff7261801 in g_realloc () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff722f2dd in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007ffff722fde8 in g_ptr_array_sized_new () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007ffff7b740c0 in bt_field_sequence_set_length (field=field@entry=0x640230, length_field=length_field@entry=0x75f200) at fields.c:504
#6 0x00007ffff6152f23 in btr_get_sequence_length_cb (type=<optimized out>, data=0x706ac0) at notif-iter.c:2459
#7 0x00007ffff6134510 in get_compound_field_type_length (field_type=0x8d4cf0, btr=0x70b1b0) at btr.c:245
#8 stack_push_with_len (btr=0x70b1b0, base_type=0x8d4cf0) at btr.c:298
#9 0x00007ffff6138fb0 in next_field_state (btr=0x70b1b0) at btr.c:1341
#10 handle_state (btr=btr@entry=0x70b1b0) at btr.c:1378
#11 0x00007ffff613a5cf in bt_btr_start (btr=0x70b1b0, type=type@entry=0x8d4020, buf=0x7ffff51e5000 "\300\037\374\301E\356\260\345\333I\343N\223\343T\006\340\032u\214", offset=4160, packet_offset=4160, sz=32768, status=0x7fffffffe074)
at btr.c:1521
#12 0x00007ffff6151460 in read_dscope_begin_state (notit=notit@entry=0x706ac0, dscope_field_type=dscope_field_type@entry=0x8d4020, done_state=done_state@entry=STATE_EMIT_NOTIF_EVENT,
continue_state=continue_state@entry=STATE_DSCOPE_EVENT_PAYLOAD_CONTINUE, dscope_field=dscope_field@entry=0x706b28) at notif-iter.c:563
#13 0x00007ffff61555dd in read_event_payload_begin_state (notit=0x706ac0) at notif-iter.c:1553
#14 handle_state (notit=0x706ac0) at notif-iter.c:1675
#15 bt_notif_iter_get_next_notification (notit=0x706ac0, cc_prio_map=0x8493d0, notification=notification@entry=0x7fffffffe1d0) at notif-iter.c:3125
#16 0x00007ffff6124de4 in ctf_fs_ds_file_next (ds_file=<optimized out>) at data-stream-file.c:855
#17 0x00007ffff612668c in ctf_fs_iterator_next (iterator=<optimized out>) at fs.c:98
#18 0x00007ffff7b5a78f in ensure_queue_has_notifications (iterator=0x737000) at iterator.c:2131
#19 bt_notification_iterator_next (iterator=0x737000) at iterator.c:2261
#20 0x00007ffff6392786 in muxer_upstream_notif_iter_next (muxer_upstream_notif_iter=0x63b920) at muxer.c:457
#21 validate_muxer_upstream_notif_iter (muxer_upstream_notif_iter=0x63b920) at muxer.c:957
#22 validate_muxer_upstream_notif_iters (muxer_notif_iter=<optimized out>) at muxer.c:980
#23 muxer_notif_iter_do_next (muxer_notif_iter=<optimized out>, muxer_comp=<optimized out>) at muxer.c:1051
#24 muxer_notif_iter_next (priv_notif_iter=0x63f610) at muxer.c:1379
#25 0x00007ffff7b5a78f in ensure_queue_has_notifications (iterator=0x63f610) at iterator.c:2131
#26 bt_notification_iterator_next (iterator=0x63f610) at iterator.c:2261
#27 0x00007ffff638d8b3 in dummy_consume (component=<optimized out>) at dummy.c:124
#28 0x00007ffff7b5637f in bt_component_sink_consume (component=component@entry=0x75f490) at sink.c:87
#29 0x00007ffff7b50d18 in consume_graph_sink (sink=0x75f490) at graph.c:427
#30 consume_sink_node (node=0x834580, graph=<optimized out>) at graph.c:465
#31 0x00007ffff7b51854 in bt_graph_run (graph=0x640b50) at graph.c:622
#32 0x0000000000405d32 in cmd_run (cfg=0x62e110) at babeltrace.c:2627
#33 main (argc=<optimized out>, argv=<optimized out>) at babeltrace.c:2892
</pre></p>
<p>At frame 5, there is an gpointer allocation for 3391029248 bytes.<br /><pre>
(gdb) frame 5
#5 0x00007ffff7b740c0 in bt_field_sequence_set_length (field=field@entry=0x640230, length_field=length_field@entry=0x75f200) at fields.c:504
504 sequence->elements = g_ptr_array_sized_new((size_t) sequence_length);
(gdb) p sequence_length
$1 = 3391029248
</pre></p> Babeltrace - Bug #1234 (Feedback): src.text.dmesg: some kernel ring buffer lines can be wrongly s...https://bugs.lttng.org/issues/12342020-02-17T21:54:00ZPhilippe Proulxeeppeliteloop@gmail.com
<p>The lines of the <code>dmesg</code> command start with a time. The lines are supposed to be in order of time, but some of them can be at the wrong place.</p>
<p><code>flt.utils.muxer</code> does not like this and complains that event messages are not sorted by their default clock snapshot value.</p>
<p>It is, in fact, a <code>src.text.dmesg</code> bug because a message iterator must emit messages in order of time.</p>
<p>If the input is a file, one solution would be to sort the lines first (if not too large), and then emit the messages in this order.</p>
<p>We could also, in all scenarios, skip the lines with a time that is before the last event message's time and warn accordingly.</p> Babeltrace - Bug #1232 (New): src.ctf.fs: variant option names without their tag equivalent are a...https://bugs.lttng.org/issues/12322020-02-17T21:40:34ZPhilippe Proulxeeppeliteloop@gmail.com
<p>See the attached trace. The metadata is valid for <code>src.ctf.fs</code>, however there's a variant option name (<code>d</code>) without its member in the tag, and there's a tag member (<code>a</code>) without an equivalent variant option name. The trace contains the byte 0 followed with a string. This means the tag's value is <code>a</code>, but then the variant option does not exist. This happens:</p>
<pre>
03-26 15:20:28.111 13242 13242 W PLUGIN-CTF-FS-SRC add_ds_file_to_ds_file_group@fs.c:672 Failed to index CTF stream file '/tmp/zzz/allo'
03-26 15:20:28.111 13242 13242 W PLUGIN-CTF-MSG-ITER bfcr_borrow_variant_selected_field_class_cb@msg-iter.c:2354 Cannot find variant field class's option: notit-addr=0x5557cd2a14f0, var-fc-addr=0x5557cd2ad0a0, u-tag=0, i-tag=0
03-26 15:20:28.111 13242 13242 W PLUGIN-CTF-MSG-ITER read_dscope_begin_state@msg-iter.c:581 BFCR failed to start: notit-addr=0x5557cd2a14f0, bfcr-addr=0x5557cd2a1680, status=BT_BFCR_STATUS_ERROR
03-26 15:20:28.111 13242 13242 W PLUGIN-CTF-MSG-ITER read_event_payload_begin_state@msg-iter.c:1393 Cannot decode event payload field: notit-addr=0x5557cd2a14f0, event-class-addr=0x5557cd2a7200, event-class-name="allo", event-class-id=0, fc-addr=0x5557cd2a7990
03-26 15:20:28.111 13242 13242 W PLUGIN-CTF-MSG-ITER bt_msg_iter_get_next_message@msg-iter.c:2769 Cannot handle state: notit-addr=0x5557cd2a14f0, state=STATE_DSCOPE_EVENT_PAYLOAD_BEGIN
babeltrace: msg-iter.c:1366: read_event_payload_begin_state: Assertion `!notit->dscopes.event_payload' failed.
</pre> Babeltrace - Bug #1225 (On pause): src.ctf.lttng-live: `sessions` query error reportinghttps://bugs.lttng.org/issues/12252020-02-17T21:07:37ZFrancis Deslauriersfrancis.deslauriers@efficios.com
<p>The right format to query the list of sessions is:<br /><pre>
babeltrace2 query -p 'url="net://127.0.0.1"' src.ctf.lttng-live sessions
</pre></p>
<p>When adding a `/` at the end of the URL (by mistake maybe) you get the following error:<br /><pre>
10-23 10:11:25.193 2096 2096 E PLUGIN/SRC.CTF.LTTNG-LIVE/VIEWER parse_url@viewer-connection.c:127 [lttng-live] Invalid LTTng live URL format: Expecting `/host/` after hostname or port
10-23 10:11:25.193 2096 2096 E PLUGIN/SRC.CTF.LTTNG-LIVE/VIEWER lttng_live_connect_viewer@viewer-connection.c:253 [lttng-live] Failed to parse URL
10-23 10:11:25.193 2096 2096 E PLUGIN/SRC.CTF.LTTNG-LIVE/VIEWER live_viewer_connection_create@viewer-connection.c:1629 [lttng-live] Failure to establish connection: url="net://127.0.0.1/"
10-23 10:11:25.193 2096 2096 E PLUGIN/SRC.CTF.LTTNG-LIVE lttng_live_query_list_sessions@lttng-live.c:1589 [lttng-live] Failed to create viewer connection
10-23 10:11:25.193 2096 2096 W LIB/QUERY-EXECUTOR bt_query_executor_query@query-executor.c:246 Component class's "query" method failed: query-exec-addr=0x5625255fd7a0, cc-addr=0x5625255f80a0, cc-type=SOURCE, cc-name="lttng-live", cc-partial-descr="Connect to an LTTng relay daemon", cc-is-frozen=0, cc-so-handle-addr=0x5625255f7270, cc-so-handle-path="/usr/local/lib/babeltrace2/plugins/babeltrace-plugin-ctf.so", object="sessions", params-addr=0x5625255e4540, params-type=MAP, params-element-count=1, log-level=WARNING
10-23 10:11:25.193 2096 2096 E CLI cmd_query@babeltrace2.c:727 Failed to query component class: unknown error: plugin-name="ctf", comp-cls-name="lttng-live", comp-cls-type=1 object="sessions"
ERROR: [Babeltrace CLI] (babeltrace2.c:727)
Failed to query component class: unknown error: plugin-name="ctf", comp-cls-name="lttng-live", comp-cls-type=1
object="sessions"
CAUSED BY [Babeltrace library] (query-executor.c:246)
Component class's "query" method failed: query-exec-addr=0x5625255fd7a0, cc-addr=0x5625255f80a0, cc-type=SOURCE,
cc-name="lttng-live", cc-partial-descr="Connect to an LTTng relay daemon", cc-is-frozen=0,
cc-so-handle-addr=0x5625255f7270, cc-so-handle-path="/usr/local/lib/babeltrace2/plugins/babeltrace-plugin-ctf.so",
object="sessions", params-addr=0x5625255e4540, params-type=MAP, params-element-count=1, log-level=WARNING
CAUSED BY ['source.ctf.lttng-live'] (lttng-live.c:1589)
Failed to create viewer connection
CAUSED BY ['source.ctf.lttng-live'] (viewer-connection.c:1629)
Failure to establish connection: url="net://127.0.0.1/"
CAUSED BY ['source.ctf.lttng-live'] (viewer-connection.c:253)
Failed to parse URL
CAUSED BY ['source.ctf.lttng-live'] (viewer-connection.c:127)
Invalid LTTng live URL format: Expecting `/host/` after hostname or port
</pre><br />Suggesting to add the `/host/` part of the URL as if we were trying to connect to a session.<br />When in fact, since I am in a query, I would want it to be suggesting me to remove the extra `/` if anything.</p> Babeltrace - Bug #1222 (New): src.ctf.lttng-live: reading two per-pid traces does not emit messageshttps://bugs.lttng.org/issues/12222020-02-17T21:01:32ZFrancis Deslauriersfrancis.deslauriers@efficios.com
<p>When connecting a lttng-live component on a session with per-pid tracing and having one trace generating many events and another generating it results in no message at all being generated by the component.</p>
<p>The resulting traces on disk are readable.</p>
<p>BT1.5 prints the following:<br /><pre>
[warning] Clock "(null)" offset differs between traces (delta 7650446431922014464 ns). Using average.
</pre></p>
<p>I suspect that the inactivity messages produced by the stream iterators of the silent trace triggers a bug in the ordering of messages. Maybe it's moving the timestamp of the last message too far ahead for other traces and it should only move it for that one silent trace.</p>
To reproduce the issue:
<ol>
<li>Create 2 apps that loop and generate events</li>
<li>Create live per-pid session</li>
<li>Enable an event present in only one app</li>
<li>lttng start</li>
<li>launch both apps and let them loop.</li>
</ol>
<p>Problem: One of the app generates events but we don't see them in the output of the lttng-live component.</p> Babeltrace - Feature #1164 (New): Write a plugin to anonymize traceshttps://bugs.lttng.org/issues/11642018-05-17T16:14:29ZGeneviève Bastiengbastien+lttng@versatic.net
<p>Here's a feature that was discussed during last hack-a-thon:</p>
<p>Write a babeltrace plugin that would allow to remove all internal information from the trace, so that the trace can be sent for analysis without exposing internal information.</p>
<p>The kind of information to anonymize (not exhaustive, more thoughts need to be put in it):</p>
<ul>
<li>In the metadata: host names</li>
</ul>
<ul>
<li>IP addresses: Change them for dummy IPs</li>
</ul>
<ul>
<li>File names</li>
</ul>
<ul>
<li>Process names?</li>
</ul>
<p>The plugin should keep a mapping of the anonymized information so that results can be mapped back to original data.</p> Babeltrace - Feature #1045 (New): Wire up debug info on lttng_ust_cyg_profile event fieldshttps://bugs.lttng.org/issues/10452016-07-13T14:53:52ZMathieu Desnoyersmathieu.desnoyers@efficios.com
<p>#lttng paste</p>
<p>09:56 < rnsanchez> is there a default procedure for "hydrating" instrument-functions traces like this?<br />09:56 < rnsanchez> [13:54:09.866652414] (+0.000001178) priminho lttng_ust_cyg_profile:func_exit: { cpu_id = 1 }, { addr = 0x46BB90, call_site = 0x46BF7B }<br />09:56 < rnsanchez> (kind of replacing the addr with their proper symbols)<br />09:57 < milian> rnsanchez: I'm not an lttng dev, but could imagine that one would be able to write that by analyzing mmap + openat to find the offset into a library, which you can then feed into addr2line, or libdw/libbacktrace<br />09:59 < rnsanchez> I could propably pass it (babeltrace) through some script to do that. but since the trace is huge (and this is not even a "real" trace), I was wondering if there is a better way to do that<br />09:59 < milian> I'd also be interested in that<br />10:00 < rnsanchez> well maybe there is one. building a symbol-table cache for the known things (a binary of special interest) and then feeding babeltrace through awk, replacing the symbols found with their names<br />10:01 < rnsanchez> some would miss, of course, but perhaps a good amount would help<br />10:46 < Compudj> rnsanchez, milian: currently, babeltrace is a bit "hardwired" to the "ip" context for symbol resolution<br />10:46 < Compudj> but all the infrastructure code is there<br />10:49 < Compudj> see babeltrace: formats/ctf-text/types/integer.c<br />10:49 < Compudj> there is a call to ctf_text_integer_write_debug_info<br />10:50 < Compudj> implemented in include/babeltrace/trace-debug-info.h<br />10:50 < Compudj> it checks if integer_definition->debug_info_src is non-null<br />10:51 < Compudj> this is wired up in lib/debug-info.c register_event_debug_infos()<br />10:51 < Compudj> it is where it is tied to the "ip" context<br />10:51 < Compudj> it should be extended to be tied to the lttng_ust_cyg_profile event fields too</p>