Scenario:
========= 0)_ No instrumented applications running. 1)_ lttng create ses1 -o /cluster/temp/sessiondir/ses1 2)_ enable an event with an invalid filter: lttng enable-event ust_tests_demo2:loop -u --filter ' "myString" "yourString" '
3)_ Run the instrumented application (ex:demo) that has the above tracepoint. demo-trace
4)_ The following error is received: libust[24336/24337]: Error: Filter reloc offset 24 is not within data (in handle_message() at lttng-ust-comm.c:299) libust[24336/24337]: Error: Error handling message for global socket (in ust_listener_thread() at lttng-ust-comm.c:867) libust[24336/24337]: Error: incorrect message size (global socket): 24 (in ust_listener_thread() at lttng-ust-comm.c:878) libust[24336/24336]: Error: Timed out waiting for ltt-sessiond (in lttng_ust_init() at lttng-ust-comm.c:1030)
Expected Behavior: ================ Can the error printout be suppressed as this type of error is confusing for the application.
This looks like with this filter info, the tools provide a corrupted filter to the app. This is why lttng-ust complain with ERR. The complain should not show up, but this should be fixed by investigating why lttng-tools send the corrupted filter info from this invalid filter.
It is still there with the latest HEAD (from yesterday):
userspace : (sep6) a5a9f42 Ensure that read-side functions meet 10-line LGPL criterion lttng-ust : (sep26) 38f5f44 Fix: manpage typo "-lllttng-ust" -> "-llttng-ust" lttng-tools: (sep26) 529f6ac Update version to v2.1.0-rc4 babeltrace : (sep20) 9b3c1d6 Fix: emf uri: surround by " "
Short log from today (sep28):
============================= SC-1:/home/test_apps # lttng list u UST events: ------------ None
SC-1:/home/test_apps # SC-1:/home/test_apps # lttng list Currently no available tracing session SC-1:/home/test_apps # SC-1:/home/test_apps # lttng create ses1 Session ses1 created. Traces will be written in /root/lttng-traces/ses1-20120928-092628 SC-1:/home/test_apps # lttng enable-event ust_tests_demo2:loop -u --filter ' "myString" "yourString" ' UST event ust_tests_demo2:loop created in channel channel0 Filter ' "myString" "yourString" ' successfully set SC-1:/home/test_apps # SC-1:/home/test_apps # more demo-trace #!/bin/sh
LD_PRELOAD=/home/test_apps/liblttng-ust-provider-ust-tests-demo.so:/home/test_apps/liblttng-ust-provider-ust-tests-demo3.so /home/test_apps/demo SC-1:/home/test_apps # SC-1:/home/test_apps # ./demo-trace libust[29351/29352]: Error: Filter reloc offset 24 is not within data (in handle_message() at lttng-ust-comm.c:299) libust[29351/29352]: Error: Error handling message for global socket (in ust_listener_thread() at lttng-ust-comm.c:867) libust[29351/29352]: Error: incorrect message size (global socket): 24 (in ust_listener_thread() at lttng-ust-comm.c:878) libust[29351/29351]: Error: Timed out waiting for ltt-sessiond (in lttng_ust_init() at lttng-ust-comm.c:1030) Demo program starting. Tracing... done.