delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.1 sourceware.org 0A93C386F0DB |
Authentication-Results: | sourceware.org; |
dmarc=pass (p=none dis=none) header.from=gmail.com | |
Authentication-Results: | sourceware.org; spf=pass smtp.mailfrom=gmail.com |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; |
h=mime-version:references:in-reply-to:from:date:message-id:subject:to | |
:cc; bh=k8V2Il4jWNsdERbtxkxppMv+wPUyxNdVoaT5PgenEbc=; | |
b=igFEuXwHp4Vq0xKPY/M/QSFwu9mDGAHi0YgpiuZL9i40mJAJ0wBeRAnVZ84tJnV0Fd | |
gcylzEvgaK95OyxVFtb77/iQFtmBaYkucyMk29vp8kVUJEqyUKjr9T4vuCWHKx3aCMej | |
a5NQk+X+FN+iAEgu7fgyoxYPM0xRLE9UnaPGwvs1ePuBbiarYhbomNN+Kp5GugNEAxrD | |
G0Ccxud5JDpmQlSCZgG+akoY/BT/Is2dDxkUjDwlvtuAuN7CK2P99tNeSn1FaD3MYVEB | |
iiF8QHuvwNDSVY+Y9UTt7Bql9FbyQqQeC2I7mMyTEdtN5AN3cEapb3+vSaApHRW2ixnT | |
/yCA== | |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=1e100.net; s=20210112; | |
h=x-gm-message-state:mime-version:references:in-reply-to:from:date | |
:message-id:subject:to:cc; | |
bh=k8V2Il4jWNsdERbtxkxppMv+wPUyxNdVoaT5PgenEbc=; | |
b=yz0leFvIMAqcr2lJFfkvQv73UeyxK+KEy2bmspRZosczWW96GM9wqVV1eKLCjoVrL8 | |
n2oht99x9Zx20kVAFY0k9p5QjLfqihrg8a5Nke4TopqlVFKrB8CnrKaPCFi5F1yuS7pV | |
b73Q9r6Upj4JhOzzYg1zklV/U/bTSKZm85c2yq+NmGHyR5ifxW/eNFcknaSxr0JhIdwS | |
pAtFMiCItnCCBAuI1yjFNDzf8m+Cw6F5JlrTt1j52Ynq1DQgIV3LDlWYKMvdMcKN7niG | |
MNMxvWx+1jAk3wxLE22o1yUzybE0mv9ZTDiBMHYIJ08E2Nl2aDtCy4tB0Q1gefOSx4h/ | |
Pz0A== | |
X-Gm-Message-State: | AJIora8IM9eR3eZMzwiHYPTpeITWXJXNtyIjeKQjdZugHCXoT1aQjYBt |
zcPGiokVWgWw9Fxa3FgHxV8cpeLP7h44Ey0sTilfM7cJc8M= | |
X-Google-Smtp-Source: | AGRyM1v529xS5hWkYeMkGeKNfc62rFXly9/LXpgde+d8BGzSMXsCdoOltQiQ8kYDyJ901Nv5deeASWmhmSaSAE3xZy4= |
X-Received: | by 2002:a17:906:9f0c:b0:712:1b55:37e1 with SMTP id |
fy12-20020a1709069f0c00b007121b5537e1mr12413844ejc.69.1656330409646; Mon, 27 | |
Jun 2022 04:46:49 -0700 (PDT) | |
MIME-Version: | 1.0 |
References: | <CANeJNHpPXPr+oBxDQk1cyHh+a1+s2CUL_EhmPxpawT32BNrQUw AT mail DOT gmail DOT com> |
<2b8a6f98-baa9-6ff4-e762-003958eb880c AT dronecode DOT org DOT uk> | |
In-Reply-To: | <2b8a6f98-baa9-6ff4-e762-003958eb880c@dronecode.org.uk> |
From: | Ariel Burbaickij <ariel DOT burbaickij AT gmail DOT com> |
Date: | Mon, 27 Jun 2022 13:46:38 +0200 |
Message-ID: | <CANeJNHqZFC2zqEwyisutN9Xi6G4qEgjL72vSwTUtTzFzOmuBiw@mail.gmail.com> |
Subject: | Re: gdb itself core dumps |
To: | Jon Turney <jon DOT turney AT dronecode DOT org DOT uk> |
X-Spam-Status: | No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, |
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, | |
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, | |
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.6 (2021-04-09) on |
server2.sourceware.org | |
X-Content-Filtered-By: | Mailman/MimeDel 2.1.29 |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Cc: | The Cygwin Mailing List <cygwin AT cygwin DOT com> |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
OK, it crashes very close to the initial spot also in latest&greatest 12.1: 1048 void* __place = _Raw_bytes_alloc(__alloc).allocate(__size); (gdb) s __gnu_cxx::new_allocator<char>::allocate (__n=85, this=<optimized out>) at /usr/src/debug/gcc-11.3.0-1/x86_64-pc-cygwin/libstdc++-v3/include/ext/new_allocator.h:103 103 allocate(size_type __n, const void* = static_cast<const void*>(0)) (gdb) s __wrap__Znwm (sz=85) at /usr/src/debug/cygwin-3.3.5-1/winsup/cygwin/libstdcxx_wrapper.cc:55 55 return (*user_data->cxx_malloc->oper_new) (sz); (gdb) s /cygdrive/d/a/scallywag/gdb/gdb-12.1-1.x86_64/src/gdb-12.1/gdb/infrun.c:2553: internal-error: resume_1: Assertion `pc_in_thread_step_range (pc, tp)' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. ----- Backtrace ----- --------------------- /cygdrive/d/a/scallywag/gdb/gdb-12.1-1.x86_64/src/gdb-12.1/gdb/infrun.c:2553: internal-error: resume_1: Assertion `pc_in_thread_step_range (pc, tp)' failed. So, now to the description of circumstances that cause it: Program is: https://github.com/eshavlyugin/Preferans I compiled it after some trivial fixes ( like referencing explicitly boost:array; boost:unordered_map, even so it should not be needed, i.e. gcc should be well able to figure out what is being used, change of the condition if (window == null) to if (!(window)) and setting C++ language version C++11 because of additional requirements put on comparators -- them having to use some const in explicit -- so by and large because gcc is too feisty at all the wrong places ;-) ). Now every time I select Game->New in the GUI it crashes and crash seems to be related to LocalPrefServer.cpp:395 line, so I set breakpoint there and attempted to single-step through what appears to be platform's (Cygwin+system libraries) bowels. Now what? Kind Regards Ariel Burbaickij On Sun, Jun 26, 2022 at 3:58 PM Jon Turney <jon DOT turney AT dronecode DOT org DOT uk> wrote: > On 24/06/2022 15:13, Ariel Burbaickij wrote: > > Hello mailing list, > > > > I was in the middle of deep debugging session when following happened: > > > > 103 allocate(size_type __n, const void* = static_cast<const > > void*>(0)) > > (gdb) s > > __wrap__Znwm (sz=85) at > > /usr/src/debug/cygwin-3.3.5-1/winsup/cygwin/libstdcxx_wrapper.cc:55 > > 55 return (*user_data->cxx_malloc->oper_new) (sz); > > (gdb) s > > > /cygdrive/d/a/scallywag/gdb/gdb-11.2-1.x86_64/src/gdb-11.2/gdb/infrun.c:2550: > > internal-error: void resume_1(gdb_signal): Assertion > > `pc_in_thread_step_range (pc, tp)' failed. > > A problem internal to GDB has been detected, > > further debugging may prove unreliable. > > ... > > application level programm (open source under GNU) from which I stepped > > into allocator crashes also somewhere near, so right now I am not sure > what > > exactly gdb stumbles upon. GDB Core file is available. How do we proceed > > from here ? > > In the first place, please try the gdb 12.1 test package (available > through cygwin setup). > > If that doesn't improve matters, some details about how to (simply) > reproduce the problem would be nice. > > -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |