From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2286 invoked by alias); 11 Oct 2013 08:18:49 -0000 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 Received: (qmail 2272 invoked by uid 89); 11 Oct 2013 08:18:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_50 autolearn=ham version=3.3.2 X-HELO: sam.nabble.com Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 11 Oct 2013 08:18:47 +0000 Received: from tom.nabble.com ([192.168.236.105]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VUXvo-0003z0-5j for ecos-discuss@ecos.sourceware.org; Fri, 11 Oct 2013 01:18:44 -0700 Date: Fri, 11 Oct 2013 08:18:00 -0000 From: Daniel Zebralla To: ecos-discuss@ecos.sourceware.org Message-ID: <1381479524136-247044.post@n7.nabble.com> In-Reply-To: <1380531306664-245720.post@n7.nabble.com> References: <1380531306664-245720.post@n7.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [ECOS] Re: CyaSSL library port (WIP): Space for struct corrupts other eCos-data in RAM X-SW-Source: 2013-10/txt/msg00004.txt.bz2 I now solved the problem by putting all CyaSSL-related stuff and tests into an individual thread: void create_TLS_thread(void) { cyg_mutex_init(&cliblock_TLS); cyg_thread_create( TLS_THREAD_PRIOTITY, TLS_communication, (cyg_addrword_t) 1, "TLS Communication", (void *) tls_stack, sizeof(tls_stack), &TLS_Thread, &thread_tls ); cyg_thread_resume(TLS_Thread); printf("TLS-Thread created!\n"); } Suddenly, all tests complete successfully and no memory is corrupted. Is there some general rule of thumb, that one should not do memory-intensive work in the 'main'-thread? Regards - Daniel -- View this message in context: http://sourceware-org.1504.n7.nabble.com/CyaSSL-library-port-WIP-Space-for-struct-corrupts-other-eCos-data-in-RAM-tp245720p247044.html Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss