Skip to content

Qiskit Transpiler malloc: Heap corruption detected crash #15210

@epelofske-LANL

Description

@epelofske-LANL

Environment

  • Qiskit version: qiskit==2.2.1
  • Python version: 3.14.0
  • Operating system: MacOS

What is happening?

Compiling a circuit in Qiskit using Transpile() calls results in a malloc: Heap corruption detected error.

How can we reproduce the issue?

I think this error does not happen deterministically at all. I have found it once out of 1 million transpile() calls to complex quantum circuits. So it also happens rarely. But no single circuit or set of transpiler settings deterministically induces this error.

What should happen?

The code will crash, at the transpile() call with an error that looks like this:

python3(84162,0x1f53ce0c0) malloc: Heap corruption detected, free list is damaged at 0x600002d07fc0
*** Incorrect guard value: 162876951461043
python3(84162,0x1f53ce0c0) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort 

Any suggestions?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions