X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 19 Apr 2010 13:48:19 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 1.7.5: cygwin programs throw STATUS_ACCESS_VIOLATION exceptions
Message-ID: <20100419174819.GA6110@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <m2r9d1cfe481004181509tb0853403qf8129030c0059f00@mail.gmail.com>  <4BCBAFF0.9080701@gmail.com>  <20100419063229.GA26209@ednor.casa.cgf.cx>  <u2v9d1cfe481004190444la24cacabs4ac2ee530018b030@mail.gmail.com>  <4BCC6D32.4060708@cygwin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4BCC6D32.4060708@cygwin.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mon, Apr 19, 2010 at 10:48:18AM -0400, Larry Hall (Cygwin) wrote:
>On 4/19/2010 7:44 AM, Yuval Emek wrote:
>> On Mon, Apr 19, 2010 at 09:32, Christopher Faylor
>> <cgf-use-the-mailinglist-please...>  wrote:
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
><http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Feeding spammers just makes
>them hungry.
>
><snip>
>
>>> p.envptr is supposed to be filled in by the call to _cygwin_crt0_common
>>> in cygwin_attach_dll.  It is supposed to be set to the address of the
>>> "environ" variable in the DLL.  It is not supposed to be NULL.  That
>>> assignment should actually not even be necessary but the fact that
>>> envptr may be NULL is a problem.  Of course, it could just be some
>>> non-NULL garbage too.  Running in gdb and getting a stack trace would be
>>> instructive.
>>
>> Can you be more specific? (I have been using cygwin for a while, but I
>> never debugged it beforehand.)
>> I can install gdb using setup.exe . What should I do then in order to
>> obtain a stack trace?
>
>Grab a snapshot from <http://cygwin.com/snapshots/>.  You want the DLL
>and debugging info at least.

And, assuming that you can actually run gdb, just "gdb bash" and then "r".

cgf

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

