Created attachment 564 [details] the binary a.out tree/branch:poky/master commit id:df8f55a919b3cc602ce1f1c51630c7edf6e36b55 When i run the binary a.out which generated by lttng.c on qemuarm-sato-sdk image, i got segmentation fault, the stack trace info is: ********************************** (gdb) break main Breakpoint 1 at 0x89f8: file lttng.c, line 5. (gdb) r Starting program: /home/root/a.out [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x40016e68 in ust_marker_probe_cb () from /usr/lib/libust.so.0 ************************************** qemuarm image location: http://autobuilder.pokylinux.org/pub/nightly/20120606-1/machines/qemu/qemuarm/ #########lttng.c############## #include <ust/marker.h> int main(int argc, char **argv) { int v=6; char *st="lttng example"; trace_mark(main, myevent, "firstarg %d secondarg %s", v, st); trace_mark(main, myotherevent, MARK_NOARGS); return 0; } ##########################
Is this the same segfault as 1443?
(In reply to comment #1) > Is this the same segfault as 1443? maybe not, I make it blocked by bug #1443, cause i can't have normal test without 1433 being resolved, is it?
Hi, I have a seg fault on this build: http://autobuilder.yoctoproject.org/pub/nightly/20120910-5/machines/qemu/qemuarm/ for qemu SATO sdk image and I can't figure out if it's the same problem as Hongna. Is there any update regarding this? My backtrace on it is: root@qemuarm:~# gcc -lust -g -O0 test.c root@qemuarm:~# gdb a.out GNU gdb (GDB) 7.4.1 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "arm-poky-linux-gnueabi". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/root/a.out...done. (gdb) run Starting program: /home/root/a.out [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0xb6fcfe68 in ust_marker_probe_cb () from /usr/lib/libust.so.0 (gdb) backtrace #0 0xb6fcfe68 in ust_marker_probe_cb () from /usr/lib/libust.so.0 #1 0xb6fcf2dc in ?? () from /usr/lib/libust.so.0 #2 0xb6fcf2dc in ?? () from /usr/lib/libust.so.0 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) Thanks, Alex.
bug fixed. waiting for upstream.
Fix applied in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=e1913fbb01af52feee74bd6ab239678211c7ebb2
Verified. root@crownbay:~# gcc -lust -g -O0 lst.c root@crownbay:~# gd gdb gdbserver gdk-pixbuf-csource gdk-pixbuf-query-loaders root@crownbay:~# gdb a.out GNU gdb (GDB) 7.5 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i586-poky-linux". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/root/a.out...done. (gdb) run Starting program: /home/root/a.out warning: Could not load shared library symbols for linux-gate.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". [New Thread 0xb7f9db40 (LWP 20716)] [Thread 0xb7fc2700 (LWP 20712) exited] [Inferior 1 (process 20712) exited normally] (gdb)