From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9721 invoked by alias); 27 Nov 2008 18:36:25 -0000 Received: (qmail 9713 invoked by uid 22791); 27 Nov 2008 18:36:25 -0000 X-Spam-Check-By: sourceware.org Received: from ns2.protei.ru (HELO mail.protei.ru) (195.239.28.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Nov 2008 18:35:50 +0000 Received: from lab111-2.protei (lab111-2 [10.0.0.5]) by mail.protei.ru (Postfix) with ESMTP id 7467560004CE for ; Thu, 27 Nov 2008 21:35:47 +0300 (MSK) Received: from [192.168.100.182] (nickolay.protei [192.168.100.182]) by lab111-2.protei (Postfix) with ESMTP id 70255808BBAE for ; Thu, 27 Nov 2008 21:35:47 +0300 (MSK) Message-ID: <492EE883.4040301@protei.ru> Date: Thu, 27 Nov 2008 18:36:00 -0000 From: Nickolay Vinogradov User-Agent: Thunderbird 1.5.0.9 (X11/20061222) MIME-Version: 1.0 To: gdb@sourceware.org Subject: backtracing threaded ARM core Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00162.txt.bz2 Hi, I'm having trouble with backtracing threaded ARM applications. My simple application create thread, which call func1() -> func2() -> func3() and then sleep(); If I kill this thread(with SEGV) while sleep, and look with gdb, I see only last function nanosleep(), and unknown __pthread_enable_asynccancel(). (gdb) bt #0 0x01d4cde4 in nanosleep () #1 0x01d4be5c in __pthread_enable_asynccancel () at cancellation.c:42 #2 0xbee4d9b4 in ?? () Current language: auto; currently asm When sleep() replaced in the code with while(1), then I can see the full backtrace: #0 0x00008260 in func3 (a=) at core_test.cpp:66 #1 0x0000826c in func2 (a=0x492edfa7) at core_test.cpp:57 #2 0x0000828c in func1 (a=0x492edfa7) at core_test.cpp:49 #3 0x000082c4 in ThreadFunction () at core_test.cpp:45 #4 0x00008908 in start_thread (arg=) at pthread_create.c:300 #5 0x00026770 in clone () Backtrace stopped: frame did not save the PC Repeated with: gcc-4.2.1(armv5b-softfloat-linux) + glibc-2.5 gcc-4.3.2(armeb-none-linux-gnueabi) + glibc-2.8 Could you please help me out ? -- Nickolay VInogradov