public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk>
To: Jaakov Jaakov <j_k_v@ro.ru>, cygwin@cygwin.com
Subject: Re: run.exe fails to start XWin on Windows 8.1 through the shortcut
Date: Tue, 18 Aug 2015 15:33:00 -0000	[thread overview]
Message-ID: <55D35033.5090109@dronecode.org.uk> (raw)
In-Reply-To: <55CB5887.2050607@dronecode.org.uk>

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

On 12/08/2015 15:30, Jon TURNEY wrote:
> On 12/08/2015 13:43, Jaakov Jaakov wrote:
[...]
>> The file C:\cygwin64\run.exe.stackdump is generated, containing
>> Stack trace:
> [...]
>
> mumble mumble abracadabra!

Just for the record, the primitive technology which is clearly 
distinguishable from magic, used to produce this backtrace from the 
stackdump, is the attached script.



[-- Attachment #2: stackdump2backtrace --]
[-- Type: text/plain, Size: 458 bytes --]

#!/bin/bash
STACKDUMP=$1
DBG1=/usr/lib/debug/usr/bin/cygwin1.dbg
DBG2=/usr/lib/debug/usr/bin/${STACKDUMP%.stackdump}.exe.dbg

awk '/^[0-9]/{print $2}' $STACKDUMP | while read addr
do
   output=`addr2line -asfiC -e $DBG1 $addr`
   echo $output | fgrep -q "??:0"
   if [ $? -eq 0 ] ; then
     output=`addr2line -asfiC -e $DBG2 $addr`
   fi

   IFS=$'\n' split=($output)
   echo ${split[0]} "|" ${split[length-2]} "|" ${split[length-1]}
done | column -t -s'|'

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
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

  parent reply	other threads:[~2015-08-18 15:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12 12:43 Jaakov Jaakov
2015-08-12 14:30 ` Jon TURNEY
2015-08-12 20:58   ` Achim Gratz
2015-08-13 10:10     ` Jon TURNEY
2015-08-13 17:57       ` Achim Gratz
2015-08-18 15:33   ` Jon TURNEY [this message]
2015-08-12 18:11 ` Achim Gratz
2015-08-13 20:11 ` Achim Gratz
     [not found] <1439479795.100500.ezmlm@cygwin.com>
2015-08-13 16:01 ` Jaakov
2015-08-14 20:15 Jaakov Jaakov
2015-08-15  6:40 ` Achim Gratz
2015-08-15 14:07 Jaakov Jaakov
2015-08-15 15:25 ` Achim Gratz
2015-08-15 15:44   ` Marco Atzeri
2015-08-15 16:41 Jaakov Jaakov
2015-08-15 19:08 ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55D35033.5090109@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin@cygwin.com \
    --cc=j_k_v@ro.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).