From: Philippe Gerum <rpm@xenomai.org>
To: xenoka09@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] POSIX skin/Blackfin: SIGSEGV when stracing or gdb'ing
Date: Fri, 24 Jul 2009 18:33:50 +0200 [thread overview]
Message-ID: <1248453230.3998.170.camel@domain.hid> (raw)
In-Reply-To: <1248453047.3998.168.camel@domain.hid>
On Fri, 2009-07-24 at 18:30 +0200, Philippe Gerum wrote:
> On Fri, 2009-07-24 at 18:13 +0200, Kolja Waschk wrote:
> > 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
>
> Might be a stack related issue, bit no proof of it so far.
>
> >
> > 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?
>
> To eliminate toolchain/dist issues, here is the combo that works for me
> (commit numbers from the relevant git trees):
>
> blackfin toolchain: ce79f3d5449c78877e66965584c55a132d73d4e1
> uclinux-dist: 2137ff7920b51643c5c84536fe99fe7c5904498a
> blackfin kernel: 015153eee3851d2c485a85814888f031f3794cf4
>
Forgot to mention:
http://download.gna.org/adeos/patches/v2.6/blackfin/adeos-ipipe-2.6.30.1-blackfin.git-ed2e9479-1.11-00.patch
on top of the blackfin kernel, and
git://xenomai.org/xenomai-head.git
(.../xenomai-2.4.git would do as well, though).
> How far are you from this setup?
>
> >
> > Thanks!
> > Kolja
> >
> >
> > _______________________________________________
> > Xenomai-help mailing list
> > Xenomai-help@domain.hid
> > https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
next prev parent reply other threads:[~2009-07-24 16:33 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1248453230.3998.170.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=xenoka09@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.