Intel® Advisor User Guide

ID 766448
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Error Message: Stack Size Is Too Small

Symptoms

When you run a Survey or a Suitability analysis, the following error message appears: Stack size provided to sigaltstack is too small. Please increase the stack size to 64K minimum.

NOTE:
This message is for Linux* OS only.

Cause

When setting up a SIGPROF signal handler, the Intel® Advisor configures the signals to use the alternative stack size with the sigaltstack() API. This verifies that its signal handler does not depend on the profiled application stack size. If the application uses an alternative signal stack, the Intel Advisor requires it to be not less than 64 KB.

However, if the application uses the SIGSTKSZ constant for the alternative stack size (which is 8192 bytes), the data collection may terminate with the error message.

Possible Solution

NOTE:
This solution is applicable only to the Survey and Suitability analyses.

Configure the Intel Advisor so that it does not set up the alternative stack and uses the stack provided by the application. Do one of the following:

  • When collecting data with advisor command line interface (CLI), pass the --run-pass-thru=--no-altstack option to the tool. For example, for the mmult application:

    advisor --collect=survey --run-pass-thru=--no-altstack -- ./mmult
  • Before collecting data from the Intel Advisor GUI or CLI, set the environment variable ADVIXE_RUNTOOL_OPTIONS=--no-altstack.

Related information
Command Line Interface This reference section describes the Intel® Advisor command line interface (CLI) used to run the analysis.