Skip to content

missing alignment of _j_const in codegen #50698

@vtjnash

Description

@vtjnash
      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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorcompiler:codegenGeneration of LLVM IR and native code

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions