delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/09/12/14:03:04

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=Afl9pl
/Yyuh8WyurSEZ8H4g1aduh3WF+gjApJ4yc33s0UjmX9gcjectBVFCCd2p3bEishB
jiX8y5rs+eE2vFi/v+phof8QK/tX2GwKbrSjqsO82xjvf3qCSE2wccEV6/kOHifJ
uojw2ZIJOdHX6ha5eXBrBqZCHccNjVcqyCSLw=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=GqJFSp/uxwyw
v4LsQuHzmUfyUag=; b=tir4xCfaqCUsaGyyfaqJ7ylfriy/OMLRvqVvEK7jcuOm
3KCDIBP20sWKQUA0P2sdJw0NAluMTSTxvV8ImkmGKNyf/P+kkybzueWOI7TDnAF/
8z+VWrcrdKHx9maGxdjo680oxrvrx3H023GQGGJEfW/YFEvdXeUazblfF91hQFs=
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=-3.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: limerock04.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Message-ID: <54133542.80207@cornell.edu>
Date: Fri, 12 Sep 2014 14:02:42 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: glib errors with latest gdb
References: <53EB7607 DOT 3040004 AT cornell DOT edu> <20140813145714 DOT GK21106 AT calimero DOT vinschen DOT de> <20140828135712 DOT GV20700 AT calimero DOT vinschen DOT de>
In-Reply-To: <20140828135712.GV20700@calimero.vinschen.de>
X-IsSubscribed: yes

--------------010608050001020307050701
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Corinna,

On 8/28/2014 9:57 AM, Corinna Vinschen wrote:
> On Aug 13 16:57, Corinna Vinschen wrote:
>> On Aug 13 10:28, Ken Brown wrote:
>>> I'm getting errors with the latest gdb when trying to debug programs that
>>> depend on glib.  Here's an example, run from an xterm window:
>>>
>>> $ gdb /usr/bin/gvim
>>> GNU gdb (GDB) 7.8
>>> [...]
>>> Reading symbols from /usr/bin/gvim...(no debugging symbols found)...done.
>>> (gdb) r
>>> Starting program: /usr/bin/gvim
>>> [New Thread 4860.0x1b44]
>>> Traceback (most recent call last):
>>>    File "/usr/share/gdb/auto-load/usr/bin/cyggobject-2.0-0.dll-gdb.py", line
>>> 9, in <module>
>>>      from gobject import register
>>>    File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
>>>      import gdb.backtrace
>>> ImportError: No module named backtrace
>>
>> I see this error, too.  Unfortunately I'm not a python guru so this
>> is rather opaque to me.  gdb itself doesn't provide a gdb.backtrace
>> method, afaics.
>>
>> However, despite this message, gvim starts normally.  And emacs-nox as
>> well as many other CLI applications can be started just fine, too.
>>
>> But GDB hangs with emacs-X11 for some reason, even if I disable the
>> python modules.  From a quick GDB session it's not clear why this occurs :(
>
> I reported the problem upstream in a bugzilla entry already handling
> strange GDB hangs:
>
>    https://sourceware.org/bugzilla/show_bug.cgi?id=17247

That bug appears to be something different.  But I managed to fix the 
problem without actually understanding the code.  I looked at cgf's 
patches from his build of gdb-7.6.50-4, and I noticed that some of his 
changes didn't make it into your gdb-7.8-1.src.patch.  The missing ones 
are collected in the attached "cgf.patch" file.

If I apply that patch on top of your gdb-7.8-1.src.patch, the problem is 
gone.  (The python warning is still there, but it seems to be harmless.)

Ken


--------------010608050001020307050701
Content-Type: text/plain; charset=windows-1252;
 name="cgf.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="cgf.patch"

LS0tIGdkYi93aW5kb3dzLW5hdC5jLm9yaWcJMjAxNC0wOS0xMiAwOTowODoz
OC43MTQ0MDU3MDAgLTA0MDAKKysrIGdkYi93aW5kb3dzLW5hdC5jCTIwMTQt
MDktMTIgMTI6MzM6MTIuODUzNzc1MTAwIC0wNDAwCkBAIC0xMjEsOCArMTIx
LDcgQEAKICMgICBkZWZpbmUgYmFkX0dldE1vZHVsZUZpbGVOYW1lRXggYmFk
X0dldE1vZHVsZUZpbGVOYW1lRXhXCiAjZW5kaWYKIAotc3RhdGljIGludCBo
YXZlX3NhdmVkX2NvbnRleHQ7CS8qIFRydWUgaWYgd2UndmUgc2F2ZWQgY29u
dGV4dCBmcm9tIGEKLQkJCQkgICBjeWd3aW4gc2lnbmFsLiAgKi8KK3N0YXRp
YyBEV09SRCAgc2lnbmFsX3RocmVhZF9pZDsJLyogTm9uLXplcm8gaWYgd2Ug
c2F2ZWQgY29udGV4dC4gKi8KIHN0YXRpYyBDT05URVhUIHNhdmVkX2NvbnRl
eHQ7CS8qIENvbnRhaW5lcyB0aGUgc2F2ZWQgY29udGV4dCBmcm9tIGEKIAkJ
CQkgICBjeWd3aW4gc2lnbmFsLiAgKi8KIApAQCAtMzA0LDcgKzMwMyw4IEBA
CiAgICAgICB7CiAJaWYgKCF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b3JfcHRpZCA9IHB0aWRfYnVpbGQg
KGN1cnJlbnRfZXZlbnQuZHdQcm9jZXNzSWQsIDAsCi0JCQkJICByZXR2YWwp
OwotICAgICAgY3VycmVudF90aHJlYWQgPSB0aCA/OiB0aHJlYWRfcmVjIChj
dXJyZW50X2V2ZW50LmR3VGhyZWFkSWQsIFRSVUUpOworCQkJCSAgdGhyZWFk
X2lkKTsKKyAgICAgIGN1cnJlbnRfdGhyZWFkID0gdGggPzogdGhyZWFkX3Jl
YyAodGhyZWFkX2lkLCBUUlVFKTsKICAgICB9CiAKIG91dDoKLSAgcmV0dXJu
IHJldHZhbDsKKyAgcmV0dXJuIChpbnQpIHRocmVhZF9pZDsKIH0KIAogLyog
V2FpdCBmb3IgaW50ZXJlc3RpbmcgZXZlbnRzIHRvIG9jY3VyIGluIHRoZSB0
YXJnZXQgcHJvY2Vzcy4gICovCg==


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

- Raw text -


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