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
{{ message }}
Repository navigation
llvm lint: buffer overflow in src/test/ui/foreign/foreign-truncated-arguments.rs #75839
We've been working on enabling ASAN in rusty_v8 (https://github.com/denoland/rusty_v8) and we suspect this is causing some real-world bugs when we call into V8 from Rust. In particular, some exceptions in V8 aren't correctly detected when we compile the Rust parts with opt-level=0.
We've been working on enabling ASAN in rusty_v8 (https://github.com/denoland/rusty_v8) and we suspect this is causing some real-world bugs when we call into V8 from Rust. In particular, some exceptions in V8 aren't correctly detected when we compile the Rust parts with opt-level=0.
@mmastrac Can you reproduce the problem on the latest nightly? I can't confirm that #127168 has fixed it.
Activity
cuviper commentedon Aug 24, 2020
I captured the LLVM-IR in a single codegen unit, then ran
opt -lintwhich has the same complaint, just on%4.Here are the relevant snippets from that IR:
I expect
Shas size 12, but{ i64, i32 }would have alignment padding up to size 16.The lint goes away if I change all
{ i64, i32 }to packed<{ i64, i32 }>, but maybe we can do better than that.mmastrac commentedon Apr 13, 2024
We've been working on enabling ASAN in rusty_v8 (https://github.com/denoland/rusty_v8) and we suspect this is causing some real-world bugs when we call into V8 from Rust. In particular, some exceptions in V8 aren't correctly detected when we compile the Rust parts with opt-level=0.
apiraino commentedon Apr 15, 2024
WG-prioritization assigning priority (Zulip discussion).
@rustbot label -I-prioritize +P-high
dianqk commentedon Jun 30, 2024
{ i64, i32 }should have 16 bytes on x86_64.@rustbot claim
Auto merge of rust-lang#127168 - DianQK:cast-size, r=workingjubilee
Rollup merge of rust-lang#127168 - DianQK:cast-size, r=workingjubilee
Unrolled build for rust-lang#127168
apiraino commentedon Jul 3, 2024
reopening to follow the beta backport of #127168
dianqk commentedon Jul 4, 2024
@mmastrac Can you reproduce the problem on the latest nightly? I can't confirm that #127168 has fixed it.
dianqk commentedon Jul 5, 2024
@apiraino We can close it again.