Skip to content
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

Segfault and/or abort on bogus huge array allocation #19956

Closed
DemiMarie opened this issue Jan 9, 2017 · 1 comment
Closed

Segfault and/or abort on bogus huge array allocation #19956

DemiMarie opened this issue Jan 9, 2017 · 1 comment
Labels
error handling Handling of exceptions by Julia or the user

Comments

@DemiMarie
Copy link

The following code segfaults:

zeros(UInt64, 1 << 61) # or 62

This crashes with SIGABRT:

zeros(UInt64, 1 << 63)

Obviously none of these can succeed, but they should throw an exception rather than crashing.

julia --version gives julia version 0.5.0

@kshyatt kshyatt added the error handling Handling of exceptions by Julia or the user label Jan 9, 2017
@yuyichao
Copy link
Contributor

yuyichao commented Jan 9, 2017

Dup of #18274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error handling Handling of exceptions by Julia or the user
Projects
None yet
Development

No branches or pull requests

3 participants