delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/05/25/12:04:11

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=GNJKY9To7r7n2md9sYRs3LeaCqz4T
ef3W9fScRs/nX6n4d9GONCXgxNDJiZU8UqhwtP3b5AI4HpRIs9Wx7Djg0khRUVzB
AGhpEXlg2vFsJEsmc6GYCOnbR6x/gbQXhPknPFNpNScHfITnh2llbTShbNd5XS2i
kJ9N2Cppe0Jnko=
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=sMHsEJg4c/Ec14iuOW6Bp4Vy7T8=; b=KHn
bAtY3tDMD1BD3pYGYiCqfZQqPQTLVobsZYoTnysocKjxT7llYNA8xSS0D3pct2wV
ST0sM8a0GrpUWCGhFL6F/xDGMLNJKThIjWI7n77vlZPFCAmdC6vl2emFCq0JGhv4
5ZbJYCezX7ZygHsCyZzAyW9fCTj8xlWIVQemSvUw=
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-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=click, HX-Received:Sat
X-HELO: mail-it1-f173.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iastate.edu; s=google20150603; h=mime-version:from:date:message-id:subject:to; bh=Y8vI/xRqubNX5KZqQh4CLFK/NGzWSUSGU8SQLUfUIss=; b=eKcchkUiB5jZ3Bu1OgurV08IHOej0ACe92g7y2v4hC34DYcWnkcwOpyq66Z28jSvHK GB/VgaQ+e5e8A7DeyBlCK2hAQGsFhcCOQCao4gIqoFqlgx1s0qqO3EMRvQKxgTI5n8/v +TinLVrtG/ZJBTMCyL8H+6r3ECQyoQLN0+w84=
MIME-Version: 1.0
From: Raj Kumar <gaurav AT iastate DOT edu>
Date: Sat, 25 May 2019 11:03:45 -0500
Message-ID: <CAECqvgfWPBo0VmYk=EG14vQkK-L7f4zGZ==pv-jSMt31vhavZw@mail.gmail.com>
Subject: Cygwin debugger crashes every time on following a unique_ptr
To: cygwin AT cygwin DOT com

--00000000000068384d0589b87614
Content-Type: text/plain; charset="UTF-8"

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
environment, this is what is happening:

A dummy example code has been attached. In the example, on line 17 in
main.cpp, you can see that in the Variables tab, the currentPassengers
vector<>() is populated correctly. But when I right click on
currentPassengers and select "Add to Watches", the entire debugger
crashes. The same thing happens when I hover over the variable names
in the code to get the values.


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.


Gaurav
515-357-3480
MS-CS, Iowa State University

--00000000000068384d0589b87614
Content-Type: application/octet-stream; name="main.cpp"
Content-Disposition: attachment; filename="main.cpp"
Content-Transfer-Encoding: base64
Content-ID: <f_jw3pefqc0>
X-Attachment-Id: f_jw3pefqc0

I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVk
ZSA8bWVtb3J5PgojaW5jbHVkZSAiVmVoaWNsZS5oIgoKdXNpbmcgbmFtZXNw
YWNlIHN0ZDsKCmludCBtYWluKCkgewoKICAgIHVuaXF1ZV9wdHI8VmVoaWNs
ZT4gbXlDYXIgPSBtYWtlX3VuaXF1ZTxWZWhpY2xlPigpOwogICAgbXlDYXIt
PnNldFBhc3NlbmdlckNhcGFjaXR5KDQpOwoKICAgIG15Q2FyLT5hZGRQYXNz
ZW5nZXIoIkFsaWNlIik7CiAgICBteUNhci0+YWRkUGFzc2VuZ2VyKCJCb2Ii
KTsKICAgIG15Q2FyLT5hZGRQYXNzZW5nZXIoIkNoYXJsaWUiKTsKCiAgICBm
b3IoaW50IGkgPSAwOyBpIDwgbXlDYXItPmN1cnJlbnRQYXNzZW5nZXJzLnNp
emUoKTsgaSsrKXsKICAgICAgICBjb3V0IDw8IG15Q2FyLT5jdXJyZW50UGFz
c2VuZ2Vyc1tpXTsKICAgIH0KCgogICAgcmV0dXJuIDA7Cn0=

--00000000000068384d0589b87614
Content-Type: application/octet-stream; name="Vehicle.h"
Content-Disposition: attachment; filename="Vehicle.h"
Content-Transfer-Encoding: base64
Content-ID: <f_jw3pefqu2>
X-Attachment-Id: f_jw3pefqu2

Ly8NCi8vIENyZWF0ZWQgYnkgcmFqZ2Egb24gNS8yNC8yMDE5Lg0KLy8NCg0K
I2lmbmRlZiBURVNUQkVEX1ZFSElDTEVfSA0KI2RlZmluZSBURVNUQkVEX1ZF
SElDTEVfSA0KDQojaW5jbHVkZSA8aW9zdHJlYW0+DQojaW5jbHVkZSA8c3Ry
aW5nPg0KI2luY2x1ZGUgPHN0cmluZy5oPg0KI2luY2x1ZGUgPHZlY3Rvcj4N
Cg0KdXNpbmcgbmFtZXNwYWNlIHN0ZDsNCg0KDQpjbGFzcyBWZWhpY2xlIHsN
Cg0KcHJpdmF0ZToNCiAgICBpbnQgbm9PZldoZWVsczsNCiAgICBpbnQgcGFz
c2VuZ2VyQ2FwYWNpdHk7DQoNCnB1YmxpYzoNCg0KICAgIHZlY3RvcjxzdHJp
bmc+IGN1cnJlbnRQYXNzZW5nZXJzOw0KICAgIHZvaWQgZ2V0UGFzc2VuZ2Vy
Q2FwYWNpdHkoKTsNCiAgICB2b2lkIHNldFBhc3NlbmdlckNhcGFjaXR5KGlu
dCBrKTsNCiAgICB2b2lkIGdldEN1cnJlbnRQYXNzZW5nZXJzKCk7DQogICAg
dm9pZCBhZGRQYXNzZW5nZXIoc3RyaW5nIHMpOw0KDQp9Ow0KDQoNCiNlbmRp
ZiAvL1RFU1RCRURfVkVISUNMRV9IDQo=

--00000000000068384d0589b87614
Content-Type: application/octet-stream; name="Vehicle.cpp"
Content-Disposition: attachment; filename="Vehicle.cpp"
Content-Transfer-Encoding: base64
Content-ID: <f_jw3pefqp1>
X-Attachment-Id: f_jw3pefqp1

Ly8NCi8vIENyZWF0ZWQgYnkgcmFqZ2Egb24gNS8yNC8yMDE5Lg0KLy8NCg0K
I2luY2x1ZGUgIlZlaGljbGUuaCINCiNpbmNsdWRlIDxpb3N0cmVhbT4NCg0K
dXNpbmcgbmFtZXNwYWNlIHN0ZDsNCg0Kdm9pZCBWZWhpY2xlOjpnZXRQYXNz
ZW5nZXJDYXBhY2l0eSgpew0KICAgIGNvdXQgPDwgIlRoZSBwYXNzZW5nZXIg
Y2FwYWNpdHkgaXM6ICIgPDwgdGhpcy0+cGFzc2VuZ2VyQ2FwYWNpdHkgPDwg
ZW5kbDsNCn0NCg0Kdm9pZCBWZWhpY2xlOjpzZXRQYXNzZW5nZXJDYXBhY2l0
eShpbnQgayl7DQoNCiAgICB0aGlzLT5wYXNzZW5nZXJDYXBhY2l0eSA9IGs7
DQogICAgY291dCA8PCAiVGhlIHBhc3NlbmdlciBjYXBhY2l0eSBpcyBjaGFu
Z2VkIHRvOiAiIDw8IHRoaXMtPnBhc3NlbmdlckNhcGFjaXR5IDw8IGVuZGw7
DQp9DQoNCnZvaWQgVmVoaWNsZTo6Z2V0Q3VycmVudFBhc3NlbmdlcnMoKXsN
Cg0KICAgIGNvdXQgPDwgIkN1cnJlbnQgcGFzc2VuZ2VycyBhcmU6ICIgPDwg
ZW5kbDsNCiAgICBmb3IoaW50IGkgPSAwOyBpIDwgdGhpcy0+Y3VycmVudFBh
c3NlbmdlcnMuc2l6ZSgpOyBpKyspew0KICAgICAgICBjb3V0IDw8IHRoaXMt
PmN1cnJlbnRQYXNzZW5nZXJzW2ldIDw8IGVuZGw7DQogICAgfQ0KfQ0KDQp2
b2lkIFZlaGljbGU6OmFkZFBhc3NlbmdlcihzdHJpbmcgcyl7DQoNCiAgICBp
Zih0aGlzLT5jdXJyZW50UGFzc2VuZ2Vycy5zaXplKCkgPCB0aGlzLT5wYXNz
ZW5nZXJDYXBhY2l0eSl7DQogICAgICAgIHRoaXMtPmN1cnJlbnRQYXNzZW5n
ZXJzLnB1c2hfYmFjayhzKTsNCiAgICAgICAgZ2V0Q3VycmVudFBhc3Nlbmdl
cnMoKTsNCiAgICB9ZWxzZXsNCiAgICAgICAgY291dCA8PCAiVmVoaWNsZSBm
dWxsISEiIDw8IGVuZGw7DQogICAgfQ0KDQoNCn0=


--00000000000068384d0589b87614
Content-Type: text/plain; charset=us-ascii


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

- Raw text -


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