-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Bus error calling function that returns big matrix #34481
Comments
Works for me on version 1.3.1 Masons-MacBook-Pro:foo mason$ git clone https://gist.github.com/charleskawczynski/785387f92de2b26b126f516fd4a3e9d1
Cloning into '785387f92de2b26b126f516fd4a3e9d1'...
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
Masons-MacBook-Pro:foo mason$ cd 785387f92de2b26b126f516fd4a3e9d1
Masons-MacBook-Pro:785387f92de2b26b126f516fd4a3e9d1 mason$ julia
versioninfo()
include("BigMatrixVar.jl") _
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.3.1 (2019-12-30)
_/ |\__'_|_|_|\__'_| |
|__/ |
julia> versioninfo()
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.2.0)
CPU: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 3
julia> include("BigMatrixVar.jl")
3921×3 Array{Float64,2}:
28311.0 1.129 0.0118
28314.0 1.129 0.0118
28315.0 1.129 0.0118
28316.0 1.129 0.0119
28318.0 1.129 0.0119
28320.0 1.129 0.0119
28323.0 1.129 0.0119
28324.0 1.129 0.0119
28326.0 1.129 0.0119
28329.0 1.129 0.0119
28331.0 1.129 0.0119
28333.0 1.129 0.0119
28335.0 1.129 0.0119
28337.0 1.129 0.0119
28338.0 1.129 0.0119
28340.0 1.129 0.0119
28341.0 1.129 0.0119
28343.0 1.129 0.0119
28345.0 1.129 0.0119
28347.0 1.129 0.0119
28349.0 1.129 0.0119
28350.0 1.129 0.0119
28352.0 1.129 0.0119
⋮
30970.0 1.124 0.0131
30970.0 1.124 0.0132
30971.0 1.124 0.0131
30971.0 1.124 0.0132
30972.0 1.124 0.0131
30972.0 1.124 0.0132
30973.0 1.124 0.0131
30973.0 1.124 0.0132
30974.0 1.124 0.0131
30974.0 1.124 0.0132
30975.0 1.124 0.0131
30975.0 1.124 0.0132
30976.0 1.124 0.0131
30976.0 1.124 0.0132
30977.0 1.124 0.0131
30977.0 1.124 0.0132
30978.0 1.124 0.0131
30978.0 1.124 0.0132
30979.0 1.124 0.0131
30979.0 1.124 0.0132
30980.0 1.124 0.0132
30981.0 1.124 0.0132 |
Looks like I need to update! |
Perhaps, but it crashes for me on master, so there's still an issue here! |
Seems to be a stack overflow (no doubt related to long argument lists), together with the age-old problem of catching stack overflows not working on mac. Here's what I get:
|
(That is followed by the correct answer being printed; we just bailed out of type inference.) |
Still noticing the same behaviour here. |
We end up here, which is just a massive unrolled loop we try to struggle through:
|
In this gist, a function returns a big manually written matrix
Commands to run:
The text was updated successfully, but these errors were encountered: