-
Notifications
You must be signed in to change notification settings - Fork 13.4k
crash: "UNREACHABLE executed at ObjectFile.cpp:52" #743
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
Comments
We probably need to sanity check libraries before handing them to llvm. Is there a way to get llvm to do the sanity check without tripping an assert? |
Looks like we should call IdentifyFileType (for which I don't see a C wrapper) before doing whatever we're doing. |
An empty file is now handled correctly (error "could not find metadata in empty.") But the original bug still holds (for example, with |
Fixing this is blocked on the lack of a binding to LLVM's |
Is is still problem? |
I get this when using |
Still broken for LLVM bitcode files, though it is line 57 now. |
Not an issue with empty files. Steps to reproduce for llvm bitcode:
|
This appears to be fixed; |
Add syscall constants to more Android/Linux targets Primarily adding `SYS_memfd_create` and `SYS_pivot_root` for `nix`. But I also equalized a few constants across platforms so some of the other ones that were defined on some targets are now defined across all linux/android targets.
* fix ConstantExpr handling in CreateAugmentedPrimal * add testcase * fix testcase * Update constexpr.ll * respect lifetime Co-authored-by: Tim Gymnich <[email protected]>
Also change rmc-docs tests to use cargo-rmc All tests already provide a cargo file. For the new example, we use vector-map crate, so using cargo rmc makes it much easier to check. Co-authored-by: Adrian Palacios <[email protected]>
Account for optimization levels other than numbers
If you accidentally feed rustc --ls a non-object file (as I just did), you get this assertion failure:
Unknown Object File Type
UNREACHABLE executed at ObjectFile.cpp:52!
Aborted (core dumped)
You may also just get a plain segfault. For example, try an empty file :).
The text was updated successfully, but these errors were encountered: