From: Reto Huber <rh03260503@gmail.com>
To: cygwin@cygwin.com
Subject: gdb : Exception in SetThreadName(unsigned long, char const*) () from /usr/bin/cygwin1.dll
Date: Fri, 09 Sep 2016 04:15:00 -0000 [thread overview]
Message-ID: <CABo5xTrsEjGug4rZYmCsksK4NfHSqppuegtT6Gqtot+E+CpwRg@mail.gmail.com> (raw)
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@pc /d/gdbTest
$ cat main.cpp
#include <stdio.h>
int main(void)
{
printf("Hello World\n");
return 0;
}
rh@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@pc /d/gdbTest
$ ./main.exe
Hello World
rh@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
next reply other threads:[~2016-09-09 4:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-09 4:15 Reto Huber [this message]
2016-09-10 11:40 ` Jon Turney
2016-09-12 6:01 ` Reto
2016-10-20 14:08 ` Jon Turney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABo5xTrsEjGug4rZYmCsksK4NfHSqppuegtT6Gqtot+E+CpwRg@mail.gmail.com \
--to=rh03260503@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).