On Fri, Feb 5, 2021 at 8:44 AM <[email protected]> wrote: > > When emerging R, I got: > > ... > ** R > ** data > *** moving datasets to lazyload DB > ** demo > ** inst > ** byte-compile and prepare package for lazy loading > Error: segfault from C stack overflow > ... > > Since linux automatically grows the stack, doesn't this mean > that I'm out of memory. > > Btw. > # prlimit -s > RESOURCE DESCRIPTION SOFT HARD UNITS > STACK max stack size 8388608 unlimited bytes > > and prlimit --stack=-1:-1 doesn't change the soft limit. > > Regards, > /Karl Hammar
No, a stack overflow isn't a failure to allocate more space on the stack, it's writing more data to a variable on the stack than what had been allocated for it. For example, if you declare an array for 10 characters, then write 30 characters to it, it's a stack overflow (because the variable's on the stack, and you overflowed the boundaries of it). -- Poison [BLX] Joshua M. Murphy

