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

give an error instead of a segfault on broken references in precompiled modules #21785

Closed
wants to merge 1 commit into from

Conversation

JeffBezanson
Copy link
Member

…ed modules

This can happen for example if another package creates something
unpredictably with `eval`, which then doesn't exist when trying to load
an (incorrectly) precompiled package that depends on it.
@JeffBezanson JeffBezanson added bugfix This change fixes an existing bug error handling Handling of exceptions by Julia or the user labels May 10, 2017
@JeffBezanson JeffBezanson requested a review from vtjnash May 10, 2017 21:59
@JeffBezanson JeffBezanson added the compiler:precompilation Precompilation of modules label May 10, 2017
@vtjnash
Copy link
Member

vtjnash commented May 10, 2017

nah, this is supposed to segfault here – it's much friendlier getting it here than discovering it later in the gc.

@JeffBezanson
Copy link
Member Author

Ok, if we really can't recover from this then we can print this message and call abort().

@vtjnash
Copy link
Member

vtjnash commented May 11, 2017

sure, that's fine. that's roughly why there's an assert right after these, although it could certainly use a better message than SIGSEGV

@vtjnash vtjnash closed this Sep 5, 2017
@DilumAluthge DilumAluthge deleted the jb/precompile_check branch March 25, 2021 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug compiler:precompilation Precompilation of modules error handling Handling of exceptions by Julia or the user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants