Closed travisstaloch closed 5 months ago
here is the panic from before either of these commits:
/tmp/http.zig $ zig build test
...thread 430645 panic: incorrect alignment
====== expected this output: =========
HTTP/1.1 404
Content-Length: 9
Not Found␃
======== instead found this: =========
␃
======================================
First difference occurs on line 1:
expected:
HTTP/1.1 404
^ ('\x48')
found:
^ (end of string)
================================================================================
"httpz: no route" - TestExpectedEqual
================================================================================
/tmp/http.zig/src/worker.zig:238:61: 0x14a220d in processSignal (test)
const conn: *Conn = @ptrFromInt(@as(*usize, @alignCast(@ptrCast(buf[data_start..data_end]))).*);
^
/tmp/http.zig/src/worker.zig:132:47: 0x14118fa in run (test)
if (self.processSignal(signal)) {
^
/media/travis/data/Users/Travis/Documents/Code/zig/zig/download/0.12.0-dev.2540+776cd673f/files/lib/std/Thread.zig:411:13: 0x1385083 in callFn__anon_59407 (test)
@call(.auto, f, args);
^
/media/travis/data/Users/Travis/Documents/Code/zig/zig/download/0.12.0-dev.2540+776cd673f/files/lib/std/Thread.zig:679:30: 0x12f26a2 in entryFn (test)
return callFn(f, args_ptr.*);
^
./nptl/pthread_create.c:442:8: 0x784f86494ac2 in start_thread (pthread_create.c)
here is the error from before the second commit