delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/10/19/02:22:12

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 CF6613858D39
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=cc:to:subject:message-id:date:from:references:in-reply-to
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=3T2IKTFKsA/9yaB1rbc9KciDj601Nhn64WdSBECu5WQ=;
b=SgLZs9dIB5qkrDNfKYf8QaPmnm6ElOutqIXH1/FsUPT5sJkt6cNoySa+gSJIDEdxbL
pCvIzBhHByZ7hWZfL+ZaQcLNqH0yVo+kzFZkPpGDs2ahH0evXZYpgB3PY5D88f4meEWw
et466UpOP+NlUwBTFj+jzfbXZ9gE1XEjQS4L2JBSqn3tJugT4YLBq7nVH1V+MUBM3z0o
/UkSvxVktJpjAmWxwI5htc2mw08c5tj2RMNavf9oGIhzmwPbjJL+04xeebEGh26XnrVp
NCL8LTyTl1xnHvRDQho8p9kAqjFN1lXVvl0vT91Tc/DSw60F7MmVPaOzu2SrPgXnefOf
YNcQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=cc:to:subject:message-id:date:from:references:in-reply-to
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=3T2IKTFKsA/9yaB1rbc9KciDj601Nhn64WdSBECu5WQ=;
b=roSz62WvX8zpyF0gbGjaYRKW7CtUOiRdla9kb2Yl578H4iLU7EmlMRPHO1ENidDZwg
fnA6LR5Udb4HLNCS/kfni5QOAzUoAmZ0cg4dtSj9np+JLpfQC+mXlLceCTz/MaPWmfoj
jQklsLUvoKZz/r5VphSiqcIdJWLW0J7FpaZ2OmIrrhSWBOxNHIvXW8smiT499l3qbf1E
X2S/VgePWXB4ILfPO1a1phQGrF3HOpuC/3/AOLrml/vvsKUGvUxEJ1qCe8HpXGS07Vna
e564vc5s7uAk2vB0H6ihS7hoghQiO2fDGZhcypRBvCUNALKpV4v/boXmY4gddGu10FZS
NW1Q==
X-Gm-Message-State: ACrzQf02Og8+y4SImy4DX5WfbGlGjZ/FoPY7QnYwD76UfSq3mboxpyaC
Ja19aNp5VnKEta3XwYWN9lApVyzboowo1UY4gY38yZCn
X-Google-Smtp-Source: AMsMyM6D85SWg3aaLhQAs8QoOhTU8jxGTihR/TopTMgxE7LbVtyy+mLl4pSpoe6fLtnghny0z8RKXUrX81qNhkc4Usg=
X-Received: by 2002:a05:6870:d591:b0:131:690d:eee1 with SMTP id
u17-20020a056870d59100b00131690deee1mr4040358oao.16.1666160436109; Tue, 18
Oct 2022 23:20:36 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <f4e9c183-a4b5-7c59-c608-9922beb76961@dronecode.org.uk>
References: <000001d8e2dd$51be37a0$f53aa6e0$@cl.cam.ac.uk>
<f4e9c183-a4b5-7c59-c608-9922beb76961 AT dronecode DOT org DOT uk>
From: Ariel Burbaickij <ariel DOT burbaickij AT gmail DOT com>
Date: Wed, 19 Oct 2022 08:20:35 +0200
Message-ID: <CANeJNHq1KMp71Be4=O5ofaGF_8Yu16L8N1WKzPb127jM-L33vw@mail.gmail.com>
Subject: Re: Debugging malloc crash in gdb
To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
HTML_OBFUSCATE_05_10, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Level: *
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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>,
David Allsopp <David DOT Allsopp AT cl DOT cam DOT ac DOT uk>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hello all,
I reported it already, of course as it happened to me but alas no reaction
so far.

Kind Regards
Ariel Burbaickij

On Tuesday, October 18, 2022, Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
wrote:

> On 18/10/2022 11:35, David Allsopp wrote:
>
>> I'm wondering if I may be able to have some pointers for debugging what
>> seems to be an unexpected interaction between mmap/mprotect/munmap and
>> malloc with the OCaml runtime.
>>
>> At the moment, I know that we crash in malloc, so my main question is how
>> to
>> go further in gdb. I installed the cygwin-debuginfo package, but all I'm
>> getting is:
>>
>
> Firstly, if the crash is inside the cygwin DLL, you must follow the advice
> in [1], and use 'set cygwin-exceptions on' to tell gdb to stop on an
> exception inside cygwin itself.
>
> [1] https://cygwin.com/faq.html#faq.programming.debugging-cygwin
>
>
> /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.
>>
>
> This looks similar to the gdb crash reported [2], which I just don't have
> any time to look into.
>
> [2] https://cygwin.com/pipermail/cygwin/2022-June/251714.html
>
> I'd suggest reporting this as directed in https://www.sourceware.org/gdb
> /bugs/
>
> (Note that self-service account creation is disabled on the sourceware
> bugzilla, due to spam problems, so you need to mail overseers as directed
> there, to request a Sourceware Bugzilla account.)
>
> The reproduction case is below (it's the OCaml runtime, so it's not exactly
>> minimal, but it seems to be very repeatable to get gdb to the position of
>> the crash).
>>
>> [...]
>
>>
>> Any assistance to debug this further hugely appreciated!
>>
>
> It might be worth exploring if this gdb crash is seen in older versions of
> gcc, or with older gcc...
>
>
> --
> 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
>

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

- Raw text -


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