gyro icon indicating copy to clipboard operation
gyro copied to clipboard

cannot publish

Open leecannon opened this issue 2 years ago • 0 comments

With latest gyro built from source with fix from #181 using stage2, passing -fstage1 works fine

Release-Safe:

$ gyro publish
thread 31213 panic: incorrect alignment
[1]    31213 IOT instruction (core dumped)  gyro publish

Debug:

$ gyro publish
Opening in existing browser session.
enter this code: 570A-2EDE
waiting for github authentication...
Segmentation fault at address 0x0
/home/lee/zig/0.10.0-dev.4176+6d7b0690a/files/lib/std/mem.zig:1307:5: 0x4578c4 in readIntNative__anon_31398 (gyro)
    return @ptrCast(*align(1) const T, bytes).*;
    ^
/home/lee/zig/0.10.0-dev.4176+6d7b0690a/files/lib/std/hash/wyhash.zig:14:29: 0x527802 in read_bytes__anon_53905 (gyro)
    return mem.readIntLittle(T, data[0..bytes]);
                            ^
/home/lee/zig/0.10.0-dev.4176+6d7b0690a/files/lib/std/hash/wyhash.zig:53:23: 0x4ed792 in hash (gyro)
            read_bytes(8, b[0..]),
                      ^
/home/lee/zig/0.10.0-dev.4176+6d7b0690a/files/lib/std/hash/wyhash.zig:170:36: 0x49f2dc in hash (gyro)
        return WyhashStateless.hash(seed, input);
                                   ^
/home/lee/zig/0.10.0-dev.4176+6d7b0690a/files/lib/std/hash_map.zig:92:32: 0x4ba576 in hashString (gyro)
    return std.hash.Wyhash.hash(0, s);
                               ^
/home/lee/zig/0.10.0-dev.4176+6d7b0690a/files/lib/std/hash_map.zig:79:26: 0x4ba54c in hash (gyro)
        return hashString(s);
                         ^
/home/lee/zig/0.10.0-dev.4176+6d7b0690a/files/lib/std/hash_map.zig:1123:34: 0x521c2f in getEntryAdapted__anon_52804 (gyro)
            comptime verifyContext(@TypeOf(ctx), @TypeOf(key), K, Hash, false);
                                 ^
/home/lee/zig/0.10.0-dev.4176+6d7b0690a/files/lib/std/hash_map.zig:1166:40: 0x4e1932 in getEntryContext (gyro)
        }
                                       ^
/home/lee/zig/0.10.0-dev.4176+6d7b0690a/files/lib/std/hash_map.zig:609:50: 0x47e195 in getEntry (gyro)
        pub fn getKeyPtrAdapted(self: Self, key: anytype, ctx: anytype) ?*K {
                                                 ^
/home/lee/src/gyro/src/Project.zig:203:38: 0x423cae in get (gyro)
    return if (self.packages.getEntry(name)) |entry| &entry.value_ptr.* else null;
                                     ^
/home/lee/src/gyro/src/commands.zig:930:71: 0x4190b7 in publish (gyro)
    api.postPublish(allocator, repository, access_token.?, project.get(name).?) catch |err| switch (err) {
                                                                      ^
/home/lee/src/gyro/src/main.zig:283:21: 0x417273 in run__anon_27485 (gyro)
                if (res.positionals.len > 0) res.positionals[0] else null,
                    ^
/home/lee/src/gyro/src/main.zig:144:24: 0x42835e in runCommands (gyro)
            try cmd.run(allocator, &args, &iter);
                       ^
/home/lee/src/gyro/src/main.zig:61:20: 0x429412 in main (gyro)
        runCommands(allocator) catch |err| {
                   ^
/home/lee/zig/0.10.0-dev.4176+6d7b0690a/files/lib/std/start.zig:578:37: 0x429bf9 in main (gyro)
            const result = root.main() catch |err| {
                                    ^
???:?:?: 0xac0d6f in ??? (???)
[1]    31562 IOT instruction (core dumped)  gyro publish

leecannon avatar Sep 25 '22 15:09 leecannon