-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Creating large array of mutables crashes REPL #18274
Comments
Are you sure the OOM killer wasn't triggered (this is usually reported in system logs)? Julia has basically no control over that due to memory overcommitment. |
Yes, the log says:
Maybe this is one of the cases of smarter memory management @JeffBezanson refers to here: #14963 (comment) ? |
Probably. Though I'm not sure what he meant exactly. Julia would need to choose a reasonable limit beyond which allocations should fail before triggering the OOM killer. |
fyi on Windows: julia> type A
a::Int
end
julia> [A(3) for i=1:1000000000];
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: UNKNOWN at 0x7ff98390f808 -- RaiseException at C:\WINDOWS\System32\KERNELBASE.dll (unknown line)
while loading no file, in expression starting on line 0
RaiseException at C:\WINDOWS\System32\KERNELBASE.dll (unknown line)
Unwind_RaiseException at C:\Julia\Julia-0.5-latest\bin\libgcc_s_seh-1.dll (unknown line)
_cxa_throw at C:\Julia\Julia-0.5-latest\bin\libstdc++-6.dll (unknown line)
Znwy at C:\Julia\Julia-0.5-latest\bin\libstdc++-6.dll (unknown line)
ZNSt6vectorIN4llvm17DWARFDebugAranges13RangeEndpointESaIS2_EE19_M_emplace_back_auxIIRyRjbEEEvDpOT_ at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm17DWARFDebugAranges11appendRangeEjyy at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm17DWARFDebugAranges8generateEPNS_12DWARFContextE at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm20DWARFContextInMemory6anchorEv at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm12DWARFContext24getCompileUnitForAddressEy at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm12DWARFContext25getInliningInfoForAddressEyNS_19DILineInfoSpecifierE at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: UNKNOWN at 0x7ff98390f808 -- RaiseException at C:\WINDOWS\System32\KERNELBASE.dll (unknown line)
while loading no file, in expression starting on line 0
RaiseException at C:\WINDOWS\System32\KERNELBASE.dll (unknown line)
Unwind_RaiseException at C:\Julia\Julia-0.5-latest\bin\libgcc_s_seh-1.dll (unknown line)
_cxa_throw at C:\Julia\Julia-0.5-latest\bin\libstdc++-6.dll (unknown line)
Znwy at C:\Julia\Julia-0.5-latest\bin\libstdc++-6.dll (unknown line)
ZNSt6vectorIN4llvm26DWARFDebugInfoEntryMinimalESaIS1_EE7reserveEy at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm9DWARFUnit9DWOHolderC2ENS_9StringRefE at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm9DWARFUnit19extractDIEsIfNeededEb at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm9DWARFUnit23getSubprogramForAddressEy at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm9DWARFUnit25getInlinedChainForAddressEy at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm12DWARFContext25getInliningInfoForAddressEyNS_19DILineInfoSpecifierE at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: UNKNOWN at 0x7ff98390f808 -- RaiseException at C:\WINDOWS\System32\KERNELBASE.dll (unknown line)
while loading no file, in expression starting on line 0
RaiseException at C:\WINDOWS\System32\KERNELBASE.dll (unknown line)
Unwind_RaiseException at C:\Julia\Julia-0.5-latest\bin\libgcc_s_seh-1.dll (unknown line)
_cxa_throw at C:\Julia\Julia-0.5-latest\bin\libstdc++-6.dll (unknown line)
Znwy at C:\Julia\Julia-0.5-latest\bin\libstdc++-6.dll (unknown line)
ZNSt6vectorIN4llvm26DWARFDebugInfoEntryMinimalESaIS1_EE7reserveEy at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm9DWARFUnit9DWOHolderC2ENS_9StringRefE at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm9DWARFUnit19extractDIEsIfNeededEb at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm9DWARFUnit23getSubprogramForAddressEy at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm9DWARFUnit25getInlinedChainForAddressEy at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
ZN4llvm12DWARFContext25getInliningInfoForAddressEyNS_19DILineInfoSpecifierE at C:\Julia\Julia-0.5-latest\bin\LLVM-3.7.dll (unknown line)
lookup_pointer at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src/home/Administrator/buildbot/slave/package_win6_2-x64/build/src\debuginfo.cpp:690 |
This is the OS behavior and we can't change that. A default limit also doesn't really make sense. A user controlled version can possibly be part of #17987 so close as dup. |
Creating an array of a mutable type which doesn't fit into memory crashes the REPL (after hanging the computer for some time):
This is on linux 64-bit with 16GB RAM and no swap. The expected behavior would be to throw a
OutOfMemoryError
like immutables do:Maybe related: #17061
The text was updated successfully, but these errors were encountered: