This has been introduced in rL304598 and fails for increased stack sizes.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Well, would be nice to know the size of the stack there too. I'm curious what was the reason to check that stack size is less than 256MB. Default max_uar_stack_size_log is 20, so it's 1MB of stack size and I don't see where else stack_size is used.
The error is as follows:
"((stack_size)) <= ((0x10000000))" (0x40000000, 0x10000000)
Please note that I have ulimit -s unlimited because I often had problems with Fortran applications that required large stack sizes. With ulimit -s 4096, the problem also goes away.
However, I don't understand this check either, so I'd say to remove it as it causes problems.
I'm ok with removing this check, we can always bring it back (with proper comment this time).
Kostya, what exactly this check was for?
This check is a sanity check, please keep it, but feel free to change the constant to e.g. 0x100000000 (16x increase)
Sanity check in what sense? If we can increase it arbitrarily, it's not a check anymore IMHO
It's a sanity check that asan has computed the stack size correctly, and that it doesn't think the stack is e.g. 42 Gb