This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: SIGSEV, Segmentation Fault: When attempting to run "Hello World' on Synthetic Linux
- From: Bart Veer <bartv at ecoscentric dot com>
- To: makaveli_0000 at yahoo dot com
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: 10 Jan 2007 11:02:11 +0000
- Subject: Re: [ECOS] SIGSEV, Segmentation Fault: When attempting to run "Hello World' on Synthetic Linux
- References: <20070110013833.99903.qmail@web53112.mail.yahoo.com>
>>>>> "Klaus" == Klaus Nji <makaveli_0000@yahoo.com> writes:
Klaus> I have been able to compile the application, after running
Klaus> over several stumbling blocks. But when I run the 'Hello
Klaus> World' application from the command line, nothing happens.
Klaus> Running from gdb gives the following error:
Klaus> Program received signal SIGSEGV, Segmentation fault.
Klaus> _memcpy (s1=0x0, s2=0x1010218, n=2) at /opt/ecos/ecos-2.0/packages/infra/v2_0/src/memcpy.c:165
Klaus> Program was compiled using native gcc compiler and the i386
Klaus> pre-built version installed with eCOS to no avail. Running
Klaus> application gives same behaviour.
Klaus> I used the Synthetic Linux target with a default template
Klaus> to build the kernel. I had to delete the flag ' -finit
Klaus> priority' and remove a extra qualifier in thread.hxx
Klaus> (Cyg_Thread:: reinitialize) before the build would
Klaus> complete.
Klaus> Some details of the target:
Klaus> - Kernel version is 2.6.18.2-34
Klaus> - Linux Distro is a stripped down version of OpenSuse 10.2. (No GNOME, no KDE).
Klaus> - Processor is Pentium 3.
Klaus> I have been through the archives but could not find any
Klaus> related problem.
Klaus> What am I doing wrong?
I have not seen that specific error before (a memcpy() to location 0),
but it is not possible to use the eCos 2.0 synthetic target with
current Linux releases. There have been various incompatible changes
in Linux and gcc which have broken that version of the synthetic
target support. Instead you will have to use the current version of
eCos from anoncvs, see http://ecos.sourceware.org/anoncvs.html
Bart
--
Bart Veer eCos Configuration Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss