X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Nicholas Sherlock Subject: Re: R: Segfault with call to pthread_mutexattr_init under GDB Date: Wed, 07 Oct 2009 20:43:27 +1300 Lines: 29 Message-ID: References: <855431 DOT 45788 DOT qm AT web25508 DOT mail DOT ukl DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051201 Thunderbird/1.5 Mnenhy/0.7.3.0 In-Reply-To: <855431.45788.qm@web25508.mail.ukl.yahoo.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: 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 Marco Atzeri wrote: >> Da: Nicholas Sherlock >> This GDB was configured as "i686-pc-mingw32"... > > Have you tried the cygwin gbd ? > > $ gcc-4 -o prova prova.c > > $ gdb prova.exe > GNU gdb 6.8.0.20080328-cvs (cygwin-special) > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "i686-pc-cygwin"... > (gdb) run > Starting program: /tmp/prova/prova.exe > > Program exited normally. Whoops! I thought that I *was* using Cygwin's GDB, but it turns out that I forgot to reinstall it last time I refreshed my Cygwin installation. I've been using MinGW's GDB without ever realizing it. I've now installed Cygwin's GDB, where it works perfectly. Thanks! Nicholas Sherlock -- 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