-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
1.7.0-rc2: StackOverflowError with complex-valued matrix exp #886
Comments
I can confirm (and seems fixed on master). Looks like an openblas issue:
|
https://discourse.julialang.org/t/inv-causes-stack-overflow-on-julia-1-7-0-and-mac-os/72411/12 seems to be very similar. Perhaps the same cause? |
I think it's the same cause as the abovementioned discourse thread. I'm getting the same issue with using LinearAlgebra
n = 300
A = rand(ComplexF64,n,n)
B = copy(A)
LAPACK.gesv!(A,B) or even if I directly import LinearAlgebra.BLAS: @blasfunc, libblastrampoline, BlasInt
ipiv = similar(A, BlasInt, n)
info = Ref{BlasInt}()
ccall((@blasfunc(cgesv_), libblastrampoline), Cvoid,
(Ref{BlasInt}, Ref{BlasInt}, Ptr{ComplexF32}, Ref{BlasInt}, Ptr{BlasInt},
Ptr{ComplexF32}, Ref{BlasInt}, Ptr{BlasInt}),
n, size(B,2), A, max(1,stride(A,2)), ipiv, B, max(1,stride(B,2)), info) Similarly, the |
Mentioned by @KristofferC on Slack: JuliaPackaging/Yggdrasil#3996 |
It might be that macos is more susceptible to these stackoverflows because, unless I understood incorrectly, the default pthread stack is 512kb on macos and it's larger on other OSs. Linux seems to be 2Mb and windows 1Mb. |
This version has been rebuilt to have 32 threads by default, instead of 512 as it accidentally happened before. The large number of threads caused problems on some platforms, including `StackOverflowError`s. Fix #43008.
This version has been rebuilt to have 32 threads by default, instead of 512 as it accidentally happened before. The large number of threads caused problems on some platforms, including `StackOverflowError`s. Fix #43008.
Yes, work is in progress for releasing 1.6.5 and 1.7.1 to address this |
This issue should have been fixed by JuliaLang/julia#43300 |
On macos, using version
1.7.0-rc2
, julia just showsStackOverflowError
with no other info when taking the matrix exp with a ~ 300x300 complex-valued matrix. Minimum example:Alro ran with
--startup-file=no
to make sure it's not some clash with other packages.my
versioninfo()
:Same code runs fine with
Version 1.6.3 (2021-09-23)
.Hardware: Macbook pro (intel) with 16 GB ram, activity monitor shows low memory usage.
In addition, the same code sometimes gives
ERROR: LoadError: ReadOnlyMemoryError()
, not sure how to reproduce that one...Thanks!
The text was updated successfully, but these errors were encountered: