# HG changeset patch # User Bram Moolenaar # Date 1542056406 -3600 # Node ID 588a5fafbb61fc795bcf49a0ebcdf77e2a5fc550 # Parent 5abda25c040f47eef80f0c9f63551110f640fc26 patch 8.1.0526: running out of signal stack in RealWaitForChar commit https://github.com/vim/vim/commit/61fb8d8c6719205c686550e591db22aa97b4db4c Author: Bram Moolenaar Date: Mon Nov 12 21:45:08 2018 +0100 patch 8.1.0526: running out of signal stack in RealWaitForChar Problem: Running out of signal stack in RealWaitForChar. (Vladimir Marek) Solution: Make the fd_set variables static. diff --git a/src/os_unix.c b/src/os_unix.c --- a/src/os_unix.c +++ b/src/os_unix.c @@ -6194,7 +6194,9 @@ RealWaitForChar(int fd, long msec, int * struct timeval tv; struct timeval *tvp; - fd_set rfds, wfds, efds; + // These are static because they can take 8 Kbyte each and cause the + // signal stack to run out with -O3. + static fd_set rfds, wfds, efds; int maxfd; long towait = msec; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -793,6 +793,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 526, +/**/ 525, /**/ 524,