Skip to content

limeGUI crashed SIGFPE during TX calibration on LimeSDR Mini #156

@dtv-comp

Description

@dtv-comp

Description

When attempting TX calibration on LimeSDR Mini using limeGUI, the application crashes with a SIGFPE (floating point exception).

Steps to Reproduce

  1. Launch limeGUI on Ubuntu 24.04
  2. Connect a LimeSDR Mini
  3. Start TX calibration
  4. Observe the crash

Expected Behavior

TX calibration should complete successfully or handle invalid RSSI values gracefully.

Actual Behavior

The program crashes with a SIGFPE at line 1059 in calibration.c due to division by zero.

Relevant Code

if ((rssi * 100) / rssi_prev < 105) // pga should give ~1dB change

Here, rssi_prev == 0, causing a floating point exception.

System Information

  • OS: Ubuntu 24.04
  • Hardware: LimeSDR Mini
  • Application: limeGUI (LimeSuiteNG)
  • Error: SIGFPE at calibration.c:1059

Build Info

Attachments

Screenshots related to the crash:
Image

Image

Suggested Fix

Add a check to prevent division by zero:

if (rssi_prev != 0 && (rssi * 100) / rssi_prev < 105)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions