Skip to content

CPUIDInfo::~CPUIDInfo() crashes with free(): invalid pointer on ARM (Jetson Orin) when CPU vendor is unknown #28301

@mimiliaogo

Description

@mimiliaogo

Describe the issue

Environment:

  • ONNX Runtime version: 1.24.2
  • Platform: ARM64 (NVIDIA Jetson Orin NX / AGX Orin iGPU), Linux
  • Reproduces: 100% on Orin NX, intermittently on AGX Orin, never on x86

Description:

After an ONNX inference session completes successfully, the process crashes with free(): invalid pointer during exit. The crash is always preceded by this warning at session initialization: onnxruntime cpuid_info warning: Unknown CPU vendor. cpuinfo_vendor value: 0

The correlation between the "Unknown CPU vendor" warning and the destructor crash suggests CPUIDInfo may not fully initialize when the vendor is unrecognized, leaving internal state that causes an invalid free during destruction

To reproduce

Run any ONNX inference test on Jetson Orin NX.

Urgency

No response

Platform

Linux

OS Version

Ubuntu 22.04

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1.24.2

ONNX Runtime API

C++

Architecture

ARM64

Execution Provider

CUDA

Execution Provider Library Version

CUDA 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform:jetsonissues related to the NVIDIA Jetson platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions