From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6739 invoked by alias); 21 Jul 2009 07:46:22 -0000 Received: (qmail 6727 invoked by uid 22791); 21 Jul 2009 07:46:19 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mtaout01-winn.ispmail.ntl.com (HELO mtaout01-winn.ispmail.ntl.com) (81.103.221.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Jul 2009 07:46:09 +0000 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090721074606.IIDD6742.mtaout01-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com>; Tue, 21 Jul 2009 08:46:06 +0100 Received: from cog.dallaway.org.uk ([86.9.207.237]) by aamtaout02-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090721074606.YVVV21638.aamtaout02-winn.ispmail.ntl.com@cog.dallaway.org.uk>; Tue, 21 Jul 2009 08:46:06 +0100 Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id n6L7k4ZI030113; Tue, 21 Jul 2009 08:46:04 +0100 Message-ID: <4A65723C.2050407@dallaway.org.uk> Date: Tue, 21 Jul 2009 07:46:00 -0000 From: John Dallaway User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: Mandeep Sandhu CC: ecos-discuss References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: hello world app SEG faults with Linux synth target X-SW-Source: 2009-07/txt/msg00177.txt.bz2 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