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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=W5vr3y7MzjH8wLbm az/dMaPsfw8SlbUJ0aDVqEr48NM9rVt7UgzmFl5YVCG2s08x2Q8tKLgnKh3dyNQS i19i+DAKn6Gz1EMD+2eTIiZT5jQLn4NbBINVKZzomNXPEhFpi4gnyKixhtct+V9O GKJAXk+xOartv1Fglkrq6yG87eY= 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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=W4pvS+874uFMRko6Z8UJmc ZUxwc=; b=fozuJO3hvifGCMPIdNDucSin5NFS8t1qsB2XQfsDvRi/RoQw1dIYco KJUV4aRCqGpi3smGpvqvy/wxYHCog3nsThfuPDzztvP9zcCwK/QRcafroN8Su67r hCUrKmZN/ghYb0sZKDSP/V9igRg19fwiX2yZLtA1JOaTRb+wZ79+I= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-3.0 required=5.0 tests=AWL,BAYES_00,KAM_SHORT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=message!, sk:corinna, U*corinna, tc X-HELO: smtp-out-so.shaw.ca Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: assert creates unusable core dump on current stable Cygwin release To: cygwin AT cygwin DOT com References: From: Brian Inglis Openpgp: preference=signencrypt Message-ID: <2300fe24-fc50-3d1c-6b1b-bf6da6022d2e@SystematicSw.ab.ca> Date: Wed, 9 Oct 2019 09:31:23 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 2019-10-09 01:14, Biswapriyo Nath wrote: > * mintty version: mintty 3.0.6 (x86_64-pc-cygwin) > * cygwin version: 3.1.0-0.6 > * code: > > #include > > int main() { > int x = 1; > assert(x == 0); > } > > * Expected result: The terminal should show this message which appers > in latest stable cygwin version. > assertion "x == 0" failed: file "test.c", line 6, function: main > > * Actual result: terminal only shows "Aborted (core dumped)". I also get the core dump, which is un-gdb-able below, as is it's core dump, on *current stable* Cygwin 64 releases *AND* see the message! $ gcc -g -Og -Wall -Wextra -o t t.c $ ./t assertion "x == 0" failed: file "t.c", line 5, function: main *** starting debugger for pid 52441, tid 15616 *** continuing pid 52441 from debugger call (1) Aborted (core dumped) $ gdb ./t.exe ./t.exe.core GNU gdb (GDB) (Cygwin 8.1.1-1) 8.1.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-cygwin". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./t.exe...done. warning: core file may not match specified executable file. [New Thread 0x3df4] [New Thread 0x6850] [New Thread 0x56dc] [New Thread 0xf854] [New Thread 0xd3cc] [New Thread 0xbda8] warning: Unexpected size of section `.reg/15860' in core file. /wip/cygport-git/gdb/gdb-8.1.1-1.x86_64/src/gdb-8.1.1/gdb/corelow.c:548: internal-error: void get_core_register_section(regcache*, const regset*, const char*, int, int, const char*, int): Assertion `core_vec' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) y This is a bug, please report it. For instructions, see: . /wip/cygport-git/gdb/gdb-8.1.1-1.x86_64/src/gdb-8.1.1/gdb/corelow.c:548: internal-error: void get_core_register_section(regcache*, const regset*, const char*, int, int, const char*, int): Assertion `core_vec' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) n $ gdb ./t GNU gdb (GDB) (Cygwin 8.1.1-1) 8.1.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-cygwin". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./t...done. (gdb) run Starting program: /home/bwi/src/t [New Thread 40060.0x1073c] [New Thread 40060.0x2df0] [New Thread 40060.0x49b4] [New Thread 40060.0x12b8] assertion "x == 0" failed: file "t.c", line 5, function: main Thread 1 "t" received signal SIGABRT, Aborted. 0x00000000ffffe458 in ?? () (gdb) bt #0 0x00000000ffffe458 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) q A debugging session is active. Inferior 1 [process 40060] will be killed. Quit anyway? (y or n) y $ uname -srvmo CYGWIN_NT-10.0 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin $ head /proc/version CYGWIN_NT-10.0-17763 version 3.0.7-338.x86_64 (corinna AT calimero) (gcc version 7.4.0 20181206 (Fedora Cygwin 7.4.0-1) (GCC) ) 2019-04-30 18:08 UTC $ gcc --version gcc (GCC) 7.4.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- 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