delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/12/28/17:04:14

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; q=dns; s=default; b=NmhPnLuCSjMtvHEQ9vU+g+CaIA/qT
+sYw6RuWBLVXg0z07H4BoqOFwtluycsA5gNZ0lSmsM8njY8ucQwIDE7aQuseNqbT
OLawMJ/7ycuEiS3MTTJ7Z+XVdnMaxuSJy7f3h9eJJvShzFTmG8aTTUNZFzZSf/q9
KyPaOYkIv5fmHI=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; s=default; bh=moIwSt0tha1TaXeAJs6H0UrMJH8=; b=KCq
2w6fz53vAht4nK6j+JErK6aN5OY4AomC3BM28bvwAMQV9nEhpysoKGduwzAKKJ9e
Qaq+GiDoEWFdtIb5ih61ubejIY8aIKOYNQAK1l6P/U1R4OqbctdtpZE+FDKWJDIB
g6GiSC4kSKMiQnR3WVnQ28o3ZZoYnjS6p06y8FnE=
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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Spam-Relays-External:2604, H*r:2604, H*RU:2604
X-HELO: NAM12-DM6-obe.outbound.protection.outlook.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nFKmpkyULJf3+wmjkujhYXD++cHzhDNxvSeoAtSSmalBY70ORcd4WXB33jmkrTyUOL98IK00Hqw0ia9gdulrH/oEureAlCiEuV81Q87rdZdMihQKIGwe7wonalz1KBhysmz8PqTuo+EyAIshJdh1pGXU+K7RgPpssbhs6wB6NhdBYIZ7H2Mn45dNGbWp4qSBnzSG54ae7PdbKpVguhzMsoCopDojU3DBx9c4lhS+ilpXJnX5/08HFE0dOyVKK99f/psN+maJkEF1YzK2AksUFqOFbcuMBzYiJjYMAxDitfDSByDbCBN5C6CuzKrYueK7sr0do++VFY46I2K853ahMA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ol3+DPVnwdG2Z9acuZv5wV0jYzgeXnAgE+zDwrrAkXM=; b=jS1ndY9qVYB/psxeCpiQ0x5kIRaRGM3wwR3R9Y178xhs6ULMrrTQ39i+urKGIJWrHNrbswfxEGYh3SyihtuWDQkUVOZtx4iJ1dXdrGDwEJ9fd9jSselMi/HfV3EmKKAxsXMbK5AoYouSSL9RwE3lIfkpsZUfal5KR+63gDKKFaGq8wbok/P0s9UbNyTpWEEgv/yyHVl/In8RqdEHxauinoMmVuUCXBqJcOZrGVscW05PkfO57glImiaYFwWXb/DlGtu3rOeKDnQgdslqaZrVUiktNngCxD93XXR+aAwrs+oiq6iSa2YQ+fJV+f7NgXoR6rgHTv2tAhlL8+IsN39wlg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ol3+DPVnwdG2Z9acuZv5wV0jYzgeXnAgE+zDwrrAkXM=; b=DWZto3LRNxZ5KXV0FDujQHCs2cXY/wT81L98zkz5JDGag8D7I1wAy94DTb94HC2riFlnaZLFsSj/NMZTroEOKrR7cxikcpMn5hRqIG6SdZuy1jS7FWTg8tRJbN2OM6pnEpMtVO/IVvGSg651wQCLIVKBA03C72f4dqk7bDashjk=
From: Ken Brown <kbrown AT cornell DOT edu>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: GDB and thread
Date: Sat, 28 Dec 2019 22:03:17 +0000
Message-ID: <cc4cf832-e661-dfc1-853a-c1b9ab71bca9@cornell.edu>
References: <b0d8c3b7-6ebd-3fce-f1b6-4542fb5a37c7 AT gmail DOT com>
In-Reply-To: <b0d8c3b7-6ebd-3fce-f1b6-4542fb5a37c7@gmail.com>
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown AT cornell DOT edu;
x-ms-oob-tlc-oobclassifiers: OLM:9508;
received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: D80Rjr2KfF7rtQvbYfFqVzDeJPI1PdZfA8ueH+xWKUchkxDjJ8QoB/gFKzXMmH8wwUXGIRD1p5UwUrfLoA9geg==
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id xBSM3ub8010553

On 12/28/2019 4:27 PM, Marco Atzeri wrote:
> Hi,
> I am trying to debug the libuv test failures,
> but it seems I am not able to convince GDB on stopping
> just before the failure.
> 
> Is "thread apply all" working on Cygwin ?
> The fact that produces no output in comparison to
> a normal break command is a bit strange
> 
> (gdb) break test-dlerror.c:34
> Breakpoint 1 at 0x10040b0b0: file /pub/devel/libuv/libuv-1.34.0/test/test-dlerro
> r.c, line 34.
> (gdb) thread apply all break test-dlerror.c:34

Others know this better than I do, but I seem to recall that a break command 
automatically applies to all threads.  In other words, "thread apply all" is 
redundant.

> (gdb) run dlerror
> Starting program: /cygdrive/d/cyg_pub/devel/libuv/libuv-1.34.0-build/test/.libs/
> run-tests.exe dlerror
> [New Thread 139176.0x231a0]
> [New Thread 139176.0x231c8]
> [New Thread 139176.0x21a0c]
> [New Thread 139176.0x2332c]
> [New Thread 139176.0x230b0]
> [New Thread 139176.0x231cc]
> [New Thread 139176.0x23028]
> [New Thread 139176.0x23214]
> [Thread 139176.0x23028 exited with code 0]
> not ok 1 - dlerror
> # exit code 134
> # Output from process `dlerror`:
> # Assertion failed in /pub/devel/libuv/libuv-1.34.0/test/test-dlerror.c on line
> 45: strstr(msg, path) != NULL
> [Thread 139176.0x231c8 exited with code 134]
> [Thread 139176.0x230b0 exited with code 134]
> [Thread 139176.0x2332c exited with code 134]
> [Thread 139176.0x23214 exited with code 134]
> [Thread 139176.0x21a0c exited with code 134]
> [Inferior 1 (process 139176) exited with code 0206]
> (gdb)
> 
> 
> Any hint will be appreciated

Might this be related to optimization?  That could change the order in which 
lines of code are executed.  Have you tried building without optimization?

Ken

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