<div dir="ltr">Hi,<div>i am trying to run 32-bit application and see crash at the the line where "tracepoint" is used.</div><div>i am using sample application given in lttng-ust-2.6.0/doc/examples/gen-tp/</div><div>Not able to understand why the problem is seen only with 32-bit apps? Can experts here pls help me fix this.</div><div><br></div><div>Have tried using ELF 32-bit app on Intel 80386 and PowerPC and see the crash. Where as 64-bit applications have no problem.</div><div><br></div><div>following is the code where it crashes</div><div><div> for (i = 0; i < 100000; i++) {</div><div> tracepoint(sample_tracepoint, message, "Hello World\n"); <<<< Crash here</div><div> usleep(1); </div><div> }</div></div><div><br></div><div>GDB output:</div><div><br></div><div><div><div class="gmail_signature"><div dir="ltr">#0 0x00000000 in ?? ()<br>#1 0x10001e54 in __event_probe__sample_tracepoint___message (<br> __tp_data=0x10015420, text=0x100034a4 "Hello World\n")<br> at /build/home/jam/gentp/sample_tracepoint.h:13<br>#2 0x10000b9c in __tracepoint_cb_sample_tracepoint___message (<br> text=0x100034a4 "Hello World\n")<br> at //build/home/jam/gentp/sample_tracepoint.h:13<br>#3 main (argc=<optimized out>, argv=<optimized out>)<br> at /build/home/jam/gentp/sample.c:115<br><div dir="ltr"><br></div><div dir="ltr"><br></div><div>i am running 32-bit version of lttng-sessiond</div><div dir="ltr"><div dir="ltr">root@host:~# ps aux | grep lttng</div><div dir="ltr">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</div><div dir="ltr">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</div><div><br></div></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">/Jam</div></div></div></div>
</div></div>