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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=FX rXBehymZbKaGzGgs6iEsn4Md+JcepsZ8/GmvtGYI7zvXaLq/zBnzOiGYqKAEvZK7 k5Dr8ix1ADwcPRaHJEQ7h26ns6+jzc3MfukS2XymYej5lT3T0pqGjs7sIT/j4EqW Vu2PHcfnRH843DA0LZOZ5nx0itmVusSX5rXfEqydo= 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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=sFzH+4h/ +LXOOAsHREbMmwqV2ZA=; b=CsGVEeutIOhi1uNpENxpRfRV+3PdEaaCj8vGE7PD 3vO5o4PZfFo4zIptk9luqS6v7u6QJxUfuFhOxg5D6706EkHjmerAg+1p526ihZcA YAlIehzjJt9d7f8vETqyYeKfQS9FN/5TU4rgN7hmjLk6xCO09kpzAXwmuf6CYlKc dU4= 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=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f65.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=gY1wDeL9kgQHtD60Mk7ck4deMnf8bacTxNqO6KvbKGw=; b=VDu3hbP+GZ0/cCLa0yu1/0WPx4sx1g2Jpmh3TqIjL3a071WVZM1+nebooQwQElAHAw V9d+PMZWtYjqNgv0bSGatceqPVmJpUaG1HkMyYuONqIHE4lNeGpuFwYgXM8z2csF6pDA DordI6rBe/9GrYEJQ7FBdIYcIo6jnepVn8znUKH51JOmXVXp7MUOXYkuduEZfgzO+84l /VjiGWGXHAAJNJWHZWxydyRhRQrQDl2ihdV1vBGM6gpzEiSCfRPeu9ZfYlXdRxyKD+0z z4D7hTKpFdHlvDayUpCGP+EYjCw/b7MSK4xFr2LYtKnc83EZsiNG7jbMIwFEwdSkApr3 I+kQ== X-Gm-Message-State: ALoCoQk44YItdR0S0nMWqDpBSYEmj+483d/kM94jcTUq5bJZOe5MWxOXwVPBZ/DFe0oO0F7gOzIp MIME-Version: 1.0 X-Received: by 10.113.10.164 with SMTP id eb4mr46287275lbd.9.1438278380610; Thu, 30 Jul 2015 10:46:20 -0700 (PDT) In-Reply-To: <55BA373A.4020909@dronecode.org.uk> References: <55BA373A DOT 4020909 AT dronecode DOT org DOT uk> Date: Thu, 30 Jul 2015 10:46:20 -0700 Message-ID: Subject: Re: Analyzing a SEG FAULT that gdb doesn't help with From: Michael Enright To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes On Thu, Jul 30, 2015 at 7:39 AM, Jon TURNEY wrote: > You need to install the 'cygwin-debuginfo' package for debug symbols for > cygwin1.dll I missed this in my searches. I see now that I should have used the "debug" category. > > 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) I've been having trouble getting that number right > > # 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 Another problem is that there's only one stack frame in the stack dump, so knowing that it's a strlen just means I have to crank out some grep commands and hopefully one of them is vulnerable to a special case that now happens all the time. > > 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.) > The crashing executable is just a client of SpiderMonkey (via libmozjs185) with several extensions to JavaScript in order to emulate some of the Windows cscript utility and to emulate another environment that happens to be a massive annoyance to run scripts in. The executable is built using a textbook Makefile. -- 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