X-Spam-Check-By: sourceware.org Date: Sun, 28 May 2006 11:58:49 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Cygwin G++ bug? - Python Extension module #including dies before initialization Message-ID: <20060528155849.GC17542@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <44775331 DOT 4070809 AT ukf DOT net> <44786EAA DOT 9020002 AT kleckner DOT net> <44787848 DOT 1BD5F4CF AT dessent DOT net> <447886F9 DOT 7000806 AT kleckner DOT net> <4479C643 DOT 5020908 AT kleckner DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/