-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Clang reapeatedly calls emitDwarfDIE and giving SIGSEGV: invalid memory reference error #76920
Comments
I can compile that .ll file just fine with clang 17.0.6, but it takes quite a lot of memory (~1.1GiB):
Are you sure you aren't simply running out of RAM for that segfault? |
We are also able to compile the .ll file successfully with clang. But the actual error is occuring with below build command when compiled with 'rustc' (It runs out of stack when calling this llvm::AsmPrinter::emitDwarfDIE(llvm::DIE const&) const function repeatedly)
And, we're not sure how 'rustc' uses llvm/clang in background to compile the crates. (As I mentioned this was already discussed in rust community and narrowed down to llvm issue rust-lang/rust#113612 (comment)) This issue is not occuring with x86_64 arch, only observed with 32-bit arch witn DEBUG enabled. |
Well, if the host you are running on is 32-bit and |
May be your understanding is incorrect. The host I am running is a 64-bit and rustc is 64 bit executable.
Let me clarify this as well - , |
rust-lang/rust#122357 has a minimal reproduction in Rust. |
While building rust sources (in Yocto distro for custom target - i686-poky-linux-gnu), when the 'p384' crate compiling we are getting 'signal: 11, SIGSEGV: invalid memory reference' error. This issue is occurring when build is for 32-bit architecture machines with DEBUG enabled.
Initially it was seen with LLVM version: 16.0.5 and we could reproduce the issue with LLVM version: 17.0.4.
Below is the error text with LLVM version: 17.0.4:
rust version info:
This we've discussed in rust community - rust-lang/rust#113612 (comment) and, we suspect that the issue is from llvm function - llvm::AsmPrinter::emitDwarfDIE(llvm::DIE const&) const
The gbd back trace is here - rust-lang/rust#113612 (comment)
The attached 'p384.zip' contains the llvm-ir file.
p384.zip
The text was updated successfully, but these errors were encountered: