-
Notifications
You must be signed in to change notification settings - Fork 16
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
Segmentation fault: #68
Comments
elliptic_e expects one argument, not two. That argument can be complex.
|
I'm using the incomplete elliptic defined at ArbNumerics.jl/src/float/elliptic.jl Line 171 in 8ad37c2
The test that's failing is calling |
Hi Ben, |
Hi @bc0n , I failed to reconstruct this issue. Can you start a clean environment and reproduce the error? Here is my output from Linux - I have no windows available to test, unfortunately.
|
julia> versioninfo()
Julia Version 1.10.3
Commit 0b4590a550 (2024-04-30 10:59 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 12 × AMD Ryzen 5 1600X Six-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, znver1)
Threads: 1 default, 0 interactive, 1 GC (on 12 virtual cores)
Environment:
JULIA_PKG_DEVDIR = W:\sync\mechgits\julia (CleanArbNumerics) pkg> st
Project CleanArbNumerics v0.1.0
Status `W:\sync\mechgits\dev\CleanArbNumerics\Project.toml`
[7e558dbc] ArbNumerics v1.5.0 (CleanArbNumerics) pkg> st -m -o
Project CleanArbNumerics v0.1.0
Status `W:\sync\mechgits\dev\CleanArbNumerics\Manifest.toml`
⌅ [e134572f] FLINT_jll v200.900.9+0 (<v300.100.300+0): ArbNumerics, Arb_jll
⌅ [656ef2d0] OpenBLAS32_jll v0.3.24+0 (<v0.3.27+1): julia (CleanArbNumerics) pkg> st -m
Project CleanArbNumerics v0.1.0
Status `W:\sync\mechgits\dev\CleanArbNumerics\Manifest.toml`
[7e558dbc] ArbNumerics v1.5.0
[ffbed154] DocStringExtensions v0.9.3
[14197337] GenericLinearAlgebra v0.3.11
[92d709cd] IrrationalConstants v0.2.2
[692b3bcd] JLLWrappers v1.5.0
[2ab3a3ac] LogExpFunctions v0.3.27
[21216c6a] Preferences v1.4.3
[0d4725de] Readables v0.3.3
[276daf66] SpecialFunctions v2.4.0
[d9960996] Arb_jll v200.2300.0+0
⌅ [e134572f] FLINT_jll v200.900.9+0
⌅ [656ef2d0] OpenBLAS32_jll v0.3.24+0
[efe28fd5] OpenSpecFun_jll v0.5.5+0
[0dad84c5] ArgTools v1.1.1
[56f22d72] Artifacts
[2a0f44e3] Base64
[ade2ca70] Dates
[f43a241f] Downloads v1.6.0
[7b1f6079] FileWatching
[b77e0a4c] InteractiveUtils
[b27032c2] LibCURL v0.6.4
[76f85450] LibGit2
[8f399da3] Libdl
[37e2e46d] LinearAlgebra
[56ddb016] Logging
[d6f4376e] Markdown
[ca575930] NetworkOptions v1.2.0
[44cfe95a] Pkg v1.10.0
[de0858da] Printf
[3fa0cd96] REPL
[9a3f8284] Random
[ea8e919c] SHA v0.7.0
[9e88b42a] Serialization
[6462fe0b] Sockets
[fa267f1f] TOML v1.0.3
[a4e569a6] Tar v1.10.0
[8dfed614] Test
[cf7118a7] UUIDs
[4ec0a83e] Unicode
[e66e0078] CompilerSupportLibraries_jll v1.1.1+0
[781609d7] GMP_jll v6.2.1+6
[deac9b47] LibCURL_jll v8.4.0+0
[e37daf67] LibGit2_jll v1.6.4+0
[29816b5a] LibSSH2_jll v1.11.0+1
[3a97d323] MPFR_jll v4.2.0+1
[c8ffd9c3] MbedTLS_jll v2.28.2+1
[14a3606d] MozillaCACerts_jll v2023.1.10
[4536629a] OpenBLAS_jll v0.3.23+4
[05823500] OpenLibm_jll v0.8.1+2
[83775a58] Zlib_jll v1.2.13+1
[8e850b90] libblastrampoline_jll v5.8.0+1
[8e850ede] nghttp2_jll v1.52.0+1
[3f19e933] p7zip_jll v17.4.0+2
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m` julia> elliptic_e(ArbFloat(-1.3438),ArbFloat(-5.25)) => segfault crashes the terminal |
Reverting to Julia 1.6 it works: julia> using ArbNumerics
julia> elliptic_e(ArbFloat(-1.3),ArbFloat(-5.25))
-2.206560606640109255190917667431457867084148343251624
julia> versioninfo()
Julia Version 1.6.7
Commit 3b76b25b64 (2022-07-19 15:11 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: AMD Ryzen 5 1600X Six-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, znver1)
Environment:
JULIA_PKG_DEVDIR = W:\sync\mechgits\julia
(CleanArbNumerics16) pkg> st
Project CleanArbNumerics16 v0.1.0
Status `W:\sync\mechgits\dev\CleanArbNumerics16\Project.toml`
[7e558dbc] ArbNumerics v1.5.0
(CleanArbNumerics16) pkg> st -m
Project CleanArbNumerics16 v0.1.0
Status `W:\sync\mechgits\dev\CleanArbNumerics16\Manifest.toml`
[7e558dbc] ArbNumerics v1.5.0
[d360d2e6] ChainRulesCore v1.23.0
[9e997f8a] ChangesOfVariables v0.1.8
[34da2185] Compat v4.15.0
[ffbed154] DocStringExtensions v0.9.3
[14197337] GenericLinearAlgebra v0.3.11
[3587e190] InverseFunctions v0.1.14
[92d709cd] IrrationalConstants v0.2.2
[692b3bcd] JLLWrappers v1.5.0
[2ab3a3ac] LogExpFunctions v0.3.27
[21216c6a] Preferences v1.4.3
[0d4725de] Readables v0.3.3
[276daf66] SpecialFunctions v2.4.0
[d9960996] Arb_jll v200.2300.0+0
[e134572f] FLINT_jll v200.900.9+0
[656ef2d0] OpenBLAS32_jll v0.3.12+1
[efe28fd5] OpenSpecFun_jll v0.5.5+0
[8e850b90] libblastrampoline_jll v3.1.0+2
[0dad84c5] ArgTools
[56f22d72] Artifacts
[2a0f44e3] Base64
[ade2ca70] Dates
[f43a241f] Downloads
[b77e0a4c] InteractiveUtils
[b27032c2] LibCURL
[76f85450] LibGit2
[8f399da3] Libdl
[37e2e46d] LinearAlgebra
[56ddb016] Logging
[d6f4376e] Markdown
[ca575930] NetworkOptions
[44cfe95a] Pkg
[de0858da] Printf
[3fa0cd96] REPL
[9a3f8284] Random
[ea8e919c] SHA
[9e88b42a] Serialization
[6462fe0b] Sockets
[2f01184e] SparseArrays
[fa267f1f] TOML
[a4e569a6] Tar
[8dfed614] Test
[cf7118a7] UUIDs
[4ec0a83e] Unicode
[e66e0078] CompilerSupportLibraries_jll
[781609d7] GMP_jll
[deac9b47] LibCURL_jll
[29816b5a] LibSSH2_jll
[3a97d323] MPFR_jll
[c8ffd9c3] MbedTLS_jll
[14a3606d] MozillaCACerts_jll
[05823500] OpenLibm_jll
[83775a58] Zlib_jll
[8e850ede] nghttp2_jll
[3f19e933] p7zip_jll |
does substituting ArbReal for ArbFloat work for you?
|
@bc0n ^ |
@JeffreySarnoff Substituting ArbReal also crashes... |
Back in 1.10 x64, I get $ julia --debug-info=2 -ie 'using ArbNumerics; @show elliptic_e(ArbFloat(-1.38),ArbFloat(-5.25));'
Exception (FLINT memory_manager). Unable to allocate memory (888).
Exception (FLINT memory_manager). Unable to allocate memory ((base) |
I created a new environment, then added ArbNumerics. FLINT was structurally modified recently -- I have not tried to use the current version inside ArbNumerics A mismatch of expected C API within /src/libarb/Flint2.jl would segfault and kill the REPL.. I cannot address this now :(
|
To know if this is the fix requires adapting to the new FLINT_lib and Arb_lib .. that requires the better part of a week |
It seems to be a Windows dynamic library snafu (as Klaus does not see the issue). |
@bc0n In case of emergency -- the author of Arb provides a well travelled and up to date python interface (mpmath) |
Julia Version 1.10.3 via juliaup 1.10.3+0.x64.w64.mingw32 on win10, [7e558dbc] ArbNumerics v1.5.0
The text was updated successfully, but these errors were encountered: