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

missing alignment of _j_const in codegen #50698

Open
vtjnash opened this issue Jul 27, 2023 · 1 comment · Fixed by #50738
Open

missing alignment of _j_const in codegen #50698

vtjnash opened this issue Jul 27, 2023 · 1 comment · Fixed by #50738
Labels
bug Indicates an unexpected problem or unintended behavior compiler:codegen Generation of LLVM IR and native code

Comments

@vtjnash
Copy link
Member

vtjnash commented Jul 27, 2023

      From worker 12:	Exception: EXCEPTION_ACCESS_VIOLATION at 0x127763b -- RefValue at .\refvalue.jl:8 [inlined]
      From worker 12:	RefValue at .\refvalue.jl:10 [inlined]
      From worker 12:	Ref at .\refpointer.jl:137 [inlined]
      From worker 12:	getpwuid at .\libc.jl:442
      From worker 12:	in expression starting at C:\buildkite-agent\builds\win2k22-amdci6-5\julialang\julia-master\julia-7a67140fa3\share\julia\test\file.jl:752
Worker 12 terminated.

      From worker 12:	RefValue at .\refvalue.jl:8 [inlined]
      From worker 12:	RefValue at .\refvalue.jl:10 [inlined]
      From worker 12:	Ref at .\refpointer.jl:137 [inlined]
      From worker 12:	getpwuid at .\libc.jl:442
      From worker 12:	getusername at .\stat.jl:93 [inlined]
      From worker 12:	show_statstruct at .\stat.jl:121
      From worker 12:	show at .\stat.jl:142

:/

Originally posted by @vtjnash in #50650 (comment)

This is an incorrect (missing) alignment of:

@"_j_const#1" = private unnamed_addr constant [6 x i64] [i64 0, i64 -1, i64 -1, i64 0, i64 0, i64 0]

which we tried to use as follows:

    call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 16 dereferenceable(48) %.sub, i8* noundef nonnull align 16 dereferenceable(48) bitcast ([6 x i64]* @"_j_const#1" to i8*), i64 48, i1 false), !dbg !29
@vtjnash vtjnash added bug Indicates an unexpected problem or unintended behavior compiler:codegen Generation of LLVM IR and native code labels Jul 27, 2023
@pchintalapudi pchintalapudi reopened this Aug 2, 2023
@pchintalapudi
Copy link
Member

Looks like this didn't fix the underlying error, the RefValue error still appears on win32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior compiler:codegen Generation of LLVM IR and native code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants