From: Achim Gratz <Stromeko@nexgo.de>
To: cygwin-apps@cygwin.com
Subject: Re: bison cygport test segv under Cygwin 64 at fatal-signal.c:318
Date: Sun, 12 Sep 2021 21:31:43 +0200 [thread overview]
Message-ID: <87lf41oajk.fsf@Rainer.invalid> (raw)
In-Reply-To: <7ac49a0d-14c0-96b6-7ae3-d57a891eb55a@SystematicSw.ab.ca> (Brian Inglis's message of "Sun, 12 Sep 2021 12:20:01 -0600")
Brian Inglis writes:
> Trying to package bison 3.8/.1 for Cygwin - previous releases to 3.7.6
> built and checked okay - bison 3.8.1 checked okay on 32 bit - all
> tests segv on 64 bit!
Probably something messed up with the memory model somewhere? Got some
warnings about pointers wrapping or something like that?
> Reran build and check with bison 3.8 and 3.8.1 using gcc 10.2.0 and
> 11.2.0 under Cygwin 64 with no change as all tests segv @
> 0x0000000100000000.
That's a strangely specific address…
> Build runs with autoreconf et al as per normal on 32 and 64 bit;
> adding debug output allowed me see test commands to narrow down cause.
>
> Ran using gdb against tests/c/bistromathic/parse.y (see attached for
> gdb command, script, and full log) getting the output below.
>
> It appears to be possible that `gl_lock_lock` expansion to
> `pthread_in_use() ? pthread_mutex_lock(...)` -> `glthread_in_use() ?
> ...` has avoided defining the latter in the build, or some underlying
> dynamic library function may not be loaded?
How did it link then in the first place? However, Cygwin definitely is
not a GLib based system, so if Bison tries to use these function it
probably has some compatibility shims somewhere that implement them for
systems that don't have them.
> This could result from Cygwin being neither fish nor fowl: none of
> BSD, Sun, Windows, or Linux, although I notice some __CYGWIN__
> conditionals.
Unless these have been upstreamed from Cygwin I'm often inclined to get
rid of these and see what happens… :-}
> ...
>
> 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.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
next prev parent reply other threads:[~2021-09-12 19:31 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 [this message]
2021-09-13 5:53 ` Brian Inglis
2021-09-13 18:10 ` Achim Gratz
2021-09-13 21:04 ` Brian Inglis
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=87lf41oajk.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--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).