From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15974 invoked by alias); 7 Feb 2013 05:52:18 -0000 Received: (qmail 15959 invoked by uid 22791); 7 Feb 2013 05:52:16 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-oa0-f51.google.com (HELO mail-oa0-f51.google.com) (209.85.219.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Feb 2013 05:52:11 +0000 Received: by mail-oa0-f51.google.com with SMTP id h2so2421641oag.38 for ; Wed, 06 Feb 2013 21:52:11 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.32.134 with SMTP id j6mr90580oei.15.1360216331298; Wed, 06 Feb 2013 21:52:11 -0800 (PST) Received: by 10.76.168.36 with HTTP; Wed, 6 Feb 2013 21:52:11 -0800 (PST) Date: Thu, 07 Feb 2013 05:52:00 -0000 Message-ID: From: Elad Yosef To: eCos Discussion Content-Type: text/plain; charset=ISO-8859-1 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: [ECOS] Bad ASSERT check in check_stack? X-SW-Source: 2013-02/txt/msg00008.txt.bz2 Hi all, I get the following assert ("ptr below base") in my application (I added the prints before the assert) stack_base 0x80045a88 base 0x80045a68 stack_ptr 0x80045a30 top 0x80046048 ASSERT FAIL: thread.inl [ 112] () The faulty thread is B(ETH) but the stack_base belongs to the idle thread. in addition the TRACE_PRINT() that prints the threads info prints different data Idle Thread pri = 31 state = R id = 1 stack base = 80045a68 ptr = 80045b28 size = 00000600 sleep reason NONE wake reason NONE queue = 00000000 wait info = 00000000 ********************************************************************************************************** I checked the location of the "stack_ptr 0x80045a30" it is located in inside the idle_thread object. The idle thread stack is located after the thread object. I'm wondering if this assert is doing it's job? It looks like the the "stack_base" is checked against some random "stack_ptr" value. Any ideas? thanks Elad -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss