X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:reply-to:from:cc :message-id:date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=speYBmRSrLMgVttO UTpYLVvh6wMCi8nHFLI12htsWjretxO6n47NhRC5EukC7yRcsMyYNbtKFcieJCKk mtRHhzYRP736NWNX75QUEJ+5L1YXXlpAS+0aUBNZH66a6HzpHDoe2RjeFLNJMuHS 8HEF5uulkoxZAhvjn6Gob/frPFY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:reply-to:from:cc :message-id:date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=k43/F56GKyMc31UTduR4Yp C6xVw=; b=mCGygf+G/+K6CDufocFTevtcOjbxFCid2dERzZJfLkgMjKYaaAa0aw jlqpAmu8Q1AH1uyysx61x73U0uQGFvvs8c+odtbahNfr1y7Qa0DG1eapB4o8sLjr Q4HLpoHjRtplGQJqCDKKtEjS9HqIECFkM+fcUwO579Dq2fuHj1Mqc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: out4-smtp.messagingengine.com Subject: Re: Analyzing a SEG FAULT that gdb doesn't help with To: cygwin AT cygwin DOT com References: Reply-To: cygwin AT cygwin DOT com From: Jon TURNEY Cc: mike AT kmcardiff DOT com Message-ID: <55BA373A.4020909@dronecode.org.uk> Date: Thu, 30 Jul 2015 15:39:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 30/07/2015 00:16, Michael Enright wrote: > So I tried to addr2line /usr/bin/cygwin1.dll 6155d363 and I got > nothing (?? at ??:?) I then reviewed in setup-x86 the possible cygwin > packages to see if there was a missing package I could use to enable > cygwin1.dll's addresses to be translated but I didn't recognize > anything. You need to install the 'cygwin-debuginfo' package for debug symbols for cygwin1.dll You also need to point addr2line at those detached debug symbols, as (unlike gdb) it doesn't follow .gnu_debuglink pointers. (I'm assuming you've typoed 6155d363 here and it should be 0x6115D363 as the strace output says) # addr2line -e /usr/lib/debug/usr/bin/cygwin1.dbg 0x6115D363 /usr/src/debug/cygwin-2.1.0-1/newlib/libc/machine/i386/strlen.S:64 > 1) Why is it not the case that gdb handles this SEGV in the usual > manner? It too just allows the stackdump to be made and lets me know > that the inferior has run its course. This shouldn't happen. Are you sure the crashing process is the direct inferior of gdb, and not some wrapper process which runs it? (uninstalled libtool generated binaries do this, for e.g.) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple