3108

Stack underflow

ABB · Application Error ABB Motion Drives Error trouble shoo

What does 3108 mean?

This is a 'fatal' synchronous error indicating an attempt to pop data from an empty stack. This typically occurs in Mint programs when there are more stack pop operations (e.g., function returns without corresponding calls) than push operations. This error will terminate the Mint program immediately and will not call the ONERROR event.

Common Causes

  • Attempting to return from a function call without a corresponding entry on the stack.
  • Improper handling of stack operations in custom stack implementations within the Mint program.
  • Corruption of the program stack due to memory errors or incorrect pointer manipulation (though less common in high-level Mint).
  • Mismatched push and pop operations, leading to an empty stack when a pop is attempted.

Repair Steps & Checklist

Click steps to track your progress.

  1. 1

    Review the Mint program logic for any custom stack implementations to ensure balanced push and pop operations.

  2. 2

    Check for any code paths that might lead to a function attempting to return when it was not properly called or its context was already removed from the stack.

  3. 3

    Analyze the flow of execution, especially around function calls and returns, to identify potential stack corruption or imbalance.

  4. 4

    Ensure that system calls or intrinsic functions that interact with the stack are used correctly according to the Mint programming manual.

  5. 5

    Simplify complex function call sequences to isolate and test problematic sections related to stack management.

Browse all codes in this manual (58)
Verified technical data. Last updated: March 2026

Related Faults

Source: Application Error ABB Motion Drives Error trouble shoo