Re: Cygwin debugger crashes every time on following a unique_ptr

2019-05-26 Thread Jon Turney
On 25/05/2019 22:31, Mark Geisert wrote: Raj Kumar wrote: [...] Adding a watch is equivalent to when in the gdb window I try and do this: myCar.get()->currentPassengers. This crashes the GDB every time. So the issue occurs when I try to follow the object pointed to by a unique_ptr and try to get

Re: Cygwin debugger crashes every time on following a unique_ptr

2019-05-26 Thread Brian Inglis
On 2019-05-26 01:51, Mark Geisert wrote: > Mark Geisert wrote: >> I can confirm this issue.  The fault is reported by Cygwin's memcpy().  I'm >> having a heck of a time trying to get a gdb backtrace to show what in gdb >> itself >> is likely calling memcpy() with a bad arg. > This seems to be a re

Re: Cygwin debugger crashes every time on following a unique_ptr

2019-05-26 Thread Mark Geisert
Mark Geisert wrote: I can confirm this issue. The fault is reported by Cygwin's memcpy(). I'm having a heck of a time trying to get a gdb backtrace to show what in gdb itself is likely calling memcpy() with a bad arg. This seems to be a regression in gdb 8.1.1. If you downgrade to gdb 8.0.1

Re: Cygwin debugger crashes every time on following a unique_ptr

2019-05-25 Thread Mark Geisert
Raj Kumar wrote: [...] Adding a watch is equivalent to when in the gdb window I try and do this: myCar.get()->currentPassengers. This crashes the GDB every time. So the issue occurs when I try to follow the object pointed to by a unique_ptr and try to get its attributes/variables. I can confirm

Cygwin debugger crashes every time on following a unique_ptr

2019-05-25 Thread Raj Kumar
Hi, I use CLion for code development. I initially posted this bug there but they said that it is an issue with the Cygwin GDB, and hence I am sending this mail. I am using cygwin64 version 3.0.7 with Cygwin debugger version 8.1.1 Sample code to reproduce the code has been attached. In the Clion