From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45001 invoked by alias); 28 Dec 2019 22:28:41 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 44994 invoked by uid 89); 28 Dec 2019 22:28:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_PASS autolearn=no version=3.3.1 spammy= X-HELO: mail-wm1-f50.google.com Received: from mail-wm1-f50.google.com (HELO mail-wm1-f50.google.com) (209.85.128.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 28 Dec 2019 22:28:39 +0000 Received: by mail-wm1-f50.google.com with SMTP id c127so9171313wme.1 for ; Sat, 28 Dec 2019 14:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=vP+MRSkl7RbrwrIceKKwCyeqRGP6N7WuHg4GDGFPeAw=; b=X6A2hWVe619ESytdr+0B3/joXFZncIeYmoQtFwspney1Mey07actcBnnzQ6ZO9abA8 cd3tDUtM28YNWm+HOkeiOdjmmbWEp6q1AwpZwv+nJvfjVVCsFPIjnfUCTZy+VnY/cDvJ 2Rvdv4DsxWcR12TQq10ohlKS/MVcVMMdrE4ygB4ntNhOc70q3CFi0MojNHLB+PB6e6TG zQ/PRpH4r0O13zxlqy5G9E3lb3vrnR3f0xDD0z6tJvHvopCXQEDqGzgLw7Pq/Mb8bPSY hGGet/WDQXReBI61Xqon/Ypx93BmcD0fnkxj78Sjm8hJ8/dj1WNsoVmBD0ISkzcbnGp8 gSGg== Return-Path: Received: from [192.168.0.11] ([151.60.83.131]) by smtp.gmail.com with ESMTPSA id i5sm39355430wrv.34.2019.12.28.14.28.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 28 Dec 2019 14:28:36 -0800 (PST) Subject: Re: GDB and thread To: cygwin@cygwin.com References: From: Marco Atzeri Message-ID: Date: Sun, 29 Dec 2019 04:39:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-12/txt/msg00308.txt.bz2 Am 28.12.2019 um 23:03 schrieb Ken Brown: > 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. It seems to ignore any break for what I see. thread apply all was a tentative after simple break was ineffective > >> (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? Already thought, but it is built with -ggdb -O0 > Ken Marco -- 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