delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/22/21:02:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 22 Jan 2004 21:01:53 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: David Rothenberger <daveroth AT acm DOT org>
cc: cygwin AT cygwin DOT com
Subject: Re: bash, dircolors, setsid and a stackdump
In-Reply-To: <40107AD3.8070900@acm.org>
Message-ID: <Pine.GSO.4.56.0401222057490.21894@slinky.cs.nyu.edu>
References: <Law9-OE408FeHQYTTIA00007be5 AT hotmail DOT com> <40107AD3 DOT 8070900 AT acm DOT org>
MIME-Version: 1.0

On Thu, 22 Jan 2004, David Rothenberger wrote:

> Rafael Kitover wrote:
>
> > I would dearly love to know how you get those lovely line numbers in the
> > stackdump :)
>
> I used the unstripped DLL from my CVS build and then used addr2line on
> each function address in the stacktrace, specifying the DLL as the
> executable.  I.e.,
>
> addr2line -e /bin/cygwin1.dll <ADDRESS>
>
> I don't know whether it's necessary to be running the unstripped DLL when
> the stacktrace is generated, but I was.

It is.  If you think about it, it's rather obvious...  If you run one DLL
and then use another as the executable for addr2line, the addresses are
all going to be different.

> I have since discovered that while dircolors does cause the stackdump, the
> problem is not dircolors.  With that line commented from /etc/profile, I
> don't get a stackdump but the script does not complete its execution.

Hmm...  Note that to use the dircolors file, one needs to do a back-quote
substitution.  Just an observation.
	Igor

> I determined this by executing the script
>
> ---begin script---
> #!/bin/sh
> echo foo > t
> sleep 10
> ---end script---
>
> and noting that t was created but of zero length.
>
> Dave

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019