X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 	tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,TW_CG,TW_VP,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <v2x9d1cfe481004192319s5e32c785hf4f8b42d56712c57@mail.gmail.com>
References: <m2r9d1cfe481004181509tb0853403qf8129030c0059f00@mail.gmail.com> 	 <4BCBAFF0.9080701@gmail.com> 	 <20100419063229.GA26209@ednor.casa.cgf.cx> 	 <u2v9d1cfe481004190444la24cacabs4ac2ee530018b030@mail.gmail.com> 	 <4BCC6D32.4060708@cygwin.com> 	 <20100419174819.GA6110@ednor.casa.cgf.cx> 	 <v2x9d1cfe481004192319s5e32c785hf4f8b42d56712c57@mail.gmail.com>
Date: Tue, 20 Apr 2010 16:41:36 +0300
Received: by 10.204.38.82 with SMTP id a18mr2206484bke.126.1271770896627; Tue,  	20 Apr 2010 06:41:36 -0700 (PDT)
Message-ID: <s2z9d1cfe481004200641pa46a2c98s78bedf8be40e76ba@mail.gmail.com>
Subject: Re: 1.7.5: cygwin programs throw STATUS_ACCESS_VIOLATION exceptions
From: Yuval Emek <yuval.emek@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
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

Is it possible that this problem is somehow related to another problem
I'm experiencing, reported in
http://cygwin.com/ml/cygwin/2010-04/msg00797.html ?

On Tue, Apr 20, 2010 at 09:19, Yuval Emek  wrote:
> On Mon, Apr 19, 2010 at 20:48, Christopher Faylor wrote:
>> 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...> =A0wrote:
>>> =A0 =A0^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>><http://cygwin.com/acronyms/#PCYMTNQREAIYR>. =A0Feeding spammers just ma=
kes
>>>them hungry.
>>>
>>><snip>
>>>
>>>>> p.envptr is supposed to be filled in by the call to _cygwin_crt0_comm=
on
>>>>> in cygwin_attach_dll. =A0It is supposed to be set to the address of t=
he
>>>>> "environ" variable in the DLL. =A0It is not supposed to be NULL. =A0T=
hat
>>>>> assignment should actually not even be necessary but the fact that
>>>>> envptr may be NULL is a problem. =A0Of course, it could just be some
>>>>> non-NULL garbage too. =A0Running in gdb and getting a stack trace wou=
ld 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/>. =A0You want the DLL
>>>and debugging info at least.
>>
>> And, assuming that you can actually run gdb, just "gdb bash" and then "r=
".
>
> I installed gdb and then downloaded the (latest) snapshots of
> cygwin1.dll and cygwin1.dbg and extracted then to /bin/ (replacing the
> previous cygwin1.dll) .
> Running gdb bash seems to fail since there are no debugging symbols.
> In particular, when typing r in the gdb prompt, I get the following
> output:
>
> Starting program: /usr/bin/bash
> [New thread 3800.0x15b4]
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> [New thread 3800.0x13f4]
>
> [1]+ =A0Stopped =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 gdb bash
>
> (Makes sense, I guess, as bash was not compiled with debugging info.)
> Can I download debugging info for bash from somewhere? (As far as I
> understand, I don't even have the source code for bash.)
> Is there something else I can do?
>
>>
>> cgf
>>
>> --
>> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
>> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
>> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
>> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>>
>>
>

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

