This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: hello world app SEG faults with Linux synth target
- From: John Dallaway <john at dallaway dot org dot uk>
- To: Mandeep Sandhu <mandeepsandhu dot chd at gmail dot com>
- Cc: ecos-discuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 21 Jul 2009 08:46:04 +0100
- Subject: [ECOS] Re: hello world app SEG faults with Linux synth target
- References: <b18c5f790907202330j1865f092vb3dbb1c25d5c2380@mail.gmail.com>
Hi Mandeep
Mandeep Sandhu wrote:
> My hello world app crashes with seg fault when I try to run it. Here's the o/p:
>
> mandeep@mindstorm:~/ecos/ecos-3.0/examples$ ./hello
> Segmentation fault
> mandeep@mindstorm:~/ecos/ecos-3.0/examples$ strace ./hello
> execve("./hello", ["./hello"], [/* 41 vars */]) = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
> mandeep@mindstorm:~/ecos/ecos-3.0/examples$
>
> Any clues how to fix this?
>
> How does the hello world app make use of the ecosynth app?
You should not need the I/O auxiliary process for a "hello world"
application.
Which Linux distribution and version are you using?
If you are running on Debian or Ubuntu, try adding
"-fno-stack-protector" to CYGBLD_GLOBAL_CFLAGS. Ref:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000801
You will need to "make clean" and rebuild eCos.
John Dallaway
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss