From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18701 invoked by alias); 23 Jul 2009 11:45:26 -0000 Received: (qmail 18678 invoked by uid 22791); 23 Jul 2009 11:45:24 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f227.google.com (HELO mail-fx0-f227.google.com) (209.85.220.227) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Jul 2009 11:45:15 +0000 Received: by fxm27 with SMTP id 27so918863fxm.30 for ; Thu, 23 Jul 2009 04:45:11 -0700 (PDT) Received: by 10.204.118.69 with SMTP id u5mr2012183bkq.77.1248349511551; Thu, 23 Jul 2009 04:45:11 -0700 (PDT) Received: from smtp.gmail.com ([86.57.137.251]) by mx.google.com with ESMTPS id 31sm2597019fkt.43.2009.07.23.04.45.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Jul 2009 04:45:11 -0700 (PDT) Date: Thu, 23 Jul 2009 11:45:00 -0000 From: Sergei Gavrikov To: Mandeep Sandhu Cc: John Dallaway , eCos discuss list Message-ID: <20090723114517.GA7151@sg-ubuntu.local> References: <20090722141027.GA32164@sg-ubuntu.local> <20090723081957.GA23856@sg-ubuntu.local> <20090723094611.GA3583@sg-ubuntu.local> <20090723111115.GA5939@sg-ubuntu.local> <20090723112152.GA6447@sg-ubuntu.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes 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: Re: [ECOS] hello world app SEG faults with Linux synth target X-SW-Source: 2009-07/txt/msg00221.txt.bz2 On Thu, Jul 23, 2009 at 05:09:38PM +0530, Mandeep Sandhu wrote: > On Thu, Jul 23, 2009 at 4:51 PM, Sergei > Gavrikov wrote: > > On Thu, Jul 23, 2009 at 02:11:15PM +0300, Sergei Gavrikov wrote: > >> It's strange if stdiooutput ouputs, but hello. > >> > >> Try append in hello.c before to exit. > >> > >> fflush(stdout); > > > > I hope that your greeting is terminated by NL. Check it! If it is > > buffering issue, try > > > > fprintf(stderr, "hello, world!\n"); > > Awesome! Both the approaches worked! Thanks!!! > > The NL char was there i the original source though. Though there is no > buffering issue if we use the stderr stream. Why so? > > Should one of these stmts be put in the default hello.c file that > comes with ECOS? Do you think others might also face this issue? I am sorry, but, I did not meet the same report for synth target :-( Thank you for your persistence! We will know about (Ubuntu 9.04 + synth + stdio buffering). Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss