From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by sourceware.org (Postfix) with ESMTPS id CF6613858D39 for ; Wed, 19 Oct 2022 06:20:36 +0000 (GMT) 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 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-131dda37dddso19571517fac.0 for ; Tue, 18 Oct 2022 23:20:36 -0700 (PDT) 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 Received: by 2002:a05:6838:cd1b:0:0:0:0 with HTTP; Tue, 18 Oct 2022 23:20:35 -0700 (PDT) In-Reply-To: References: <000001d8e2dd$51be37a0$f53aa6e0$@cl.cam.ac.uk> From: Ariel Burbaickij Date: Wed, 19 Oct 2022 08:20:35 +0200 Message-ID: Subject: Re: Debugging malloc crash in gdb To: Jon Turney Cc: David Allsopp , The Cygwin Mailing List Content-Type: multipart/alternative; boundary="000000000000eee72505eb5d3428" 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 List-Id: --000000000000eee72505eb5d3428 Content-Type: text/plain; charset="UTF-8" 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 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 > --000000000000eee72505eb5d3428--