delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/09/00:16:16

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=LXyd8Nu2qItxGdS0YW7F/dH9tn1Bx
vRg8GGt5BlfCp4LW0i6JqPul/XmbC44eyhTATbTrbV9qO4+z/xsv0K/j6nFyjeb4
gchQb9IANTlda3IecD28wqmdGHKMk89KmSIvlh8C6vBhfCfKQVLWPsmIeLtQJisd
cQ2cM0+PekUH/s=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=QgSm6Ki6nBcc/1/HrkDWMme5SA8=; b=unL
qbCfmXC4caM00RBt7ORCfaNiqdYzgaCXZFtWCplG64G/vCJz8MeJ5h8v/A8Evf1f
NysYP//u8tJYAUhbz/u2Gzj4ddfQaB8IoQMVO/qFYjYvgZcWx9Dv4DmWn9pzPNk2
bOG/FU+vWMofPhZ2+hnme+N1jvv/j7LLmE9ji9BE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=27th, reto, online, sept
X-HELO: mail-oi0-f41.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nr6u2lAALX2QEi7Y/ri8D7uhj0+JiY9zdlt4f7lNvX0=; b=CFI+iHaSH8xyWc/1H+C72c1AWn0ZulnL9e+qPUy4rvsmU5U/jmVU1HLrfFaFWmvMGx FMBB6crdKarPloi6iyhJsTLcC3/0RWQJFxSN1ap8Ob/R/4G8aQbhrG5NGazHgMzKj/nf pMGoOZYjnaHAHrv9FECDWsF1P54EEs/Rey3hJJ0a+Sf2Bouh7IVMXbwSyQalIaLzFetQ ug3Kazfc8Icro9esROuVSRSfWl5agFNxxS6RD4jC9vbUT7D+jVB7iYlQN1U/9dpgG/Ab nYQv9bjVN0D/VXZdNNWCZIyy1bbCbiCJdyb5fHlneqlud5l6NjDTQyuIELnO0D3HKYKg fL/w==
X-Gm-Message-State: AE9vXwNp3myuGtpLVhy+D19XhBmRYkJ1Aw6e/51Ytw8X++XMo1MpSBJRI2NCCCaGg5b5rFxof4KEHseg41WciQ==
X-Received: by 10.202.71.80 with SMTP id u77mr1986667oia.153.1473394545972; Thu, 08 Sep 2016 21:15:45 -0700 (PDT)
MIME-Version: 1.0
From: Reto Huber <rh03260503 AT gmail DOT com>
Date: Fri, 9 Sep 2016 06:15:45 +0200
Message-ID: <CABo5xTrsEjGug4rZYmCsksK4NfHSqppuegtT6Gqtot+E+CpwRg@mail.gmail.com>
Subject: gdb : Exception in SetThreadName(unsigned long, char const*) () from /usr/bin/cygwin1.dll
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

Hi

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


rh AT pc /d/gdbTest
$ cat main.cpp
#include <stdio.h>

int main(void)
{
  printf("Hello World\n");
  return 0;
}


rh AT pc /d/gdbTest
$ g++ -std=gnu++11 -g -O0 -pipe -Wall -Wno-unused-local-typedefs
-Wpointer-arith -Woverloaded-virtual -MMD -MP main.cpp -o main.exe


rh AT pc /d/gdbTest
$ ./main.exe
Hello World


rh AT pc /d/gdbTest
$ gdb main.exe
GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from main.exe...done.
(gdb) r
Starting program: /d/gdbTest/main.exe
[New Thread 11608.0x2e20]
[New Thread 11608.0x1b3c]
gdb: unknown target exception 0x406d1388 at 0x7639c54f

Program received signal ?, Unknown signal.
0x7639c54f in RaiseException () from /c/Windows/syswow64/KERNELBASE.dll
(gdb) bt
#0  0x7639c54f in RaiseException () from /c/Windows/syswow64/KERNELBASE.dll
#1  0x61081614 in SetThreadName(unsigned long, char const*) () from
/usr/bin/cygwin1.dll
#2  0x61004a6b in cygthread::create() () from /usr/bin/cygwin1.dll
#3  0x61004b5f in cygthread::async_create(unsigned long) () from
/usr/bin/cygwin1.dll
#4  0x77e154f6 in ntdll!RtlRemoveVectoredExceptionHandler () from
/c/Windows/SysWOW64/ntdll.dll
#5  0x77dc005d in ntdll!KiUserApcDispatcher () from
/c/Windows/SysWOW64/ntdll.dll
#6  0x61004b50 in cygthread::create() () from /usr/bin/cygwin1.dll
#7  0x75dbb2b7 in ?? ()
#8  0x77ea021c in ntdll!NlsAnsiCodePage () from /c/Windows/SysWOW64/ntdll.dll
#9  0x007eb720 in ?? ()
#10 0x77dda1c9 in ntdll!LdrInitializeThunk () from /c/Windows/SysWOW64/ntdll.dll
#11 0x00000000 in ?? ()
(gdb)

Versions: (Downloaded 7. Sept 2016)
GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
g++ (GCC) 5.4.0
cygwin1.dll: File Version 2.6.0, APIVersion 0.304

The versions before the update were: (Downloaded 27. July 2016)
GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
g++ (GCC) 5.4.0
cygwin1.dll: File Version 2.5.2, APIVersion 0.297

If I run the same procedure as mentioned above using the version from
July 27th it works.

Can you give me a hint how I can fix it? Can anyone reproduce the issue?

Thanks in advance for help
Reto

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019