[lttng-dev] LD_PRELOAD applications using lttng-ust-pthread
majid3612 at gmail.com
Tue Jan 9 22:22:47 UTC 2018
Thanks for your response
I reran my test in gdb and got the following information:
Starting program: /usr/bin/env LD_PRELOAD=test.so firefox
process 5288 is executing new program: /bin/dash
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7de73a8 in ?? () from /lib64/ld-linux-x86-64.so.2
Does it provide enough information?
On Tue, Jan 9, 2018 at 10:43 AM, Jonathan Rajotte-Julien <
jonathan.rajotte-julien at efficios.com> wrote:
> On Mon, Jan 08, 2018 at 10:35:39PM -0500, Majid Rezazadeh wrote:
> > Hi all
> > I am using lttng-ust-libc-wrapper for instrumenting some calls to libc
> > some applications like Firefox and Chrome, but I receive "Segmentation
> > fault (core dumped)". I compile lttng-ust-pthread.c (gcc -fPIC -shared
> > test.so lttng-ust-pthread.c -ldl) and then I use "LD_PRELOAD=test.so
> > firefox" but I receive segmentation fault (I have exported
> > to the absolute path of test.so file). I found out that when I replace
> Could you give us more information regarding the coredump?
> "thread apply all bt" in gdb with the corefile loaded.
> Make sure to compile with debug symbol and rerun your test.
> > tracepoints with printf in lttng_ust_pthread.c, I receive no error. It
> > seems that hooking tracepoints in this wrapper makes some problems. Do
> > have any idea in this regard?
> > Thanks
> > Majid
> > _______________________________________________
> > lttng-dev mailing list
> > lttng-dev at lists.lttng.org
> > https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> Jonathan Rajotte-Julien
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lttng-dev