public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin-apps@cygwin.com
Subject: Re: bison cygport test segv under Cygwin 64 at fatal-signal.c:318
Date: Mon, 13 Sep 2021 15:04:27 -0600	[thread overview]
Message-ID: <677dddc0-b18a-c1e4-eb59-e604a3d03b40@SystematicSw.ab.ca> (raw)
In-Reply-To: <87fsu8cpoj.fsf@Rainer.invalid>

On 2021-09-13 12:10, Achim Gratz wrote:
> Brian Inglis writes:
>>>> Thread 1 "bison" hit Breakpoint 10, block_fatal_signals () at
>>>> /usr/src/debug/bison-3.8.1-1/lib/fatal-signal.c:318
>>>> 318       if (mt) gl_lock_lock (fatal_signals_block_lock);
>>>> Continuing.
>>>>
>>>> Thread 1 "bison" received signal SIGSEGV, Segmentation fault.
>>>> 0x0000000100000000 in ?? ()
>>>> #0  0x0000000100000000 in ?? ()
>>>> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>>
>>> Well, since you already know where the SEGV hits: what is the diff to the
>>> working 3.7.6 version? The sources for this get generated, so you need
>>> to check the build directories.
>>
>> Worse, as neither gnulib/ nor lib/ sources are included in the repo,
>> except for their .gitignore files, and only /lib in the tarball, I can
>> only compare the 1.5MB of diffs on 36000 lines, which also span
>> internal versions 3.7.90 and 3.7.91, and hope that I can spot
>> something relevant!
> 
> You only need to look at lib/fatal-signal.c and how that differs
> between the working and non-working build as a first step.  If there's
> nothing obvious there, you need to look at the call chain that's
> involved in the crash, of course.

There no changes near there, only later ensuring the lock is released on 
malloc failure, but I am surprised that something so obvious still needs 
dealt with!

Thanks for the hints and tips, I really appreciate and need them, as I 
have had little experience dealing with GNU packages complex 
infrastructure except where issues are obvious, and the resulting lack 
of traceability.

I think I need to dig out the build commands and generate that module as 
-E expanded source, maybe the whole tree, as it still looks as if the 
gnulib macros expanding pthread_in_use to glthread_in_use manage to get 
that defined elsewhere as int 1!

-- 
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.
[Data in binary units and prefixes, physical quantities in SI.]

      reply	other threads:[~2021-09-13 21:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-12 18:20 Brian Inglis
2021-09-12 19:31 ` Achim Gratz
2021-09-13  5:53   ` Brian Inglis
2021-09-13 18:10     ` Achim Gratz
2021-09-13 21:04       ` Brian Inglis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=677dddc0-b18a-c1e4-eb59-e604a3d03b40@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).