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

sections_elf_shared: Actually print error message when trying to use shared libraries with static runtime #2454

Merged
merged 1 commit into from
Dec 17, 2017

Conversation

dnadlinger
Copy link
Member

@dnadlinger dnadlinger commented Dec 16, 2017

Using assert() in this module is problematic in more than one way:
In debug mode, most of the assertion failures will come at a point
where the runtime is not sufficiently initialised to properly throw
the AssertError yet. On the other hand, in release mode, the assert(0)s
will generate traps that are unhelpful for users.

A patch converting the other assertions will be proposed upstream.

…shared libraries with static runtime

Using assert() in this module is problematic in more than one way:
In debug mode, most of the assertion failures will come at a point
where the runtime is not sufficiently initialised to properly throw
the AssertError yet. On the other hand, in release mode, the assert(0)s
will generate traps that are unhelpful for users.

A patch converting the other assertions will be proposed upstream.
@dnadlinger dnadlinger changed the title sections_elf_shared: Actually print error message when trying to use … sections_elf_shared: Actually print error message when trying to use shared libraries with static runtime Dec 16, 2017
@dnadlinger
Copy link
Member Author

Once #2443 is in, we can also suggest that flag directly.

@kinke kinke merged commit 958e58c into ldc-developers:master Dec 17, 2017
@dnadlinger dnadlinger deleted the druntime-abort-msg branch December 23, 2017 20:24
@kinke kinke mentioned this pull request Dec 31, 2017
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants