This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: "hello world" example crashes on synthetic linux target
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Bart Veer <bartv at ecoscentric dot com>
- Cc: jufi8ni02 at sneakemail dot com, ecos-discuss at sources dot redhat dot com
- Date: Fri, 7 Jan 2005 10:26:37 +0100
- Subject: Re: [ECOS] "hello world" example crashes on synthetic linux target
- References: <7924-08284@sneakemail.com> <20050107090642.97C48EC102@delenn.bartv.net>
On Fri, Jan 07, 2005 at 09:06:42AM +0000, Bart Veer wrote:
> >>>>> "Tom" == jufi8ni02 <jufi8ni02@sneakemail.com> writes:
>
> Tom> Folks,
>
> Tom> I'm compiling the hello.c example provided with eCos, using
> Tom> the linux synthetic target (default template).
>
> Tom> When I run the resulting object, it prints "Hello, eCos
> Tom> world!" then throws core.
>
> Tom> gdb reports:
>
> Tom> Program received signal SIGSEGV, Segmentation fault.
> Tom> 0x00000420 in ?? ()
> Tom> (gdb) where
> Tom> #0 0x00000420 in ?? ()
> Tom> #1 0x01003394 in idle_thread_main (data=0)
> Tom> at /home/spon/Work/RTOS/eCos_from_source_attempt_2/ecos/packages/kernel/current/src/common/thread.cxx:1245
> Tom> #2 0x01003051 in Cyg_HardwareThread::thread_entry (thread=0x0)
> Tom> at /home/spon/Work/RTOS/eCos_from_source_attempt_2/ecos/packages/kernel/current/src/common/thread.cxx:109
> Tom> #3 0x00000000 in ?? ()
>
> Tom> Now, I'm aware that this isn't a big problem of itself - who
> Tom> cares if the example program doesn't work? But I'd like to
> Tom> know what's going on here - how do I go about resolving this
> Tom> problem?
>
> Is this with a recent kernel? There has been a change somewhere in the
> Linux kernel's signal handling. When the synthetic target's SIGALRM
> handler returns back to the Linux kernel it will give a SEGV, like the
> above. The same eCos executable running on an older Linux kernel works
> fine. I have not yet tracked down exactly what has changed.
Hi Bart
I'd not noticed this. My 2.6.10 kernel seems to work fine with
eCos. Is this a problem with a specific vendor kernel? Plain 2.4?
Thanks
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss