Re: git: 92b0c9cdbef5 - main - sysutils/screen*: Fix stack overflow detected on aarch64

From: Cy Schubert <Cy.Schubert_at_cschubert.com>
Date: Sun, 18 Aug 2024 14:00:10 UTC
In message <ZsH74Kg_SIP3mn8c@freefall.freebsd.org>, Rene Ladan writes:
> On Sun, Aug 18, 2024 at 01:11:53PM +0000, Cy Schubert wrote:
> > The branch main has been updated by cy:
> > 
> > URL: https://cgit.FreeBSD.org/ports/commit/?id=92b0c9cdbef548739d6209165c3e
> 1731761d010d
> > 
> > commit 92b0c9cdbef548739d6209165c3e1731761d010d
> > Author:     Cy Schubert <cy@FreeBSD.org>
> > AuthorDate: 2024-08-18 13:08:04 +0000
> > Commit:     Cy Schubert <cy@FreeBSD.org>
> > CommitDate: 2024-08-18 13:11:28 +0000
> > 
> >     sysutils/screen*: Fix stack overflow detected on aarch64
> >     
> >     Fix,
> >     
> >     SCREEN[1304]: stack overflow detected; terminated
> >     kernel: pid 1304 (screen-4.9.1), jid 0, uid 0: exited on signal 6 (core
>  dumped)
> >     
> This looks to me that you are sweeping the actual problem under the carpet.

This is a compiler bug. GCC13 builds a working binary while LLVM does not. 
This already affects armv6, armv7, i386, and powerpc; the stack is larger 
at function return than when it was called. Clearly a clang bug.


-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

			e^(i*pi)+1=0