From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95764 invoked by alias); 20 Oct 2016 13:52:36 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 95748 invoked by uid 89); 20 Oct 2016 13:52:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Today, reto, Hx-spam-relays-external:ESMTPA X-HELO: out1-smtp.messagingengine.com Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Oct 2016 13:52:25 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 349C42075C for ; Thu, 20 Oct 2016 09:52:24 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 20 Oct 2016 09:52:24 -0400 Received: from [192.168.1.102] (host31-51-206-201.range31-51.btcentralplus.com [31.51.206.201]) by mail.messagingengine.com (Postfix) with ESMTPA id D0FAAF29CB for ; Thu, 20 Oct 2016 09:52:23 -0400 (EDT) Subject: Re: gdb : Exception in SetThreadName(unsigned long, char const*) () from /usr/bin/cygwin1.dll References: <48e78f73-875e-42db-f9a9-4d4d445799ed@dronecode.org.uk> To: cygwin@cygwin.com From: Jon Turney Message-ID: <13601a36-3e6f-7201-acb2-533a1a145de4@dronecode.org.uk> Date: Thu, 20 Oct 2016 14:08:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <48e78f73-875e-42db-f9a9-4d4d445799ed@dronecode.org.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-10/txt/msg00244.txt.bz2 On 10/09/2016 12:39, Jon Turney wrote: > On 09/09/2016 05:15, Reto Huber wrote: >> I am using cygwin for quite a while. Yesterday I did update. >> Everything seemed to work smooth. Today I figured out that gdb does no >> longer work debugging my project. Even a simple "Hello World" can not >> be debugged anymore. The executable itself runs ok. Here the example > > Thanks for reporting this problem, and the test case. > >> gdb: unknown target exception 0x406d1388 at 0x7639c54f >> >> Program received signal ?, Unknown signal. > > This is related to the thread name support added in 2.6.0 > > The exception used to pass the thread name to the debugger is supposed > to be caught internally if the debugger doesn't handle it, but this > doesn't seem to be working correctly on x86. I have applied a fix for this. >> Can you give me a hint how I can fix it? Can anyone reproduce the issue? > > At the moment, the workaround would be to downgrade to Cygwin 2.5.2, or > to update to the gdb 7.11.1-1 test release (which has explicit handling > for these thread naming exceptions) So the combination of x86, gdb 7.10.1-1, and Cygwin snapshot 2016-10-20 or later should also work. -- 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