ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Error @ zig-linux-x86_64-0.9.0-dev.1583+a7d215759Reduced program
2
3
Code Generation [501/529] std.mem.Allocator.allocAdvancedWithRetAddr... broken LLVM module found: Basic Block in function 'rangeSum' does not have terminator!
label %SuspendResume

This is a bug in the Zig compiler.thread 48680 panic:
Unable to dump stack trace: debug info stripped
[1] 48680 abort ./zig build-lib crashes/01-20.zig
var frame: ?anyframe = null;
export fn a() void {
_ = async rangeSum(10);
}
fn rangeSum(x: i32) i32 {
suspend {
while(1==1)
frame = @frame();
}
if (x == 0) return 0;
var child = rangeSumIndirect;
return child + 1;
}
fn rangeSumIndirect(x: i32) i32 {
if (x == 0) return 0;
var child = rangeSum;
return child + 1;
}
4
Assertion failed at ../src/stage1/analyze.cpp:621 in get_pointer_to_type_extra2. This is a bug in the Zig compiler.thread 137578 panic:
Unable to dump stack trace: debug info stripped
[1] 137578 abort ./zig build-lib crashes/14-20.zig
export fn entry() void {
var x = false;
const p = @ptrCast(?*u0, &x);
return p < null;
}
5
Unreachable at ../src/stage1/ir.cpp:14749 in ir_analyze_instruction_elem_ptr. This is a bug in the Zig compiler.thread 26362 panic:
Unable to dump stack trace: debug info stripped
[2] 26362 abort ./zig build-lib crashes/splice-01-01.zig
export fn entry() void {
const x = @as([*]i32, undefined)[3];
return x;
}
6
[1] 53209 segmentation fault ./zig build-lib crashes/splice-01-07.min.zig
fn generic(comptime T: type) !T {
return undefined;
}
export fn bav() void {
_ = generic(@TypeOf(100));
}
7
Unreachable at ../src/stage1/analyze.cpp:9849 in resolve_llvm_types. This is a bug in the Zig compiler.thread 58108 panic:
Unable to dump stack trace: debug info stripped
[1] 58108 abort ./zig build-lib crashes/splice-01-21.zig
export fn foo() void {
asm volatile ("" : : [bar]""(i2) : "");
}
8
Assertion failed at ../src/stage1/analyze.cpp:421 in type_size. This is a bug in the Zig compiler.thread 125550 panic:
Unable to dump stack trace: debug info stripped
[1] 125550 abort ./zig build-lib crashes/splice-02-27.zig
export fn entry() u32 {
const ptr = @ptrCast(*const c_void, &entry);
return ptr.*;
}
9
broken LLVM module found: Basic Block in function 'entry' does not have terminator!
label %WhileCond1

This is a bug in the Zig compiler.thread 25039 panic:
Unable to dump stack trace: debug info stripped
[1] 25039 abort ./zig build-lib crashes/splice-02-38.zig
export fn entry() usize {
return @sizeOf(@TypeOf(
while (true) {}
));
}
10
broken LLVM module found: Operand is null
call void asm sideeffect "", "r,~{},~{dirflag},~{fpsr},~{flags}"(<null operand!>), !dbg !2280

This is a bug in the Zig compiler.thread 10374 panic:
Unable to dump stack trace: debug info stripped
[1] 10374 abort ./zig build-lib crashes/splice-03-13.zig
export fn foo() void {
asm volatile ("" : : [Oar]""(.{ .Array = .{ .len = 0, .child = u8, .sentinel = undefined } }
) : "");
}
11
Assertion failed at ../src/stage1/analyze.cpp:4584 in find_struct_type_field. This is a bug in the Zig compiler.thread 16397 panic:
Unable to dump stack trace: debug info stripped
[1] 16397 abort ./zig build-lib crashes/splice-04-22.zig
comptime {
@export(u16, undefined);
}
12
Assertion failed at ../src/stage1/analyze.cpp:5181 in analyze_fn_body. This is a bug in the Zig compiler.thread 124350 panic:
Unable to dump stack trace: debug info stripped
[1] 124350 abort ./zig build-lib crashes/splice-08-18.zig
extern fn foo() i32;
export fn entry() i32 {
var frame: @Frame(foo) = undefined;
@asyncCall(&frame, {}, foo, {});
}
13
Code Generation [439/528] std.mem.Allocator.free... [1] 61143 segmentation fault ./zig build-lib crashes/splice-11-07.zig
var x: f64 = 1.0;
export fn entry() usize { return @sizeOf(
while(1==1)
switch (x) {
0 => {},
1 => {},
else => {},
}
); }
14
when analyzing /usr0/home/rijnard/zig-bug-reports/zig-linux-x86_64-0.9.0-dev.1583+a7d215759/crashes/splice-13-14.zig:5:26 in compiler source at ../src/stage1/codegen.cpp:1870: thread 104119 panic: assertion failed. This is a bug in the Zig compiler.
Unable to dump stack trace: debug info stripped
[1] 104119 abort ./zig build-lib crashes/splice-13-14.zig
export fn foo() [*:0]const u8 {
var buffer: [:0]u8 = undefined;
return buffer[0..];
}
15
[1] 145688 segmentation fault ./zig build-lib crashes/splice-10-12.zig (in an older version, this reported Segmentation fault at address 0x30 zig/src/stage1/ir.cpp:30940:50: 0x16c69ec in ir_resolve_atomic_operand_type (/home/rijnard/zig/src/stage1/ir.cpp) ^ ???:?:?: 0xad914af in ??? (???))
const x : u8 = 2;
export fn entry() u16 {
const E = enum(u8) {
d,
};
_ = @atomicRmw(E, .Add, &x, .b, .SeqCst);
}
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100