Skip to content

Fortran error code when Ctrl+C is pressed #532

@LynBar

Description

@LynBar

Bug Description

If I import the QuantumToolbox package and run any code, pressing Crtl+C now no longer just throws an interrupt exception, it kills the instance of Julia that is running and gives a Fortran error code .
"forrtl: error (200): program aborting due to control-C event
Initialization of symbol handler failed. Error code %d:87"
This only seems to happen when the QuantumToolbox package is imported so I'm really not sure what's happening.

Code to Reproduce the Bug

using QuantumToolbox
while true
end

Code Output

forrtl: error (200): program aborting due to control-C event
Initialization of symbol handler failed. Error code %d:87

Expected Behaviour

I expect the running programme to be killed when I press Ctrl+C, not the Julia instance.

Your Environment

QuantumToolbox.jl: Quantum Toolbox in Julia
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
Copyright © QuTiP team 2022 and later.
Current admin team:
    Alberto Mercurio and Yi-Te Huang

Package information:
====================================
Julia              Ver. 1.11.6
QuantumToolbox     Ver. 0.34.0
SciMLOperators     Ver. 1.5.0
LinearSolve        Ver. 3.36.0
OrdinaryDiffEqCore Ver. 1.30.0

System information:
====================================
OS       : Windows (x86_64-w64-mingw32)
CPU      : 14 × Intel(R) Core(TM) Ultra 5 125U
Memory   : 31.458 GB
WORD_SIZE: 64
LIBM     : libopenlibm
LLVM     : libLLVM-16.0.6 (ORCJIT, alderlake)
BLAS     : libopenblas64_.dll (ilp64)
Threads  : 1 (on 14 virtual cores)

Additional Context

Status \\10.204.28.1\Docs5\barry.lynch\linuxhome\Documents\JuliaCode\IRC_Code\Testing\Project.toml [6c2fb7c5] QuantumToolbox v0.34.0
If I call ccall(:raise, Cvoid, (Cint,), Base.SIGINT) this still acts as normal, and keeps the julia instance running, so something seems to be overriding the key shortcut.

I assume this is being caused by some package imported by QuantumToolbox, but have no idea where to start looking so any help with this would be much appreciated!

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