You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of our build agents (a RaspberryPi 3B, 64bit) with a 32bit raspberian image which uses the rustc-arm7-unknown-gnueabihf tool-chain triggered a reproducible segfault (signal: 11, SIGSEV, invalid memory reference). This always happens during the compilation of the projects dependencies in its clippy build step. Neither release/debug build, test or check crashed, all of them went through without any further problems. Based on some further investigation we also discovered, that the segfault disappears as soon as we build clippy in debug mode instead of release (which might be an indication that this a compiler issue).
We could reproduced the crash on the following crates: libc, num-traits, rustc-serialize, and nom.
How to reproduce (Install clippy in release profile):
Program received signal SIGSEGV, Segmentation fault.
0x006f9164 in _$LT$clippy_lints..returns..ReturnPass$u20$as$u20$rustc..lint..EarlyLintPass$GT$::check_block::h341954932d19f1df ()
Backtrace:
(gdb) backtrace
#0 0x006a8184 in _$LT$clippy_lints..returns..ReturnPass$u20$as$u20$rustc..lint..EarlyLintPass$GT$::check_block::h341954932d19f1df ()
#1 0x7645d2c4 in _$LT$rustc..lint..context..EarlyContext$LT$$u27$a$GT$$u20$as$u20$syntax..visit..Visitor$LT$$u27$a$GT$$GT$::visit_block::h2795ee2d37980edf ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#2 0x7645b9c8 in _$LT$rustc..lint..context..EarlyContext$LT$$u27$a$GT$$u20$as$u20$syntax..visit..Visitor$LT$$u27$a$GT$$GT$::visit_fn::hee0698e1826f883f ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#3 0x76667fd0 in syntax::visit::walk_impl_item::hfaa9b645dda39c05 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#4 0x7645e73c in _$LT$rustc..lint..context..EarlyContext$LT$$u27$a$GT$$u20$as$u20$syntax..visit..Visitor$LT$$u27$a$GT$$GT$::visit_impl_item::h5aeafb0773399100 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#5 0x7666fd74 in syntax::visit::walk_item::hf37513a8129b0825 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#6 0x7645ab54 in _$LT$rustc..lint..context..EarlyContext$LT$$u27$a$GT$$u20$as$u20$syntax..visit..Visitor$LT$$u27$a$GT$$GT$::visit_item::h517943006cb3b893 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#7 0x7645cd2c in _$LT$rustc..lint..context..EarlyContext$LT$$u27$a$GT$$u20$as$u20$syntax..visit..Visitor$LT$$u27$a$GT$$GT$::visit_mod::h9b80153825c3a249 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#8 0x7666faf0 in syntax::visit::walk_item::hf37513a8129b0825 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#9 0x7645ab54 in _$LT$rustc..lint..context..EarlyContext$LT$$u27$a$GT$$u20$as$u20$syntax..visit..Visitor$LT$$u27$a$GT$$GT$::visit_item::h517943006cb3b893 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#10 0x7645cd2c in _$LT$rustc..lint..context..EarlyContext$LT$$u27$a$GT$$u20$as$u20$syntax..visit..Visitor$LT$$u27$a$GT$$GT$::visit_mod::h9b80153825c3a249 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#11 0x7666faf0 in syntax::visit::walk_item::hf37513a8129b0825 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#12 0x7645ab54 in _$LT$rustc..lint..context..EarlyContext$LT$$u27$a$GT$$u20$as$u20$syntax..visit..Visitor$LT$$u27$a$GT$$GT$::visit_item::h517943006cb3b893 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#13 0x7645cd2c in _$LT$rustc..lint..context..EarlyContext$LT$$u27$a$GT$$u20$as$u20$syntax..visit..Visitor$LT$$u27$a$GT$$GT$::visit_mod::h9b80153825c3a249 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#14 0x7666faf0 in syntax::visit::walk_item::hf37513a8129b0825 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#15 0x7645ab54 in _$LT$rustc..lint..context..EarlyContext$LT$$u27$a$GT$$u20$as$u20$syntax..visit..Visitor$LT$$u27$a$GT$$GT$::visit_item::h517943006cb3b893 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#16 0x7645cd2c in _$LT$rustc..lint..context..EarlyContext$LT$$u27$a$GT$$u20$as$u20$syntax..visit..Visitor$LT$$u27$a$GT$$GT$::visit_mod::h9b80153825c3a249 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#17 0x7645f8b8 in rustc::lint::context::check_ast_crate::h3dfcdea4e58d66d8 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc-26f0f99d8a2a636b.so
#18 0x76e52344 in rustc::util::common::time::h678f7070bc19bef7 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc_driver-c164348a3b010dbc.so
#19 0x76e67864 in rustc_driver::driver::phase_2_configure_and_expand::hb009c5161d9687b2 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc_driver-c164348a3b010dbc.so
#20 0x76e639b0 in rustc_driver::driver::compile_input::haf0a00d295fd205b ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc_driver-c164348a3b010dbc.so
#21 0x76ed5f2c in rustc_driver::run_compiler_with_pool::h0a004f4819a231e4 ()
from /root/.rustup/toolchains/nightly-armv7-unknown-linux-gnueabihf/lib/librustc_driver-c164348a3b010dbc.so
#22 0x00000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
The text was updated successfully, but these errors were encountered:
One of our build agents (a
RaspberryPi 3B
, 64bit) with a 32bit raspberian image which uses therustc-arm7-unknown-gnueabihf
tool-chain triggered a reproducible segfault (signal: 11, SIGSEV, invalid memory reference
). This always happens during the compilation of the projects dependencies in its clippy build step. Neither release/debug build, test or check crashed, all of them went through without any further problems. Based on some further investigation we also discovered, that the segfault disappears as soon as we build clippy in debug mode instead of release (which might be an indication that this a compiler issue).We could reproduced the crash on the following crates:
libc
,num-traits
,rustc-serialize
, andnom
.How to reproduce (Install clippy in release profile):
How to workaround (Install clippy in debug profile):
Meta
Compiler Version
Clippy version
Hardware: RasberryPi 3B
Backtrace & GDB-Output
Debugging Commands:
Output:
Backtrace:
The text was updated successfully, but these errors were encountered: