Bug #538
closedNo events are recorded when a UST tracepoint provider is dynamically linked to the application by using dlopen()
100%
Description
When a UST tracepoint provider is dynamically linked to the application by using dlopen(), no events are recorded (but no errors are emitted either). When using LD_PRELOAD or when statically linking the tracepoint provider, the events are recorded successfully.
The test application at: http://people.canonical.com/~afrantzis/lttng-tests.tar.gz exhibits the problem. It provides both a statically linked version of the server/client and a dynamically linked (to the TP provider) version served/clientd. To check the dlopen() variant do (and check the README file for more):
$ cd lttng-tests && make
$ mkfifo /tmp/myfifo
$ LD_LIBRARY_PATH=. ./clientd &
$ LD_LIBRARY_PATH=. ./serverd
The problem is seen in both 2.1.1 and the latest 2.2 daily.
Updated by Mathieu Desnoyers almost 11 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset 2723b9e6d840f8f6d9367862e8f836d5a9fca5df.