All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] POSIX skin/Blackfin: SIGSEGV when stracing or gdb'ing
@ 2009-07-24 16:13 Kolja Waschk
  2009-07-24 16:30 ` Philippe Gerum
  0 siblings, 1 reply; 23+ messages in thread
From: Kolja Waschk @ 2009-07-24 16:13 UTC (permalink / raw)
  To: xenomai

Hi,

[On Blackfin uClinux 2.6.30 w/v2.5-rc2 with Philippe's patch from
yesterday, trying to run C or C++ FDPIC executables using the POSIX
skin]

When starting the example I recently posted (and a completely different
app, or even just an empty main(){return 0;} too) via "strace" or from
gdbserver, it segfaults almost immediately.

Unfortunately, I'm not able to make gdb break anywhere before this
happens. Therefore, I assume it happens before main().  The bfin trace
output shows that PC when it happened was at
libpthread/linuxthreads.old/signals.c:127 (uClibc __pthread_sigaction?)

These are the last instructions executed before the trap (last first)

    Source : <0xffa00740> { _trap + 0x1c } IF !CC JUMP
10 Target : <0xffa00724> { _trap + 0x0 }
    Source : <0x00457846> [ /lib/libpthread.so.0 + 0x7846 ] 0x9153
11 Target : <0x0045783a> [ /lib/libpthread.so.0 + 0x783a ]
    Source : <0x004578a2> [ /lib/libpthread.so.0 + 0x78a2 ] JUMP.S
12 Target : <0x0045789a> [ /lib/libpthread.so.0 + 0x789a ]
    Source : <0x00457838> [ /lib/libpthread.so.0 + 0x7838 ] IF !CC JUMP
       (libpthread/linuxthreads.old/signals.c:125)
13 Target : <0x004577fc> [ /lib/libpthread.so.0 + 0x77fc ]
       (libpthread/linuxthreads.old/internals.h:410)
    Source : <0xffa00cd6> { __common_int_entry + 0xde } RTI
14 Target : <0xffa00c74> { __common_int_entry + 0x7c }
    Source : <0xffa01070> { _evt_system_call + 0x64 } JUMP.S
15 Target : <0xffa01070> { _evt_system_call + 0x64 }
    Source : <0xffa00944> { _system_call + 0xe8 } RTS

As said, it happens with a source file consisting of only int main()
{return 0;} and a compiler invocation as simple as

  bfin-linux-uclibc-gcc -L/usr/xenomai/lib -lpthread_rt -pthread
     -Wl,@/usr/xenomai/lib/posix.wrappers main.c -o main

Any idea?

Thanks!
Kolja



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2009-08-05 22:12 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24 16:13 [Xenomai-help] POSIX skin/Blackfin: SIGSEGV when stracing or gdb'ing Kolja Waschk
2009-07-24 16:30 ` Philippe Gerum
2009-07-24 16:33   ` Philippe Gerum
2009-07-24 16:46     ` Philippe Gerum
2009-07-24 17:33   ` Waschk,Kolja
2009-07-24 18:50     ` Philippe Gerum
2009-07-24 21:09       ` Waschk,Kolja
2009-07-25 10:33         ` Philippe Gerum
2009-07-28 17:12           ` Waschk,Kolja
2009-07-29  8:23             ` Philippe Gerum
2009-07-29 10:12               ` [Xenomai-help] Stack sizes etc. (Re: POSIX skin/Blackfin: SIGSEGV when stracing or gdb'ing) Kolja Waschk
2009-07-29 11:40                 ` Kolja Waschk
2009-07-29 16:05                   ` Philippe Gerum
2009-07-29 20:55                     ` Waschk,Kolja
2009-08-02 17:53                       ` Philippe Gerum
2009-08-03  8:22                       ` Philippe Gerum
2009-08-03 10:42                         ` Kolja Waschk
2009-08-03 17:29                         ` Kolja Waschk
2009-08-03 17:34                           ` Philippe Gerum
2009-08-03 17:37                             ` Philippe Gerum
2009-08-05 11:58                           ` Philippe Gerum
2009-08-05 20:37                             ` Waschk,Kolja
2009-08-05 22:12                               ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.