From unknown Thu Jun 19 13:56:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51254 <51254@debbugs.gnu.org> To: bug#51254 <51254@debbugs.gnu.org> Subject: Status: sysdep.c:1821:22: error: variably modified =?UTF-8?Q?=E2=80=98sigsegv=5Fstack=E2=80=99?= at file scope Reply-To: bug#51254 <51254@debbugs.gnu.org> Date: Thu, 19 Jun 2025 20:56:36 +0000 retitle 51254 sysdep.c:1821:22: error: variably modified =E2=80=98sigsegv_s= tack=E2=80=99 at file scope reassign 51254 emacs submitter 51254 H=C3=A5kon H=C3=A6gland severity 51254 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 17 16:49:27 2021 Received: (at submit) by debbugs.gnu.org; 17 Oct 2021 20:49:28 +0000 Received: from localhost ([127.0.0.1]:45341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcD5z-00060q-4q for submit@debbugs.gnu.org; Sun, 17 Oct 2021 16:49:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:40328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcD5x-00060i-HH for submit@debbugs.gnu.org; Sun, 17 Oct 2021 16:49:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcD5x-0002qN-8A for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2021 16:49:25 -0400 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]:43556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcD5t-0004GA-BQ for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2021 16:49:24 -0400 Received: by mail-io1-xd2e.google.com with SMTP id y67so13880765iof.10 for ; Sun, 17 Oct 2021 13:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=wrSU+ByZA5h+qzmpPVmOIrs/Q9JGnt2v0cmVckkBw6E=; b=GnMsLCW7GqfrrkJV5rIOvViMwrlN/Og7Aa1Q5T205dDqbIShQ1m2niXedbH8kEUxG2 IIzFga1/gSpawD1SrkSJIPJF5x52K4Vsv4WqmU3HyIY3YnAO1yeHqPHqflL8bQfqHSsa URzw6St2oWWWsBfvx+YXElr6evdH17jvlExv9q1Ms5g7SWifuiSoKQru0htotSlTjjmx FRhmoS8dTK01xbw9c5fkQNyfLfur+TtI3S0KVgtTixemYfZzWzeKm0I4S9gptk4peKEw D5484NX8jXxvmtDP1VpA5kqWgKcM1EZiJc6x2lUtiI58F1EA+M6uLSKcYCFl2Q47mrRD A4sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wrSU+ByZA5h+qzmpPVmOIrs/Q9JGnt2v0cmVckkBw6E=; b=WEQzYFyrGFgGvqHGJT73w1qmFEqnqS66no9GcqLL/2zCKh2Y8PvnaNGIk+QZqpjnJB 8ltiJYPLHkrI72U6J93b3L1t6vvE9TURosHgGtQVBmnBkWpF9j/Bp0pdimQCAIRMRqQz L4NhGtqagO/V56w6/Zrbpiuoz3BBML2DMKwNY7liSHtn42BAXFwAn22YqyaJjccoqoIj 8jUonvqiCsFhMzNz4LGGeOXxg8zJtmAnspiGKmPKnpfvRsXPDFuuwrMwHYlRAJxEcnEn nk98MEraHb6Li9/L16ol+nBEWmvHvkJNnEt9oSzJB9Pm1yrvJZzoaSFMvLpjIDpIiTtt AxDg== X-Gm-Message-State: AOAM532fN3e6ds1g+D9ssQKr+gEaBcSZqoPdi7FouD9f168R4ieGTN1U 59Stv8IcoCnm2VgKO+Ly1WD3c7K6X+qPog0j3KQcHDb0vNU= X-Google-Smtp-Source: ABdhPJyuX4e4PyO8zCHBj3mnXKsGVxaGheJliQWTklsE2pcL9a0MvQ1kxEGbiuqVLBkeMc6AUx/faedw8lNj0YwvH3I= X-Received: by 2002:a05:6602:2d4d:: with SMTP id d13mr11834119iow.53.1634503759301; Sun, 17 Oct 2021 13:49:19 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?SMOla29uIEjDpmdsYW5k?= Date: Sun, 17 Oct 2021 22:49:08 +0200 Message-ID: Subject: =?UTF-8?Q?sysdep=2Ec=3A1821=3A22=3A_error=3A_variably_modified_=E2=80=98sigseg?= =?UTF-8?Q?v=5Fstack=E2=80=99_at_file_scope?= To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000f50e2505ce928fc6" Received-SPF: pass client-ip=2607:f8b0:4864:20::d2e; envelope-from=hakon.hagland@gmail.com; helo=mail-io1-xd2e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000f50e2505ce928fc6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am trying to install emacs 27.2 from source on Ubuntu 21.10: $ gcc --version gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 $ wget http://ftp.gnu.org/gnu/emacs/emacs-27.2.tar.gz $ tar zvxf emacs-27.2.tar.gz $ cd emacs-27.2 $ ./configure --prefix=3D/opt/emacs27.2 $ make make -C lib all make[1]: Entering directory '/home/hakon/test/install_emacs/emacs-27.2/lib' GEN alloca.h GEN dirent.h GEN fcntl.h GEN inttypes.h GEN limits.h GEN signal.h GEN stdio.h GEN stdlib.h GEN string.h GEN sys/select.h GEN sys/stat.h GEN sys/time.h GEN sys/types.h GEN time.h GEN unistd.h CC fingerprint.o CC fcntl.o CC fsusage.o CC regex.o CC sig2str.o CC time_rz.o CC acl-errno-valid.o CC acl-internal.o CC get-permissions.o CC set-permissions.o CC allocator.o CC binary-io.o CC c-ctype.o CC c-strcasecmp.o CC c-strncasecmp.o CC careadlinkat.o careadlinkat.c: In function =E2=80=98careadlinkat=E2=80=99: cc1: warning: function may return address of local variable [-Wreturn-local-addr] careadlinkat.c:73:8: note: declared here 73 | char stack_buf[1024]; | ^~~~~~~~~ CC close-stream.o CC count-leading-zeros.o CC count-one-bits.o CC count-trailing-zeros.o CC md5.o CC sha1.o CC sha256.o CC sha512.o CC dtoastr.o CC dtotimespec.o CC filemode.o CC filevercmp.o CC gettime.o CC nstrftime.o CC pipe2.o CC qcopy-acl.o CC stat-time.o CC tempname.o CC timespec.o CC timespec-add.o CC timespec-sub.o CC u64.o CC unistd.o CC utimens.o utimens.c: In function =E2=80=98fdutimens=E2=80=99: utimens.c:382:17: warning: =E2=80=98update_timespec=E2=80=99 accessing 16 b= ytes in a region of size 8 [-Wstringop-overflow=3D] 382 | if (ts && update_timespec (&st, &ts)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ utimens.c:382:17: note: referencing argument 2 of type =E2=80=98struct time= spec **=E2=80=99 utimens.c:133:1: note: in a call to function =E2=80=98update_timespec=E2=80= =99 133 | update_timespec (struct stat const *statbuf, struct timespec *ts[2]= ) | ^~~~~~~~~~~~~~~ utimens.c: In function =E2=80=98lutimens=E2=80=99: utimens.c:595:17: warning: =E2=80=98update_timespec=E2=80=99 accessing 16 b= ytes in a region of size 8 [-Wstringop-overflow=3D] 595 | if (ts && update_timespec (&st, &ts)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ utimens.c:595:17: note: referencing argument 2 of type =E2=80=98struct time= spec **=E2=80=99 utimens.c:133:1: note: in a call to function =E2=80=98update_timespec=E2=80= =99 133 | update_timespec (struct stat const *statbuf, struct timespec *ts[2]= ) | ^~~~~~~~~~~~~~~ CC openat-die.o CC save-cwd.o AR libgnu.a make[1]: Leaving directory '/home/hakon/test/install_emacs/emacs-27.2/lib' make -C lib-src all make[1]: Entering directory '/home/hakon/test/install_emacs/emacs-27.2/lib-src' CCLD etags CCLD ctags etags.c: In function =E2=80=98main=E2=80=99: cc1: warning: =E2=80=98__builtin_memcpy=E2=80=99 writing 12 bytes into a re= gion of size between 0 and 7 [-Wstringop-overflow=3D] In file included from ctags.c:2: etags.c:1395:21: note: destination object of size [0, 7] allocated by =E2=80=98xmalloc=E2=80=99 1395 | char *cmd =3D xmalloc (2 * strlen (tagfile) + sizeof "sort = -u -o.."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ etags.c:1401:14: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 1401 | *z++ =3D ' '; | ~~~~~^~~~~ etags.c:1395:21: note: at offset 11 into destination object of size [0, 7] allocated by =E2=80=98xmalloc=E2=80=99 1395 | char *cmd =3D xmalloc (2 * strlen (tagfile) + sizeof "sort = -u -o.."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from ../lib/string.h:41, from etags.c:120, from ctags.c:2: In function =E2=80=98stpcpy=E2=80=99, inlined from =E2=80=98main=E2=80=99 at etags.c:1400:6: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:86:10: warning: =E2=80=98__builtin_stpcpy=E2=80=99 writing 1 or more bytes into a region of= size 0 overflows the destination [-Wstringop-overflow=3D] 86 | return __builtin___stpcpy_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ctags.c:2: /usr/include/x86_64-linux-gnu/bits/string_fortified.h: In function =E2=80= =98main=E2=80=99: etags.c:1395:21: note: at offset 11 into destination object of size [0, 7] allocated by =E2=80=98xmalloc=E2=80=99 1395 | char *cmd =3D xmalloc (2 * strlen (tagfile) + sizeof "sort = -u -o.."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from ../lib/string.h:41, from etags.c:120, from ctags.c:2: In function =E2=80=98strcpy=E2=80=99, inlined from =E2=80=98main=E2=80=99 at etags.c:1402:2: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:79:10: warning: =E2=80=98__builtin_strcpy=E2=80=99 writing 1 or more bytes into a region of= size 0 overflows the destination [-Wstringop-overflow=3D] 79 | return __builtin___strcpy_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ctags.c:2: /usr/include/x86_64-linux-gnu/bits/string_fortified.h: In function =E2=80= =98main=E2=80=99: etags.c:1395:21: note: at offset 12 into destination object of size [0, 7] allocated by =E2=80=98xmalloc=E2=80=99 1395 | char *cmd =3D xmalloc (2 * strlen (tagfile) + sizeof "sort = -u -o.."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CCLD emacsclient CCLD ebrowse CCLD hexl CC pop.o CCLD movemail CCLD make-docfile CCLD make-fingerprint make[1]: Leaving directory '/home/hakon/test/install_emacs/emacs-27.2/lib-src' make -C src VCSWITNESS=3D'' all make[1]: Entering directory '/home/hakon/test/install_emacs/emacs-27.2/src' GEN lisp.mk GEN globals.h CC dispnew.o CC frame.o CC scroll.o CC xdisp.o CC menu.o CC xmenu.o CC window.o CC charset.o CC coding.o CC category.o CC ccl.o CC character.o CC chartab.o CC bidi.o CC cm.o CC term.o CC terminal.o CC xfaces.o CC xterm.o CC xfns.o CC xselect.o CC xrdb.o CC xsmfns.o CC xsettings.o CC gtkutil.o CC emacsgtkfixed.o CC dbusbind.o CC emacs.o CC keyboard.o CC macros.o CC keymap.o CC sysdep.o sysdep.c:1821:22: error: variably modified =E2=80=98sigsegv_stack=E2=80=99 = at file scope 1821 | static unsigned char sigsegv_stack[SIGSTKSZ]; | ^~~~~~~~~~~~~ make[1]: *** [Makefile:406: sysdep.o] Error 1 make[1]: Leaving directory '/home/hakon/test/install_emacs/emacs-27.2/src' make: *** [Makefile:424: src] Error 2 --000000000000f50e2505ce928fc6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am trying to install emacs 27.2 from source on Ubuntu 21= .10:

$ gcc --version
gcc (Ubuntu 11.2.0-7ubuntu2) 11.= 2.0

$= =C2=A0tar zvxf emacs-27.2.tar.gz
$=C2=A0cd emacs-27.2
$= =C2=A0./configure --prefix=3D/opt/emacs27.2
$ make
make= -C lib all
make[1]: Entering directory '/home/hakon/test/install_em= acs/emacs-27.2/lib'
=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0alloca.h
=C2= =A0 GEN =C2=A0 =C2=A0 =C2=A0dirent.h
=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0fcnt= l.h
=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0inttypes.h
=C2=A0 GEN =C2=A0 =C2= =A0 =C2=A0limits.h
=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0signal.h
=C2=A0 GEN= =C2=A0 =C2=A0 =C2=A0stdio.h
=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0stdlib.h
= =C2=A0 GEN =C2=A0 =C2=A0 =C2=A0string.h
=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0s= ys/select.h
=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0sys/stat.h
=C2=A0 GEN =C2= =A0 =C2=A0 =C2=A0sys/time.h
=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0sys/types.h=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0time.h
=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0u= nistd.h
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 fingerprint.o
=C2=A0 CC =C2=A0= =C2=A0 =C2=A0 fcntl.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 fsusage.o
=C2= =A0 CC =C2=A0 =C2=A0 =C2=A0 regex.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 sig2s= tr.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 time_rz.o
=C2=A0 CC =C2=A0 =C2=A0= =C2=A0 acl-errno-valid.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 acl-internal.o<= br>=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 get-permissions.o
=C2=A0 CC =C2=A0 =C2= =A0 =C2=A0 set-permissions.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 allocator.o<= br>=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 binary-io.o
=C2=A0 CC =C2=A0 =C2=A0 = =C2=A0 c-ctype.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 c-strcasecmp.o
=C2=A0= CC =C2=A0 =C2=A0 =C2=A0 c-strncasecmp.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 = careadlinkat.o
careadlinkat.c: In function =E2=80=98careadlinkat=E2=80= =99:
cc1: warning: function may return address of local variable [-Wretu= rn-local-addr]
careadlinkat.c:73:8: note: declared here
=C2=A0 =C2=A0= 73 | =C2=A0 char stack_buf[1024];
=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 = =C2=A0 =C2=A0^~~~~~~~~
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 close-stream.o
= =C2=A0 CC =C2=A0 =C2=A0 =C2=A0 count-leading-zeros.o
=C2=A0 CC =C2=A0 = =C2=A0 =C2=A0 count-one-bits.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 count-trai= ling-zeros.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 md5.o
=C2=A0 CC =C2=A0 = =C2=A0 =C2=A0 sha1.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 sha256.o
=C2=A0 C= C =C2=A0 =C2=A0 =C2=A0 sha512.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 dtoastr.o=
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 dtotimespec.o
=C2=A0 CC =C2=A0 =C2=A0= =C2=A0 filemode.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 filevercmp.o
=C2=A0= CC =C2=A0 =C2=A0 =C2=A0 gettime.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 nstrft= ime.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 pipe2.o
=C2=A0 CC =C2=A0 =C2=A0 = =C2=A0 qcopy-acl.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 stat-time.o
=C2=A0 = CC =C2=A0 =C2=A0 =C2=A0 tempname.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 timesp= ec.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 timespec-add.o
=C2=A0 CC =C2=A0 = =C2=A0 =C2=A0 timespec-sub.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 u64.o
=C2= =A0 CC =C2=A0 =C2=A0 =C2=A0 unistd.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 utim= ens.o
utimens.c: In function =E2=80=98fdutimens=E2=80=99:
utimens.c:3= 82:17: warning: =E2=80=98update_timespec=E2=80=99 accessing 16 bytes in a r= egion of size 8 [-Wstringop-overflow=3D]
=C2=A0 382 | =C2=A0 =C2=A0 =C2= =A0 if (ts && update_timespec (&st, &ts))
=C2=A0 =C2=A0 = =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~= ~~~~~~~~~~~~~~~~
utimens.c:382:17: note: referencing argument 2 of type = =E2=80=98struct timespec **=E2=80=99
utimens.c:133:1: note: in a call to= function =E2=80=98update_timespec=E2=80=99
=C2=A0 133 | update_timespec= (struct stat const *statbuf, struct timespec *ts[2])
=C2=A0 =C2=A0 =C2= =A0 | ^~~~~~~~~~~~~~~
utimens.c: In function =E2=80=98lutimens=E2=80=99:=
utimens.c:595:17: warning: =E2=80=98update_timespec=E2=80=99 accessing = 16 bytes in a region of size 8 [-Wstringop-overflow=3D]
=C2=A0 595 | =C2= =A0 =C2=A0 =C2=A0 if (ts && update_timespec (&st, &ts))
= =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ^~~~~~~~~~~~~~~~~~~~~~~~~~
utimens.c:595:17: note: referencing argum= ent 2 of type =E2=80=98struct timespec **=E2=80=99
utimens.c:133:1: note= : in a call to function =E2=80=98update_timespec=E2=80=99
=C2=A0 133 | u= pdate_timespec (struct stat const *statbuf, struct timespec *ts[2])
=C2= =A0 =C2=A0 =C2=A0 | ^~~~~~~~~~~~~~~
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 opena= t-die.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 save-cwd.o
=C2=A0 AR =C2=A0 = =C2=A0 =C2=A0 libgnu.a
make[1]: Leaving directory '/home/hakon/test/= install_emacs/emacs-27.2/lib'
make -C lib-src all
make[1]: Enteri= ng directory '/home/hakon/test/install_emacs/emacs-27.2/lib-src'=C2=A0 CCLD =C2=A0 =C2=A0 etags
=C2=A0 CCLD =C2=A0 =C2=A0 ctags
etag= s.c: In function =E2=80=98main=E2=80=99:
cc1: warning: =E2=80=98__builti= n_memcpy=E2=80=99 writing 12 bytes into a region of size between 0 and 7 [-= Wstringop-overflow=3D]
In file included from ctags.c:2:
etags.c:1395:= 21: note: destination object of size [0, 7] allocated by =E2=80=98xmalloc= =E2=80=99
=C2=A01395 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 char *cmd =3D xmalloc= (2 * strlen (tagfile) + sizeof "sort -u -o..");
=C2=A0 =C2=A0= =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
etags.c:14= 01:14: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow= =3D]
=C2=A01401 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 *z++ =3D ' ';
= =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 ~~~~~^~~~~
etags.c:13= 95:21: note: at offset 11 into destination object of size [0, 7] allocated = by =E2=80=98xmalloc=E2=80=99
=C2=A01395 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 ch= ar *cmd =3D xmalloc (2 * strlen (tagfile) + sizeof "sort -u -o.."= );
=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~
In file included from /usr/include/string.h:519,
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from ../lib/string.h:41,=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from etags.c= :120,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from= ctags.c:2:
In function =E2=80=98stpcpy=E2=80=99,
=C2=A0 =C2=A0 inlin= ed from =E2=80=98main=E2=80=99 at etags.c:1400:6:
/usr/include/x86_64-li= nux-gnu/bits/string_fortified.h:86:10: warning: =E2=80=98__builtin_stpcpy= =E2=80=99 writing 1 or more bytes into a region of size 0 overflows the des= tination [-Wstringop-overflow=3D]
=C2=A0 =C2=A086 | =C2=A0 return __buil= tin___stpcpy_chk (__dest, __src, __glibc_objsize (__dest));
=C2=A0 =C2= =A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ctags.c:2:/usr/include/x86_64-linux-gnu/bits/string_fortified.h: In function =E2=80= =98main=E2=80=99:
etags.c:1395:21: note: at offset 11 into destination o= bject of size [0, 7] allocated by =E2=80=98xmalloc=E2=80=99
=C2=A01395 |= =C2=A0 =C2=A0 =C2=A0 =C2=A0 char *cmd =3D xmalloc (2 * strlen (tagfile) + = sizeof "sort -u -o..");
=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/s= tring.h:519,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0from ../lib/string.h:41,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0from etags.c:120,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0from ctags.c:2:
In function =E2=80=98strcpy= =E2=80=99,
=C2=A0 =C2=A0 inlined from =E2=80=98main=E2=80=99 at etags.c:= 1402:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:79:10: war= ning: =E2=80=98__builtin_strcpy=E2=80=99 writing 1 or more bytes into a reg= ion of size 0 overflows the destination [-Wstringop-overflow=3D]
=C2=A0 = =C2=A079 | =C2=A0 return __builtin___strcpy_chk (__dest, __src, __glibc_obj= size (__dest));
=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In f= ile included from ctags.c:2:
/usr/include/x86_64-linux-gnu/bits/string_f= ortified.h: In function =E2=80=98main=E2=80=99:
etags.c:1395:21: note: a= t offset 12 into destination object of size [0, 7] allocated by =E2=80=98xm= alloc=E2=80=99
=C2=A01395 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 char *cmd =3D xm= alloc (2 * strlen (tagfile) + sizeof "sort -u -o..");
=C2=A0 = =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
=C2=A0= CCLD =C2=A0 =C2=A0 emacsclient
=C2=A0 CCLD =C2=A0 =C2=A0 ebrowse
=C2= =A0 CCLD =C2=A0 =C2=A0 hexl
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 pop.o
=C2= =A0 CCLD =C2=A0 =C2=A0 movemail
=C2=A0 CCLD =C2=A0 =C2=A0 make-docfile=C2=A0 CCLD =C2=A0 =C2=A0 make-fingerprint
make[1]: Leaving directory = '/home/hakon/test/install_emacs/emacs-27.2/lib-src'
make -C src = VCSWITNESS=3D'' all
make[1]: Entering directory '/home/hakon= /test/install_emacs/emacs-27.2/src'
=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0<= a href=3D"http://lisp.mk">lisp.mk
=C2=A0 GEN =C2=A0 =C2=A0 =C2=A0glo= bals.h
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 dispnew.o
=C2=A0 CC =C2=A0 =C2= =A0 =C2=A0 frame.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 scroll.o
=C2=A0 CC = =C2=A0 =C2=A0 =C2=A0 xdisp.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 menu.o
= =C2=A0 CC =C2=A0 =C2=A0 =C2=A0 xmenu.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 wi= ndow.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 charset.o
=C2=A0 CC =C2=A0 =C2= =A0 =C2=A0 coding.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 category.o
=C2=A0 = CC =C2=A0 =C2=A0 =C2=A0 ccl.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 character.o=
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 chartab.o
=C2=A0 CC =C2=A0 =C2=A0 =C2= =A0 bidi.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 cm.o
=C2=A0 CC =C2=A0 =C2= =A0 =C2=A0 term.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 terminal.o
=C2=A0 CC= =C2=A0 =C2=A0 =C2=A0 xfaces.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 xterm.o=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 xfns.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 xs= elect.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 xrdb.o
=C2=A0 CC =C2=A0 =C2=A0= =C2=A0 xsmfns.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 xsettings.o
=C2=A0 CC= =C2=A0 =C2=A0 =C2=A0 gtkutil.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 emacsgtkf= ixed.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 dbusbind.o
=C2=A0 CC =C2=A0 =C2= =A0 =C2=A0 emacs.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 keyboard.o
=C2=A0 C= C =C2=A0 =C2=A0 =C2=A0 macros.o
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 keymap.o<= br>=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 sysdep.o
sysdep.c:1821:22: error: vari= ably modified =E2=80=98sigsegv_stack=E2=80=99 at file scope
=C2=A01821 |= static unsigned char sigsegv_stack[SIGSTKSZ];
=C2=A0 =C2=A0 =C2=A0 | = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0^~~~~~~~~~~~~
make[1]: *** [Makefile:406: sysdep.o] Error 1
make[1= ]: Leaving directory '/home/hakon/test/install_emacs/emacs-27.2/src'= ;
make: *** [Makefile:424: src] Error 2
--000000000000f50e2505ce928fc6-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 17 22:28:19 2021 Received: (at 51254) by debbugs.gnu.org; 18 Oct 2021 02:28:19 +0000 Received: from localhost ([127.0.0.1]:45517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcINv-0006H3-5Z for submit@debbugs.gnu.org; Sun, 17 Oct 2021 22:28:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcINs-0006Gq-Ea for 51254@debbugs.gnu.org; Sun, 17 Oct 2021 22:28:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49784) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcINm-0000Df-Pl; Sun, 17 Oct 2021 22:28:10 -0400 Received: from [87.69.77.57] (port=2939 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcINm-0005mY-D2; Sun, 17 Oct 2021 22:28:10 -0400 Date: Mon, 18 Oct 2021 05:28:16 +0300 Message-Id: <83czo3f4n3.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?H=C3=A5kon_H=C3=A6gland?= In-Reply-To: (hakon.hagland@gmail.com) Subject: Re: bug#51254: sysdep.c:1821:22: error: variably modified =?utf-8?Q?=E2=80=98sigsegv=5Fstack=E2=80=99?= at file scope References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51254 Cc: 51254@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Håkon Hægland > > Date: Sun, 17 Oct 2021 22:49:08 +0200 > > I am trying to install emacs 27.2 from source on Ubuntu 21.10: > > $ gcc --version > gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 > [...] > CC sysdep.o > sysdep.c:1821:22: error: variably modified ‘sigsegv_stack’ at file scope > 1821 | static unsigned char sigsegv_stack[SIGSTKSZ]; > | ^~~~~~~~~~~~~ > make[1]: *** [Makefile:406: sysdep.o] Error 1 > make[1]: Leaving directory '/home/hakon/test/install_emacs/emacs-27.2/src' > make: *** [Makefile:424: src] Error 2 This is due to a change in your system headers. There won't be any Emacs 27 releases, and the problem is fixed in the current development sources, which will become Emacs 28.1. So my suggestion is to use the code we have there now: /* Storage for the alternate signal stack. 64 KiB is not too large for Emacs, and is large enough for all known platforms. Smaller sizes may run into trouble. For example, libsigsegv 2.6 through 2.8 have a bug where some architectures use more than the Linux default of an 8 KiB alternate stack when deciding if a fault was caused by stack overflow. */ static max_align_t sigsegv_stack[(64 * 1024 + sizeof (max_align_t) - 1) / sizeof (max_align_t)]; From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 18 07:42:11 2021 Received: (at 51254) by debbugs.gnu.org; 18 Oct 2021 11:42:11 +0000 Received: from localhost ([127.0.0.1]:46099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcR1t-0004Ai-8w for submit@debbugs.gnu.org; Mon, 18 Oct 2021 07:42:11 -0400 Received: from mail-io1-f48.google.com ([209.85.166.48]:39580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcR1o-0004AB-Gk for 51254@debbugs.gnu.org; Mon, 18 Oct 2021 07:42:08 -0400 Received: by mail-io1-f48.google.com with SMTP id o184so3835535iof.6 for <51254@debbugs.gnu.org>; Mon, 18 Oct 2021 04:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6X3HFaGwLL1K2bTJqLtx7kAUZySzKd02Go7qAGt8aoQ=; b=VOsfEJUuSnMOmtO0xNdPeYcQHgbpI3bD7MbD97n5ISG6XYnhDMAUzeNRl6nnJm5p7P IBpm4AdJqR91mtQUzRs6Qhjkulq0nMJLB6W9oMP/IwIzD4fv8JWR49SxPf49JvO5cW7h TDU0H5+SmRYgB+SaTLqixz4b81F8uWBufH6PvOXbb6QVZB9CfZFl7OpbjZBfkrLr4XzT HsYnPH6m0MD+qyLCV6mu/q+uf18LSzs4r0XWzeCLmsVvJWCwCi+QMUjHTmhRGTLK43kU Mk3+Ymr+Ei0QKwPMdXA9nKexrYO5M0ALa1TnCgIzN1Q4aqbOH/8EQ6QsOXjBpw2fIt5A eh3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6X3HFaGwLL1K2bTJqLtx7kAUZySzKd02Go7qAGt8aoQ=; b=ax7XQd8FIdXsHNox0R8zoREZF3HZsX9xjfuXlAuVGb6lLn1DJmT4oaMLWdKyWagM60 PNABBh27RVOepbtk6X/4ouCX9rIvJCY/0UNDnHTaO5i9PW3nJgkTd7bz5POp2IGlZycy zyaKNpthf5E79Q9jnSP0cnKs02PX7eW9lx4h9qweRE9zFXh7jLm6UTBGYfHeA7iUKSPv JDsFSw7xaKghqLGjPT3yqc8oJw0LJD1GOvu3iiVlQdUdvdYOYc1aAPDaBYZ7b0HqjMTE nXl4JBo4wwpfO5/DiFLsKiiKWA1DPK86VkiwOINkur9Fqc+Chv4aGSKo3HGYDfWF+Cru x7EA== X-Gm-Message-State: AOAM530YJRPOMDdKcOlbji3FS9h33Tc760wKlKBml+Tw5jBDcIVLpLAd PKgb2MkpjUPCZvpB6CuCzGOADrMm8DuflcN2v9Nk+aMFfAk= X-Google-Smtp-Source: ABdhPJzouMTbfgatv/0WYcngfA8Ro0D00GfInGpYAzwW+C/U3H2Z9FA22AJcmJ8pJ7iGu7EOeGu+FNATPg44ZWek5Ss= X-Received: by 2002:a6b:f816:: with SMTP id o22mr14488887ioh.106.1634557318706; Mon, 18 Oct 2021 04:41:58 -0700 (PDT) MIME-Version: 1.0 References: <83czo3f4n3.fsf@gnu.org> In-Reply-To: <83czo3f4n3.fsf@gnu.org> From: =?UTF-8?B?SMOla29uIEjDpmdsYW5k?= Date: Mon, 18 Oct 2021 13:41:47 +0200 Message-ID: Subject: =?UTF-8?Q?Re=3A_bug=2351254=3A_sysdep=2Ec=3A1821=3A22=3A_error=3A_variably_mod?= =?UTF-8?Q?ified_=E2=80=98sigsegv=5Fstack=E2=80=99_at_file_scope?= To: Eli Zaretskii Content-Type: multipart/alternative; boundary="00000000000058b90705ce9f082e" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51254 Cc: 51254@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000058b90705ce9f082e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks! I tried version 29.0.50 at https://github.com/emacs-mirror/emacs.gi= t and it compiles fine: $ git clone https://github.com/emacs-mirror/emacs.git $ cd emacs $ ./autogen.sh $ ./configure --prefix=3D/opt/emacs-29 $ make $ sudo make install $ /opt/emacs-29/bin/emacs --version GNU Emacs 29.0.50 Copyright (C) 2021 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. On Mon, Oct 18, 2021 at 4:28 AM Eli Zaretskii wrote: > > From: H=C3=A5kon H=C3=A6gland > > > > Date: Sun, 17 Oct 2021 22:49:08 +0200 > > > > I am trying to install emacs 27.2 from source on Ubuntu 21.10: > > > > $ gcc --version > > gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 > > [...] > > CC sysdep.o > > sysdep.c:1821:22: error: variably modified =E2=80=98sigsegv_stack=E2=80= =99 at file scope > > 1821 | static unsigned char sigsegv_stack[SIGSTKSZ]; > > | ^~~~~~~~~~~~~ > > make[1]: *** [Makefile:406: sysdep.o] Error 1 > > make[1]: Leaving directory > '/home/hakon/test/install_emacs/emacs-27.2/src' > > make: *** [Makefile:424: src] Error 2 > > This is due to a change in your system headers. > > There won't be any Emacs 27 releases, and the problem is fixed in the > current development sources, which will become Emacs 28.1. So my > suggestion is to use the code we have there now: > > /* Storage for the alternate signal stack. > 64 KiB is not too large for Emacs, and is large enough > for all known platforms. Smaller sizes may run into trouble. > For example, libsigsegv 2.6 through 2.8 have a bug where some > architectures use more than the Linux default of an 8 KiB alternate > stack when deciding if a fault was caused by stack overflow. */ > static max_align_t sigsegv_stack[(64 * 1024 > + sizeof (max_align_t) - 1) > / sizeof (max_align_t)]; > --00000000000058b90705ce9f082e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks! I tried version 29.0.50 at=C2=A0https://github.com/emacs-mirror/emacs.g= it and it compiles fine:

$ cd emacs
$ ./autogen.sh
$ ./= configure --prefix=3D/opt/emacs-29
$ make
$ sudo make i= nstall
$ /opt/emacs-29/bin/emacs --version
GNU Emacs 29= .0.50
Copyright (C) 2021 Free Software Foundation, Inc.
GNU Emacs com= es with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs=
under the terms of the GNU General Public License.
For more informat= ion about these matters, see the file named COPYING.


On Mon, Oct 18, 2021 at 4:28 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: H=C3=A5kon H=C3=A6gland
>=C2=A0 <hakon.hagland@gmail.com>
> Date: Sun, 17 Oct 2021 22:49:08 +0200
>
> I am trying to install emacs 27.2 from source on Ubuntu 21.10:
>
> $ gcc --version
> gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0
> [...]
>=C2=A0 =C2=A0CC=C2=A0 =C2=A0 =C2=A0 =C2=A0sysdep.o
> sysdep.c:1821:22: error: variably modified =E2=80=98sigsegv_stack=E2= =80=99 at file scope
>=C2=A0 1821 | static unsigned char sigsegv_stack[SIGSTKSZ];
>=C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~~
> make[1]: *** [Makefile:406: sysdep.o] Error 1
> make[1]: Leaving directory '/home/hakon/test/install_emacs/emacs-2= 7.2/src'
> make: *** [Makefile:424: src] Error 2

This is due to a change in your system headers.

There won't be any Emacs 27 releases, and the problem is fixed in the current development sources, which will become Emacs 28.1.=C2=A0 So my
suggestion is to use the code we have there now:

=C2=A0 /* Storage for the alternate signal stack.
=C2=A0 =C2=A0 =C2=A064 KiB is not too large for Emacs, and is large enough<= br> =C2=A0 =C2=A0 =C2=A0for all known platforms.=C2=A0 Smaller sizes may run in= to trouble.
=C2=A0 =C2=A0 =C2=A0For example, libsigsegv 2.6 through 2.8 have a bug wher= e some
=C2=A0 =C2=A0 =C2=A0architectures use more than the Linux default of an 8 K= iB alternate
=C2=A0 =C2=A0 =C2=A0stack when deciding if a fault was caused by stack over= flow.=C2=A0 */
=C2=A0 static max_align_t sigsegv_stack[(64 * 1024
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 + sizeof (max_align_t)= - 1)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/ sizeof (max_align_t)]= ;
--00000000000058b90705ce9f082e-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 18 09:00:56 2021 Received: (at 51254-done) by debbugs.gnu.org; 18 Oct 2021 13:00:56 +0000 Received: from localhost ([127.0.0.1]:46236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcSG7-0006Dg-S6 for submit@debbugs.gnu.org; Mon, 18 Oct 2021 09:00:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcSG6-0006DS-3l for 51254-done@debbugs.gnu.org; Mon, 18 Oct 2021 09:00:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38286) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcSFz-0003FF-Tz; Mon, 18 Oct 2021 09:00:48 -0400 Received: from [87.69.77.57] (port=2119 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcSFa-0001Zu-2k; Mon, 18 Oct 2021 09:00:33 -0400 Date: Mon, 18 Oct 2021 16:00:20 +0300 Message-Id: <83o87mebdn.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?H=C3=A5kon_H=C3=A6gland?= In-Reply-To: (message from =?utf-8?Q?H=C3=A5kon_H=C3=A6gland?= on Mon, 18 Oct 2021 13:41:47 +0200) Subject: Re: bug#51254: sysdep.c:1821:22: error: variably modified =?utf-8?Q?=E2=80=98sigsegv=5Fstack=E2=80=99?= at file scope References: <83czo3f4n3.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51254-done Cc: 51254-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Håkon Hægland > Date: Mon, 18 Oct 2021 13:41:47 +0200 > Cc: 51254@debbugs.gnu.org > > Thanks! I tried version 29.0.50 at https://github.com/emacs-mirror/emacs.git and it compiles fine: Great, I'm therefore closing this bug report. From unknown Thu Jun 19 13:56:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 16 Nov 2021 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator