X-Spam-Check-By: sourceware.org
Date: Sun, 28 May 2006 11:58:49 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Cygwin G++ bug? - Python Extension module #including <iostream>      dies  before initialization
Message-ID: <20060528155849.GC17542@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <44775331.4070809@ukf.net> <44786EAA.9020002@kleckner.net> <44787848.1BD5F4CF@dessent.net> <447886F9.7000806@kleckner.net> <4479C643.5020908@kleckner.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4479C643.5020908@kleckner.net>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
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 Sun, May 28, 2006 at 08:48:19AM -0700, Jim Kleckner wrote:
>Jim Kleckner wrote:
>>Brian Dessent wrote:
>>>As you can see, this all is contingent upon a program like GDB using
>>>the Windows debug API.  Without that, the entire issue is irrelevant,
>>>so I can't see how this possibly would apply to Python.
>>
>>Thanks for explaining how the Windows debug API is the one actually
>>catching the exception rather than GDB directly changing how exceptions
>>are caught.  This is useful.
>>
>>I will be surprised if there doesn't turn out to be some commonality
>>between the pthread_mutex_init issue and something Python is doing
>>either directly or via the use of dlopen().
>
>Indeed, cgf is a magician and his patch in snapshot *2006-05-27 appears
>to fix the signal handler issue for Python.  As mentioned in his patch
>message, this may fix the signal handler issues for many DLLs.
>
>Many many thanks.

I think the majority of the thanks should go to Gary Zablackis for
tracking down the problem and offering a preliminary patch.

Of course, it also helps that I just figured out how to easily look at
the exception handling table in gdb.

"info w32 selector" is your friend...

cgf

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

