Skip to content

julia windows 64 openblas segfault #3018

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

Closed
vtjnash opened this issue May 4, 2013 · 2 comments
Closed

julia windows 64 openblas segfault #3018

vtjnash opened this issue May 4, 2013 · 2 comments
Labels
bug Indicates an unexpected problem or unintended behavior priority This should be addressed urgently system:windows Affects only Windows
Milestone

Comments

@vtjnash
Copy link
Member

vtjnash commented May 4, 2013

The following code snippet (from Color.jl) cause julia-win64 to segfault (probably stack corruption in DLANSP)

# Chromatic adaptation from CIECAM97s
const CAT97s = [ 0.8562  0.3372 -0.1934
                -0.8360  1.8327  0.0033
                 0.0357 -0.0469  1.0112 ]

z = lufact(CAT97s)

edit: as has been the case in the past, calling openblas_num_threads(1) fixes the issue (2 or more threads fails)
edit2: wine reports this results in stack overflow, after some delay. is that meaningful or helpful?

@vtjnash
Copy link
Member Author

vtjnash commented May 6, 2013

I think I need to switch to LIB64=0 and turn off threading for a while :(

Possibly related: OpenMathLib/OpenBLAS#214

@vtjnash
Copy link
Member Author

vtjnash commented May 6, 2013

Alternatively, setting LIB64=0 and -Wl,--stack,0x40000000 helps the test code from the gist in #2124 pass (for a small number of threads, limited by the amount of memory wine is willing to allocate me on julia.mit.edu for a given run)
This, by the way, is a bit excessive: https://www.google.com/search?q=0x40000000+bytes+in+gigabytes

(the required stack appears to grow proportionally to the number of openblas threads. 256MB each was sometimes enough for 10 threads)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior priority This should be addressed urgently system:windows Affects only Windows
Projects
None yet
Development

No branches or pull requests

1 participant