[Rd] R 4.0.1-4.0.5 built with Intel Composer 19.0-19.1.1, error in "make check" on CentOS 7.7-7.9

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Fri Apr 16 18:12:46 CEST 2021


On Thu, 15 Apr 2021 22:46:56 +0000
Ryan Novosielski <novosirj using rutgers.edu> wrote:

> (gdb) print $_siginfo._sifields._sigfault
> $1 = {
>  si_addr = 0x7fffff7fecf8, _addr_lsb = 0,
>  _addr_bnd = {_lower = 0xffff9215f829ff58, _upper = 0x7fffff7fecf8}
> }

> (gdb) print R_CStackDir * (R_CStackStart - (uintptr_t)&codebase)
> $5 = 18446744073701307232

Okay, this is clearly a stack overflow: the faulting address is close
to addresses of other stack variables, and the stack usage, calculated
manually as 140737488207872 - 0x7fffff7ff360, is 8244392, which is
above the (7969177), but the value that gdb gives you looks really
strange. I could only get that value when I calculated
-1 * (140737488207872 - 0x7fffff7ff360) and reinterpreted it as
unsigned.

What is the value of R_CStackDir at the moment of crash? Could it have
somehow became -1 despite the stack growing down?

-- 
Best regards,
Ivan



More information about the R-devel mailing list