Bug 2577 - Segmentation fault on qemuarm from /usr/lib/libust.so.0
Summary: Segmentation fault on qemuarm from /usr/lib/libust.so.0
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3 M5
Assignee: Andrei Dinu
QA Contact:
URL:
Whiteboard: wait for upstream
Depends on: 1443
Blocks:
  Show dependency tree
 
Reported: 2012-06-11 08:23 UTC by Hongna Xu
Modified: 2012-11-05 13:07 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
the binary a.out (15.96 KB, application/octet-stream)
2012-06-11 08:23 UTC, Hongna Xu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hongna Xu 2012-06-11 08:23:11 UTC
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;

}
##########################
Comment 1 Jessica 2012-06-12 06:31:37 UTC
Is this the same segfault as 1443?
Comment 2 Hongna Xu 2012-06-12 09:41:11 UTC
(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?
Comment 3 Alexandru Georgescu 2012-09-12 15:15:36 UTC
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.
Comment 4 Andrei Dinu 2012-09-24 11:29:39 UTC
bug fixed. waiting for upstream.
Comment 6 Alexandru Georgescu 2012-11-05 13:07:50 UTC
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)