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

ICE assembling jump to external label #44

Closed
riptl opened this issue Jun 18, 2022 · 2 comments
Closed

ICE assembling jump to external label #44

riptl opened this issue Jun 18, 2022 · 2 comments

Comments

@riptl
Copy link

riptl commented Jun 18, 2022

Version

faff12c

Steps to reproduce

cat <<EOF > crash.s
.text
goto L1
EOF

clang -c -x assembler -target bpf -march=bpfel+solana -o crash.o crash.s

Log

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /Users/richard/.cache/solana/v1.27/bpf-tools/llvm/bin/clang -c -x assembler -target bpf -march=bpfel+solana -o bla.o bla.s
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  clang-13                 0x00000001043a4177 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1  clang-13                 0x00000001043a3058 llvm::sys::RunSignalHandlers() + 248
2  clang-13                 0x00000001043a3730 llvm::sys::CleanupOnSignal(unsigned long) + 208
3  clang-13                 0x00000001042df47f CrashRecoverySignalHandler(int) + 191
4  libsystem_platform.dylib 0x00007ff81273adfd _sigtramp + 29
5  libsystem_platform.dylib 0x0000000000000004 _sigtramp + 18446603370271363620
6  clang-13                 0x0000000103f95383 (anonymous namespace)::ELFObjectWriter::recordRelocation(llvm::MCAssembler&, llvm::MCAsmLayout const&, llvm::MCFragment const*, llvm::MCFixup const&, llvm::MCValue, unsigned long long&) + 675
7  clang-13                 0x0000000103fae5ab llvm::MCAssembler::layout(llvm::MCAsmLayout&) + 1323
8  clang-13                 0x0000000103fae85c llvm::MCAssembler::Finish() + 60
9  clang-13                 0x0000000103fca2fb llvm::MCELFStreamer::finishImpl() + 203
10 clang-13                 0x0000000104024f97 (anonymous namespace)::AsmParser::Run(bool, bool) + 1895
11 clang-13                 0x0000000102f401d9 cc1as_main(llvm::ArrayRef<char const*>, char const*, void*) + 19257
12 clang-13                 0x0000000102f382b0 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) + 992
13 clang-13                 0x0000000104a6f467 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const::$_1>(long) + 23
14 clang-13                 0x00000001042df1d2 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 226
15 clang-13                 0x0000000104a6efdc clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const + 396
16 clang-13                 0x0000000104a3af01 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const + 737
17 clang-13                 0x0000000104a3b2bc clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) const + 124
18 clang-13                 0x0000000104a547cc clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) + 396
19 clang-13                 0x0000000102f37764 main + 9860
20 dyld                     0x00000001156d451e start + 462
clang-13: error: clang integrated assembler command failed with exit code 132 (use -v to see invocation)
clang version 13.0.0 (https://github.com/solana-labs/llvm-project.git 9509bb55a565c64e45ea0b20dfba7fe16fc01fc1)
Target: bpf
Thread model: posix
InstalledDir: /Users/richard/.cache/solana/v1.27/bpf-tools/llvm/bin
clang-13: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.
@dmakarov
Copy link
Collaborator

dmakarov commented Dec 3, 2023

Is this still an issue? If not, maybe close this.

@nvjle
Copy link

nvjle commented Dec 12, 2023

Is this still an issue? If not, maybe close this.

This is no longer an issue for the SBF back-end. We emit an error message for this situation and exit gracefully.

@nvjle nvjle closed this as completed Dec 12, 2023
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

No branches or pull requests

3 participants