* [gentoo-user] segfault from C stack overflow
@ 2021-02-05 13:44 karl
2021-02-05 13:53 ` Joshua M. Murphy
0 siblings, 1 reply; 2+ messages in thread
From: karl @ 2021-02-05 13:44 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] segfault from C stack overflow
2021-02-05 13:44 [gentoo-user] segfault from C stack overflow karl
@ 2021-02-05 13:53 ` Joshua M. Murphy
0 siblings, 0 replies; 2+ messages in thread
From: Joshua M. Murphy @ 2021-02-05 13:53 UTC (permalink / raw
To: gentoo-user
On Fri, Feb 5, 2021 at 8:44 AM <karl@aspodata.se> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-05 13:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-05 13:44 [gentoo-user] segfault from C stack overflow karl
2021-02-05 13:53 ` Joshua M. Murphy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox