[lttng-dev] 32-bit application crash
jamie explorer
jamieexplorer at gmail.com
Mon Aug 3 06:49:47 EDT 2015
Hi,
i am trying to run 32-bit application and see crash at the the line where
"tracepoint" is used.
i am using sample application given in lttng-ust-2.6.0/doc/examples/gen-tp/
Not able to understand why the problem is seen only with 32-bit apps? Can
experts here pls help me fix this.
Have tried using ELF 32-bit app on Intel 80386 and PowerPC and see the
crash. Where as 64-bit applications have no problem.
following is the code where it crashes
for (i = 0; i < 100000; i++) {
tracepoint(sample_tracepoint, message, "Hello World\n");
<<<< Crash here
usleep(1);
}
GDB output:
#0 0x00000000 in ?? ()
#1 0x10001e54 in __event_probe__sample_tracepoint___message (
__tp_data=0x10015420, text=0x100034a4 "Hello World\n")
at /build/home/jam/gentp/sample_tracepoint.h:13
#2 0x10000b9c in __tracepoint_cb_sample_tracepoint___message (
text=0x100034a4 "Hello World\n")
at //build/home/jam/gentp/sample_tracepoint.h:13
#3 main (argc=<optimized out>, argv=<optimized out>)
at /build/home/jam/gentp/sample.c:115
i am running 32-bit version of lttng-sessiond
root at host:~# ps aux | grep lttng
root 4224 0.0 0.0 92212 1648 ? Ssl 00:42 0:00
/usr/bin/lttng-sessiond --consumerd32-path
/usr/lib/lttng/libexec/lttng-consumerd --consumerd32-libdir /usr/lib/ -b
--no-kernel
root 4243 0.0 0.0 64212 956 ? Sl 00:42 0:00
lttng-consumerd -u --consumerd-cmd-sock
/var/run/lttng/ustconsumerd32/command --consumerd-err-sock
/var/run/lttng/ustconsumerd32/error --group tracing
/Jam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150803/597efa7a/attachment.html>
More information about the lttng-dev
mailing list