From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26861 invoked by alias); 21 Jul 2009 09:41:26 -0000 Received: (qmail 26853 invoked by uid 22791); 21 Jul 2009 09:41:26 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mtaout02-winn.ispmail.ntl.com (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Jul 2009 09:41:17 +0000 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090721094114.YXWH6611.mtaout02-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com>; Tue, 21 Jul 2009 10:41:14 +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 <20090721094114.PMC21638.aamtaout02-winn.ispmail.ntl.com@cog.dallaway.org.uk>; Tue, 21 Jul 2009 10:41:14 +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 n6L9fBQZ031169; Tue, 21 Jul 2009 10:41:11 +0100 Message-ID: <4A658D37.9050101@dallaway.org.uk> Date: Tue, 21 Jul 2009 09:41: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: <4A65723C.2050407@dallaway.org.uk> 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/msg00183.txt.bz2 Mandeep Sandhu wrote: >>> 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. > > Ok. So the printf's would use the std in/out/err file descriptors offered > to the ecos process by Linux? printf() output should go to stdout by default. >> Which Linux distribution and version are you using? > > uname -a: > Linux mindstorm 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 > UTC 2009 i686 GNU/Linux >> 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. > > Just did that and it seems to work...though I don't see the printf's > on the console and the app does not exit! Running the "stdiooutput" test (without "--io") works for me on CentOS 5. Test output is on stdout and the test exits normally. 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