-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault on import PythonCall
#563
Comments
I have a very similar issue with the final julia 1.11.0. The segfault is very non-deterministic. It doesn't always happen and when it happens it doesn't always happen at the same point. Some backtraces look like this:
Others like this:
Running the same code with julia 1.10.4 doesn't have this issue. |
I also get seg faults, on linux, only on multithread, in applications which worked with julia 1.10 |
Fwiw, here's a somewhat self-contained example that reliably crashes for me within a handful of runs (but it's non-deterministic), see this repository. Its only dependencies are import QuadGK
using PythonCall
const camb = pyimport("camb")
const Pm = let
params = camb.set_params(H0=70)
params.set_matter_power(redshifts=0:.1:1.5, kmax=9.5)
res = camb.get_results(params)
power = res.get_matter_power_interpolator(nonlinear=false, k_hunit=false, hubble_units=false, extrap_kmax=1e6).P
(z, k) -> let
pyval = power(z, k)
pyconvert(Float64, pyval)
end
end
calculate_stuff = (R, z) -> let
θ = R/900.
integrand = lθ -> let
kl = lθ/((1+z) * R)
sqrt(lθ)*cos(lθ)*Pm(z, kl) / (θ*θ)
end
QuadGK.quadgk(integrand, 0, 50)[1]
end
zvalues = [0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7]
Rvalues = collect(.1:.2:7.0)
@info @. calculate_stuff(Rvalues, zvalues') |
I get a segmentation error on julia v1.11.2 with another example. This is my system:
My example involves just loading HuggingFaceDatasets.jl (which uses PythonCall) from another package. It works fine if just used in a script instead. The error happens at precompilation time. julia> activate .
julia> using GNNDatasets
Precompiling GNNDatasets...
Info Given GNNDatasets was explicitly requested, output will be shown live
[68039] signal 11 (2): Segmentation fault: 11
in expression starting at none:0
_ZN3Aws4Http19CurlHandleContainerD2Ev at /Users/carlo/.julia/dev/GraphNeuralNetworks/GNNDatasets/.CondaPkg/env/lib/libaws-cpp-sdk-core.dylib (unknown line)s
Allocations: 3387461 (Pool: 3387279; Big: 182); GC: 9
✗ GNNDatasets
0 dependencies successfully precompiled in 7 seconds. 171 already precompiled.
ERROR: The following 1 direct dependency failed to precompile:
GNNDatasets
Failed to precompile GNNDatasets [2afd1aaa-255b-4d45-920d-62446192254f] to "/Users/carlo/.julia/compiled/v1.11/GNNDatasets/jl_R2rNZG".
[68039] signal 11 (2): Segmentation fault: 11
in expression starting at none:0
_ZN3Aws4Http19CurlHandleContainerD2Ev at /Users/carlo/.julia/dev/GraphNeuralNetworks/GNNDatasets/.CondaPkg/env/lib/libaws-cpp-sdk-core.dylib (unknown line)
Allocations: 3387461 (Pool: 3387279; Big: 182); GC: I can provide a full reproducer if needed. |
I'm getting a similar error on Julia 1.10 on Windows. Here is the code that triggers the error. try
import PythonCall
catch
@warn "PythonCall not working :("
end Julia Version 1.10.9
Commit 5595d20a28 (2025-03-10 12:51 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 4 × AMD EPYC 7763 64-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) Details│
│ To reproduce this CI run locally run the following from the same repository state on julia version 1.10.9:
│
│ `import Pkg; Pkg.test(;coverage=true, julia_args=["--check-bounds=yes", "--compiled-modules=yes", "--depwarn=yes"], force_latest_compatible_version=false, allow_reresolve=true)`
│
Testing ZipArchives
Status `C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\Project.toml`
[4c88cf16] Aqua v0.8.11
[944b1d66] CodecZlib v0.7.8
[36869731] Malt v1.1.2
[6fe1bfb0] OffsetArrays v1.15.0
[6099a3de] PythonCall v0.9.24
[efcf1570] Setfield v1.1.2
[3bb67fe8] TranscodingStreams v0.11.3
[49080126] ZipArchives v2.4.1 `D:\a\ZipArchives.jl\ZipArchives.jl`
[a5390f91] ZipFile v0.10.1
[1e303b3e] LibArchive_jll v3.7.4+0
[2a0f44e3] Base64
[a63ad114] Mmap
[44cfe95a] Pkg v1.10.0
[9a3f8284] Random
[ea8e919c] SHA v0.7.0
[8dfed614] Test
[3f19e933] p7zip_jll v17.4.0+2
Status `C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\Manifest.toml`
[4c88cf16] Aqua v0.8.11
[dce04be8] ArgCheck v2.4.0
[6309b1aa] CodecInflate64 v0.1.3
[944b1d66] CodecZlib v0.7.8
[34da2185] Compat v4.16.0
[992eb4ea] CondaPkg v0.2.26
[187b0558] ConstructionBase v1.5.8
[9a962f9c] DataAPI v1.16.0
[e2d170a0] DataValueInterfaces v1.0.0
[0c81fc1b] InputBuffers v1.0.0
[82899510] IteratorInterfaceExtensions v1.0.0
[692b3bcd] JLLWrappers v1.7.0
[0f8b85d8] JSON3 v1.14.1
[1914dd2f] MacroTools v0.5.15
[36869731] Malt v1.1.2
[0b3b1443] MicroMamba v0.1.14
[6fe1bfb0] OffsetArrays v1.15.0
[bac558e1] OrderedCollections v1.8.0
[69de0a69] Parsers v2.8.1
[fa939f87] Pidfile v1.3.0
[aea7be01] PrecompileTools v1.2.1
[21216c6a] Preferences v1.4.3
[6099a3de] PythonCall v0.9.24
[05181044] RelocatableFolders v1.0.1
[ae029012] Requires v1.3.1
[6c6a2e73] Scratch v1.2.1
[efcf1570] Setfield v1.1.2
[1e83bf80] StaticArraysCore v1.4.3
[856f2bd8] StructTypes v1.11.0
[3783bdb8] TableTraits v1.0.1
[bd369af6] Tables v1.12.0
[3bb67fe8] TranscodingStreams v0.11.3
[e17b2a0c] UnsafePointers v1.0.0
[49080126] ZipArchives v2.4.1 `D:\a\ZipArchives.jl\ZipArchives.jl`
[a5390f91] ZipFile v0.10.1
[1fd713ca] Attr_jll v2.5.2+0
[6e34b625] Bzip2_jll v1.0.9+0
[2e619515] Expat_jll v2.6.5+0
[1e303b3e] LibArchive_jll v3.7.4+0
[94ce4f54] Libiconv_jll v1.18.0+0
[5ced3[41](https://github.com/JuliaIO/ZipArchives.jl/actions/runs/13886192680/job/38851223990?pr=89#step:6:44)a] Lz4_jll v1.10.1+0
[458c3c95] OpenSSL_jll v3.0.16+0
[ffd25f8a] XZ_jll v5.6.4+1
[3161d3a3] Zstd_jll v1.5.7+1
[ed5aba05] acl_jll v2.3.2+0
[f8abcde7] micromamba_jll v1.5.8+0
[4d7b5844] pixi_jll v0.41.3+0
[0dad84c5] ArgTools v1.1.1
[56f22d72] Artifacts
[2a0f44e3] Base64
[ade2ca70] Dates
[8ba89e20] Distributed
[f43a241f] Downloads v1.6.0
[7b1f6079] FileWatching
[9fa8497b] Future
[b77e0a4c] InteractiveUtils
[4af54fe1] LazyArtifacts
[b27032c2] LibCURL v0.6.4
[76f85450] LibGit2
[8f399da3] Libdl
[56ddb016] Logging
[d6f4376e] Markdown
[a63ad114] Mmap
[ca575930] NetworkOptions v1.2.0
[44cfe95a] Pkg v1.10.0
[de0858da] Printf
[3fa0cd96] REPL
[9a3f8284] Random
[ea8e919c] SHA v0.7.0
[9e88b[42](https://github.com/JuliaIO/ZipArchives.jl/actions/runs/13886192680/job/38851223990?pr=89#step:6:45)a] Serialization
[6462fe0b] Sockets
[fa267f1f] TOML v1.0.3
[a4e569a6] Tar v1.10.0
[8dfed614] Test
[cf7118a7] UUIDs
[4ec0a83e] Unicode
[deac9b47] LibCURL_jll v8.4.0+0
[e37daf67] LibGit2_jll v1.6.4+0
[29816b5a] LibSSH2_jll v1.11.0+1
[c8ffd9c3] MbedTLS_jll v2.28.2+1
[14a3606d] MozillaCACerts_jll v2023.1.10
[83775a58] Zlib_jll v1.2.13+1
[8e850ede] nghttp2_jll v1.52.0+1
[3f19e933] p7zip_jll v17.4.0+2
Precompiling packages...
3159.7 ms ✓ ZipArchives
1 dependency successfully precompiled in 5 seconds. 50 already precompiled.
Testing Running tests...
Test Summary: | Pass Total Time
Method ambiguity | 1 1 1.5s
Test Summary: | Pass Total Time
Unbound type parameters | 1 1 0.1s
Test Summary: | Pass Total Time
Undefined exports | 1 1 0.0s
Test Summary: | Pass Total Time
Compare Project.toml and test/Project.toml | 1 1 0.1s
Test Summary: | Pass Total Time
Stale dependencies | 1 1 1.4s
Test Summary: | Pass Total Time
Compat bounds | 4 4 0.2s
Test Summary: | Pass Total Time
Piracy | 1 1 0.1s
Test Summary: | Pass Total Time
Persistent tasks | 1 1 4.6s
Test Summary: | Pass Total Time
bytes2string | 25 25 0.3s
Test Summary: | Pass Total Time
Write and Read zip file IO interface | 25 25 4.0s
Test Summary: | Pass Total Time
check_name_used unit tests | 1999 1999 0.2s
Test Summary: | Pass Total Time
show methods | 7 7 0.8s
CondaPkg Found dependencies: C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\CondaPkg.toml
CondaPkg Resolving changes
+ openssl
+ python
CondaPkg Initialising pixi
│ C:\Users\runneradmin\.julia\artifacts\aa881b8313f97d7b8797934574a1cfe551f85222\bin\pixi.exe
│ init
│ --format pixi
└ C:\Users\RUNNER~1\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg
Created C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\pixi.toml
CondaPkg Wrote C:\Users\RUNNER~1\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\pixi.toml
│ [dependencies]
│ openssl = ">=3, <3.1"
│
│ [dependencies.python]
│ channel = "conda-forge"
│ build = "*cpython*"
│ version = ">=3.8,<4"
│
│ [project]
│ name = ".CondaPkg"
│ platforms = ["win-64"]
│ channels = ["conda-forge"]
│ channel-priority = "strict"
└ description = "automatically generated by CondaPkg.jl"
CondaPkg Installing packages
│ C:\Users\runneradmin\.julia\artifacts\aa881b8313f97d7b8797934574a1cfe551f85222\bin\pixi.exe
│ install
└ --manifest-path C:\Users\RUNNER~1\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\pixi.toml
The default environment has been installed.
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ffb051b3346 -- Py_GetAllocatedBlocks at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
in expression starting at D:\a\ZipArchives.jl\ZipArchives.jl\test\external_unzippers.jl:7
Py_GetAllocatedBlocks at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
Py_GetAllocatedBlocks at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_New at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_DecodeUTF8 at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_AsUCS4Copy at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_AsUCS4Copy at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_FromFormatV at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyErr_BadInternalCall at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyErr_Format at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyObject_GenericGetAttrWithDict at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyObject_GetAttr at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyImport_SetModuleString at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyImport_ImportModuleLevelObject at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyImport_Import at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyImport_Import at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\C\pointers.jl:303
unknown function (ip: 000001d69ea0b3ae)
unknown function (ip: 000001d69ea0a47d)
unknown function (ip: 000001d69ea0a228)
macro expansion at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\Core\Py.jl:132 [inlined]
pyimport at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\Core\builtins.jl:1561
unknown function (ip: 000001d69ea0a14b)
unknown function (ip: 000001d69ea0a08d)
unknown function (ip: 000001d69ea09eab)
pyimport at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\Core\builtins.jl:1562 [inlined]
init_consts at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\Core\consts.jl:205
unknown function (ip: 000001d69ea09e64)
unknown function (ip: 000001d69ea0880d)
unknown function (ip: 000001d69ea08642)
__init__ at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\Core\Core.jl:42
unknown function (ip: 000001d69ea085e5)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_module_run_initializer at C:/workdir/src\toplevel.c:76
run_module_init at .\loading.jl:1193
register_restored_modules at .\loading.jl:1181
_include_from_serialized at .\loading.jl:1126
_require_search_from_serialized at .\loading.jl:1651
_require at .\loading.jl:2008
__require_prelocked at .\loading.jl:1882
jfptr___require_prelocked_84968.1 at C:\hostedtoolcache\windows\julia\1.10.9\x64\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_in_world at C:/workdir/src\builtins.c:831
#invoke_in_world#3 at .\essentials.jl:926 [inlined]
invoke_in_world at .\essentials.jl:923 [inlined]
_require_prelocked at .\loading.jl:1873
macro expansion at .\loading.jl:1860 [inlined]
macro expansion at .\lock.jl:267 [inlined]
__require at .\loading.jl:1823
jfptr___require_84931.1 at C:\hostedtoolcache\windows\julia\1.10.9\x64\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_in_world at C:/workdir/src\builtins.c:831
#invoke_in_world#3 at .\essentials.jl:926 [inlined]
invoke_in_world at .\essentials.jl:923 [inlined]
require at .\loading.jl:1816
jfptr_require_84928.1 at C:\hostedtoolcache\windows\julia\1.10.9\x64\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
call_require at C:/workdir/src\toplevel.c:481 [inlined]
eval_import_path at C:/workdir/src\toplevel.c:518
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:805
eval_body at C:/workdir/src\interpreter.c:583
eval_body at C:/workdir/src\interpreter.c:544
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:9[43](https://github.com/JuliaIO/ZipArchives.jl/actions/runs/13886192680/job/38851223990?pr=89#step:6:46) [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
include_string at .\loading.jl:2146
_include at .\loading.jl:2206
include at .\client.jl:494
unknown function (ip: 000001d689ee02eb)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:223
eval_stmt_value at C:/workdir/src\interpreter.c:174 [inlined]
eval_body at C:/workdir/src\interpreter.c:635
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
include_string at .\loading.jl:2146
_include at .\loading.jl:2206
include at .\client.jl:494
unknown function (ip: 000001d689ee02eb)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:223
eval_stmt_value at C:/workdir/src\interpreter.c:174 [inlined]
eval_body at C:/workdir/src\interpreter.c:635
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
include_string at .\loading.jl:2146
_include at .\loading.jl:2206
include at .\client.jl:494
unknown function (ip: 000001d689ee02eb)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:223
eval_stmt_value at C:/workdir/src\interpreter.c:174 [inlined]
eval_body at C:/workdir/src\interpreter.c:635
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
exec_options at .\client.jl:296
_start at .\client.jl:557
jfptr__start_86959.1 at C:\hostedtoolcache\windows\julia\1.10.9\x64\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
true_main at C:/workdir/src\jlapi.c:582
jl_repl_entrypoint at C:/workdir/src\jlapi.c:731
mainCRTStartup at C:/workdir/cli\loader_exe.c:58
BaseThreadInitThunk at C:\Windows\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
Allocations: 14067838 (Pool: 14055488; Big: 12350); GC: 22
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ffb051b3346 -- Py_GetAllocatedBlocks at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
in expression starting at D:\a\ZipArchives.jl\ZipArchives.jl\test\external_unzippers.jl:7
Py_GetAllocatedBlocks at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
Py_GetAllocatedBlocks at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_New at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_DecodeUTF8 at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_FromString at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
Py_InitializeMain at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
Py_InitializeMain at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
Py_FinalizeEx at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
Py_FinalizeEx at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\C\pointers.jl:303 [inlined]
#37 at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\C\context.jl:194
unknown function (ip: 000001d69ea0c874)
_atexit at .\initdefs.jl:428
jfptr__atexit_83415.1 at C:\hostedtoolcache\windows\julia\1.10.9\x64\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
ijl_atexit_hook at C:/workdir/src\init.c:280
ijl_exit at C:/workdir/src\init.c:207
jl_exception_handler at C:/workdir/src\signals-win.c:337 [inlined]
jl_exception_handler at C:/workdir/src\signals-win.c:229
__julia_personality at C:/workdir/src\win32_ucontext.c:28
_chkstk at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RtlVirtualUnwind2 at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
KiUserExceptionDispatcher at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
Py_GetAllocatedBlocks at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
Py_GetAllocatedBlocks at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_New at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_DecodeUTF8 at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_AsUCS4Copy at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_AsUCS4Copy at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyUnicode_FromFormatV at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyErr_BadInternalCall at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyErr_Format at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyObject_GenericGetAttrWithDict at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyObject_GetAttr at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyImport_SetModuleString at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyImport_ImportModuleLevelObject at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyImport_Import at C:\Users\runneradmin\AppData\Local\Temp\jl_lpu4Ht\.CondaPkg\.pixi\envs\default\python311.dll (unknown line)
PyImport_Import at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\C\pointers.jl:303
unknown function (ip: 000001d69ea0b3ae)
unknown function (ip: 000001d69ea0a47d)
unknown function (ip: 000001d69ea0a228)
macro expansion at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\Core\Py.jl:132 [inlined]
pyimport at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\Core\builtins.jl:1561
unknown function (ip: 000001d69ea0a14b)
unknown function (ip: 000001d69ea0a08d)
unknown function (ip: 000001d69ea09eab)
pyimport at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\Core\builtins.jl:1562 [inlined]
init_consts at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\Core\consts.jl:205
unknown function (ip: 000001d69ea09e64)
unknown function (ip: 000001d69ea0880d)
unknown function (ip: 000001d69ea08642)
__init__ at C:\Users\runneradmin\.julia\packages\PythonCall\WMWY0\src\Core\Core.jl:42
unknown function (ip: 000001d69ea085e5)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_module_run_initializer at C:/workdir/src\toplevel.c:76
run_module_init at .\loading.jl:1193
register_restored_modules at .\loading.jl:1181
_include_from_serialized at .\loading.jl:1126
_require_search_from_serialized at .\loading.jl:1651
_require at .\loading.jl:2008
__require_prelocked at .\loading.jl:1882
jfptr___require_prelocked_84968.1 at C:\hostedtoolcache\windows\julia\1.10.9\x64\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_in_world at C:/workdir/src\builtins.c:831
#invoke_in_world#3 at .\essentials.jl:926 [inlined]
invoke_in_world at .\essentials.jl:923 [inlined]
_require_prelocked at .\loading.jl:1873
macro expansion at .\loading.jl:1860 [inlined]
macro expansion at .\lock.jl:267 [inlined]
__require at .\loading.jl:1823
jfptr___require_84931.1 at C:\hostedtoolcache\windows\julia\1.10.9\x64\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_in_world at C:/workdir/src\builtins.c:831
#invoke_in_world#3 at .\essentials.jl:926 [inlined]
invoke_in_world at .\essentials.jl:923 [inlined]
require at .\loading.jl:1816
jfptr_require_84928.1 at C:\hostedtoolcache\windows\julia\1.10.9\x64\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
call_require at C:/workdir/src\toplevel.c:481 [inlined]
eval_import_path at C:/workdir/src\toplevel.c:518
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:805
eval_body at C:/workdir/src\interpreter.c:583
eval_body at C:/workdir/src\interpreter.c:5[44](https://github.com/JuliaIO/ZipArchives.jl/actions/runs/13886192680/job/38851223990?pr=89#step:6:47)
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
include_string at .\loading.jl:21[46](https://github.com/JuliaIO/ZipArchives.jl/actions/runs/13886192680/job/38851223990?pr=89#step:6:49)
_include at .\loading.jl:2206
include at .\client.jl:494
unknown function (ip: 000001d689ee02eb)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:223
eval_stmt_value at C:/workdir/src\interpreter.c:174 [inlined]
eval_body at C:/workdir/src\interpreter.c:635
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
include_string at .\loading.jl:2146
_include at .\loading.jl:2206
include at .\client.jl:494
unknown function (ip: 000001d689ee02eb)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:223
eval_stmt_value at C:/workdir/src\interpreter.c:174 [inlined]
eval_body at C:/workdir/src\interpreter.c:635
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
include_string at .\loading.jl:2146
_include at .\loading.jl:2206
include at .\client.jl:494
unknown function (ip: 000001d689ee02eb)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:223
eval_stmt_value at C:/workdir/src\interpreter.c:174 [inlined]
eval_body at C:/workdir/src\interpreter.c:635
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
exec_options at .\client.jl:296
_start at .\client.jl:557
jfptr__start_86959.1 at C:\hostedtoolcache\windows\julia\1.10.9\x64\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
true_main at C:/workdir/src\jlapi.c:582
jl_repl_entrypoint at C:/workdir/src\jlapi.c:731
mainCRTStartup at C:/workdir/cli\loader_exe.c:58
BaseThreadInitThunk at C:\Windows\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
Allocations: 14067838 (Pool: 14055[48](https://github.com/JuliaIO/ZipArchives.jl/actions/runs/13886192680/job/38851223990?pr=89#step:6:51)8; Big: 12350); GC: 22
Package ZipArchives errored during testing
Error: Process completed with exit code 1. |
import PythonCall
Affects: PythonCall
Describe the bug
I got a segfault using PythonCall on GitHub CI for Apple M1.
https://github.com/JuliaIO/ZipArchives.jl/actions/runs/11219970406/job/31187122812?pr=82
This seems to be an intermittent issue.
Your system
Additional context
Stack trace:
The text was updated successfully, but these errors were encountered: