From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23517 invoked by alias); 10 Mar 2011 19:47:57 -0000 Received: (qmail 23509 invoked by uid 22791); 10 Mar 2011 19:47:56 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-vx0-f177.google.com (HELO mail-vx0-f177.google.com) (209.85.220.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Mar 2011 19:47:52 +0000 Received: by vxd2 with SMTP id 2so1990760vxd.36 for ; Thu, 10 Mar 2011 11:47:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.182.200 with SMTP id cd8mr2386973vcb.22.1299786470125; Thu, 10 Mar 2011 11:47:50 -0800 (PST) Received: by 10.220.170.67 with HTTP; Thu, 10 Mar 2011 11:47:50 -0800 (PST) Date: Thu, 10 Mar 2011 19:47:00 -0000 Message-ID: Subject: Set stack size for main From: Michael Bergandi To: eCos Developer List Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-03/txt/msg00001.txt.bz2 Hi all, I have a test app that seems to crash in random locations. After probing with gdb for a bit, it appears that an interupt occurs at some point and then the app crashes with: ASSERT FAIL: <3240>sched.cxx[160]static void Cyg_Scheduler::unlock_inner() Bad current thread I am thinking that this is probably a corrupt stack problem, but I am not sure how to know for sure. Assuming it is a stack problem and it is just too small, can someone explain how I can set/check the stack size of main()? Thanks, -- Mike