-
Notifications
You must be signed in to change notification settings - Fork 56
Description
Subject: Segmentation fault when running test suite on Julia 1.12
Environment:
- Julia Version: 1.12.0
- Operating System: macOS (aarch64)
- GraphNeuralNetworks.jl Version: v1.0.0
Description
After updating a project from Julia 1.11.7 to 1.12.0, I encountered a segmentation fault related to Zygote and GraphNeuralNetworks.jl.
To diagnose the issue, I ran the GraphNeuralNetworks.jl test suite in a clean environment. The test suite itself fails with the same segmentation fault during the gradient tests for the convolution layers.
Steps to Reproduce
- Start a fresh Julia 1.12.0 session.
- Enter the Pkg REPL by pressing
]. - Run the command:
test GraphNeuralNetworks
Expected Behavior
The test suite should complete successfully without any errors or crashes.
Actual Behavior
The test suite crashes with a signal 11 (2): Segmentation fault: 11. The failure occurs during the test_gradients section for the convolution layers.
Relevant Log Output:
(@v1.12) pkg> test GraphNeuralNetworks
Testing GraphNeuralNetworks
Test Could not use exact versions of packages in manifest. Re-resolving dependencies
...
┌ Warning: Layer with Float32 parameters got Float64 input.
│ The input will be converted, but any earlier layers may be very slow.
│ layer = Dense(4 => 2) # 10 parameters
│ summary(x) = "4×3 Matrix{Float64}"
└ @ Flux ~/.julia/packages/Flux/uRn8o/src/layers/stateless.jl:60
[86712] signal 11 (2): Segmentation fault: 11
in expression starting at /Users/Envitrace/.julia/packages/GraphNeuralNetworks/nauyk/test/layers/conv.jl:373
getType at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-P2C257CXGN.0/build/default-honeycrisp-P2C257CXGN-0/julialang/julia-release-1-dot-12/usr/include/llvm/IR/Value.h:255 [inlined]
emit_unboxed_coercion at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-P2C257CXGN.0/build/default-honeycrisp-P2C257CXGN-0/julialang/julia-release-1-dot-12/src/./intrinsics.cpp:394 [inlined]
emit_unbox at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-P2C257CXGN.0/build/default-honeycrisp-P2C257CXGN-0/julialang/julia-release-1-dot-12/src/./intrinsics.cpp:458
...
ERROR: Package GraphNeuralNetworks errored during testing (received signal: 11)
Happy to provide any more information needed to help track down this issue.