Hello,
It looks like the following (valid) code is crashing VTune with:
Error: Stack size provided to sigaltstack is too small. Please increase the stack size to 64K minimum.
Apparently on Ubuntu 11.10, x64 minimum allowed ss_size could be smaller than 64K (and in fact the default SIGSTKSZ is 8k).
It'd be great, if somebody could forward that report to devs....
Here is the code that reproduces the problem [on Ubuntu 11.10, x64, server. With amplxe-cl -collect hotspots] :
#include
#include
#include
int main(int argc, char ** argv)
{
stack_t stk;
if ((stk.ss_sp = malloc(SIGSTKSZ)) == NULL)
perror("malloc");
stk.ss_size = SIGSTKSZ;
stk.ss_flags = 0;
if (sigaltstack(&stk,(stack_t *)0) < 0)
perror("sigaltstack");
perror("done");
return 0;
}
~
With Regards,
Dmitry



