From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25219 invoked by alias); 12 Apr 2012 09:44:52 -0000 Received: (qmail 25209 invoked by uid 22791); 12 Apr 2012 09:44:51 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-gx0-f169.google.com (HELO mail-gx0-f169.google.com) (209.85.161.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Apr 2012 09:44:26 +0000 Received: by ggeq1 with SMTP id q1so1127936gge.0 for ; Thu, 12 Apr 2012 02:44:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.3.18 with SMTP id f18mr441943ani.31.1334223866215; Thu, 12 Apr 2012 02:44:26 -0700 (PDT) Received: by 10.236.46.162 with HTTP; Thu, 12 Apr 2012 02:44:26 -0700 (PDT) Date: Thu, 12 Apr 2012 09:44:00 -0000 Message-ID: Subject: gdb and threads From: Folkert van Heusden To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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: 2012-04/txt/msg00079.txt.bz2 Hi, I'm trying to debug a mulithreaded application running on a multicore cpu. It is a C++ application which uses the new std::thread (which uses pthreads underneath). Now when my program gets a SIGSEGV, I can use 'bt' in gdb to get a backtrace. Can I be sure that the backtrace I get is the one from the thread causing the SIGSEGV? Thanks, Folkert. www.vanheusden.com