Compare commits
No commits in common. "88f48c83d99bf26e142db0d775f04c21a4e8fc34" and "a0f057798ebd70e8262f9fe136349a5b16ba3ec0" have entirely different histories.
88f48c83d9
...
a0f057798e
|
|
@ -9,7 +9,6 @@ pub fn build(b: *std.Build) void {
|
||||||
.root_module = b.createModule(.{
|
.root_module = b.createModule(.{
|
||||||
.root_source_file = b.path("lib.zig"),
|
.root_source_file = b.path("lib.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
.link_libc = true,
|
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
}),
|
}),
|
||||||
.linkage = .dynamic,
|
.linkage = .dynamic,
|
||||||
|
|
@ -21,7 +20,6 @@ pub fn build(b: *std.Build) void {
|
||||||
.name = "repro",
|
.name = "repro",
|
||||||
.root_module = b.createModule(.{
|
.root_module = b.createModule(.{
|
||||||
.root_source_file = b.path("main.zig"),
|
.root_source_file = b.path("main.zig"),
|
||||||
.link_libc = true,
|
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
50
output.txt
50
output.txt
|
|
@ -1,29 +1,37 @@
|
||||||
|
|
||||||
|
[sear@nixos:~/Backlog/engine/core/shared-repro]$ zig build run
|
||||||
Loaded that shizz
|
Loaded that shizz
|
||||||
test_debug_print found... calling...
|
test_debug_print found... calling...
|
||||||
Segmentation fault at address 0x0
|
Segmentation fault at address 0x1
|
||||||
/nix/store/zbdyznm7b8yjvbcb18nladvffs79s66z-zig-0.15.2/lib/zig/std/Progress.zig:660:34: 0x7f06bc904e78 in unlockStderrWriter (std.zig)
|
???:?:?: 0x1 in ??? (???)
|
||||||
pub fn unlockStderrWriter() void {
|
Unwind information for `???:0x1` was not available, trace may be incomplete
|
||||||
^
|
|
||||||
/nix/store/zbdyznm7b8yjvbcb18nladvffs79s66z-zig-0.15.2/lib/zig/std/debug.zig:219:36: 0x7f06bc8d968c in unlockStderrWriter (std.zig)
|
???:?:?: 0x7f96340dcccc in ??? (???)
|
||||||
std.Progress.unlockStderrWriter();
|
???:?:?: 0x7f96340b68fc in ??? (???)
|
||||||
^
|
???:?:?: 0x7f963410a16a in ??? (???)
|
||||||
/nix/store/zbdyznm7b8yjvbcb18nladvffs79s66z-zig-0.15.2/lib/zig/std/debug.zig:230:29: 0x7f06bc9a5da0 in print__anon_22298 (std.zig)
|
???:?:?: 0x7f96340dcb81 in ??? (???)
|
||||||
defer unlockStderrWriter();
|
???:?:?: 0x7f96340b68d9 in ??? (???)
|
||||||
^
|
???:?:?: 0x7f96341a5d31 in ??? (???)
|
||||||
/home/sear/git/zig-015-shared-bug/lib.zig:4:20: 0x7f06bc9a5ca1 in test_debug_print (lib.zig)
|
???:?:?: 0x7f96341a5ca1 in ??? (???)
|
||||||
std.debug.print("hi, this crashes\n", .{});
|
/home/sear/Backlog/engine/core/shared-repro/main.zig:17:21: 0x113d482 in main (main.zig)
|
||||||
^
|
|
||||||
/home/sear/git/zig-015-shared-bug/main.zig:17:21: 0x1139d96 in main (main.zig)
|
|
||||||
test_debug_print();
|
test_debug_print();
|
||||||
^
|
^
|
||||||
/nix/store/zbdyznm7b8yjvbcb18nladvffs79s66z-zig-0.15.2/lib/zig/std/start.zig:627:37: 0x113a261 in main (std.zig)
|
/nix/store/zbdyznm7b8yjvbcb18nladvffs79s66z-zig-0.15.2/lib/zig/std/start.zig:627:37: 0x113dc79 in posixCallMainAndExit (std.zig)
|
||||||
const result = root.main() catch |err| {
|
const result = root.main() catch |err| {
|
||||||
^
|
^
|
||||||
???:?:?: 0x7f06bca2a4d7 in ??? (libc.so.6)
|
/nix/store/zbdyznm7b8yjvbcb18nladvffs79s66z-zig-0.15.2/lib/zig/std/start.zig:232:5: 0x113d351 in _start (std.zig)
|
||||||
Unwind information for `libc.so.6:0x7f06bca2a4d7` was not available, trace may be incomplete
|
asm volatile (switch (native_arch) {
|
||||||
|
^
|
||||||
???:?:?: 0x7f06bca2a59a in ??? (libc.so.6)
|
|
||||||
???:?:?: 0x11603f4 in ??? (???)
|
|
||||||
run
|
run
|
||||||
└─ run exe repro failure
|
└─ run exe repro failure
|
||||||
error: the following command terminated unexpect
|
error: the following command terminated unexpectedly:
|
||||||
|
/home/sear/Backlog/engine/core/shared-repro/zig-out/bin/repro
|
||||||
|
|
||||||
|
Build Summary: 5/7 steps succeeded; 1 failed
|
||||||
|
run transitive failure
|
||||||
|
└─ run exe repro failure
|
||||||
|
|
||||||
|
error: the following build command failed with exit code 1:
|
||||||
|
.zig-cache/o/02ebcde8c5fdab533d40fa2b3ab58553/build /nix/store/zbdyznm7b8yjvbcb18nladvffs79s66z-zig-0.15.2/bin/zig /nix/store/zbdyznm7b8yjvbcb18nladvffs79s66z-zig-0.15.2/lib/zig /home/sear/Backlog/engine/core/shared-repro .zig-cache /home/sear/.cache/zig --seed 0x64fe2e98 -Z80bb1b3472eb4d3f run
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue