{"thread":{"id":"51030","subject":"not ok 41 - test ident field is working","startedAt":"2019-05-03T20:18:25Z","lastAt":"2019-05-03T20:50:56Z","messageCount":2,"participants":["Jeffrey Walton","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"374890","messageId":"CAH8yC8kqHDDqsu++3an69Oq--hhabV8LGawD3uccykFYQDFvsw@mail.gmail.com","threadId":"51030","inReplyTo":null,"subject":"not ok 41 - test ident field is working","fromName":"Jeffrey Walton","fromEmail":"noloader@gmail.com","sentAt":"2019-05-03T20:18:02Z","receivedAt":"2019-05-03T20:18:25Z","isPatch":false,"sender":{"key":"noloader@gmail.com","avatar":null},"body":"Hi Everyone,\n\nI'm catching one failed self test under a sanitizer build. It looks\nlike there's some latent UB present during 'make check'\n\nok 39 - using --untracked-cache does not fail when core.untrackedCache is false\nok 40 - setting core.untrackedCache to keep\nnot ok 41 - test ident field is working\n#\n#               mkdir ../other_worktree &&\n#               cp -R done dthree dtwo four three ../other_worktree &&\n#               GIT_WORK_TREE=../other_worktree git status 2>../err &&\n#               echo \"warning: untracked cache is disabled on this\nsystem or location\" >../expect &&\n#               test_i18ncmp ../expect ../err\n#\nok 42 - untracked cache survives a checkout\nok 43 - untracked cache survives a commit\n\nI found one file called 'err' and it has:\n\n$ cat \"./t/trash directory.t7063-status-untracked-cache/err\"\nread-cache.c:1943:22: runtime error: load of misaligned address 0x7fba278d61ab f\nor type 'unsigned int', which requires 4 byte alignment\n0x7fba278d61ab: note: pointer points here\n 55  4e 54 52 00 00 02 9b 76  4c 6f 63 61 74 69 6f 6e  20 2f 68 6f 6d 65 2f 6a\n77 61 6c 74 6f 6e 2f\n              ^\ndir.c:2860:18: runtime error: load of misaligned address 0x7fba278d626e for type\n 'unsigned int', which requires 4 byte alignment\n0x7fba278d626e: note: pointer points here\n 00 00 00 00 00 00  00 06 13 26 3c 09 78 fb  9f ad 16 b2 d5 80 fb 80  0b 6d 81 1\nc 3f f0 00 00  00 00\n             ^\newah/ewah_io.c:97:19: runtime error: load of misaligned address 0x7fba278d62f5 f\nor type 'unsigned int', which requires 4 byte alignment\n0x7fba278d62f5: note: pointer points here\n 74 77 6f 00 00 00 00  06 00 00 00 02 00 00 00  02 00 00 00 00 00 00 00  00 00 0\n0 00 3f 00 00 00  00\n             ^\newah/ewah_io.c:103:41: runtime error: load of misaligned address 0x7fba278d62f9\nfor type 'unsigned int', which requires 4 byte alignment\n0x7fba278d62f9: note: pointer points here\n 00 00 00  06 00 00 00 02 00 00 00  02 00 00 00 00 00 00 00  00 00 00 00 3f 00 0\n0 00  00 00 00 00 06\n              ^\newah/ewah_io.c:129:29: runtime error: load of misaligned address 0x7fba278d630d\nfor type 'unsigned int', which requires 4 byte alignment\n0x7fba278d630d: note: pointer points here\n 00 00 00 3f 00 00 00  00 00 00 00 06 00 00 00  02 00 00 00 02 00 00 00  00 00 0\n0 00 00 00 00 00  3c\n             ^\nwarning: untracked cache is disabled on this system or location\n\nJeff\n"},{"id":"374892","messageId":"20190503205052.GA17551@sigill.intra.peff.net","threadId":"51030","inReplyTo":"CAH8yC8kqHDDqsu++3an69Oq--hhabV8LGawD3uccykFYQDFvsw@mail.gmail.com","subject":"Re: not ok 41 - test ident field is working","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2019-05-03T20:50:52Z","receivedAt":"2019-05-03T20:50:56Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, May 03, 2019 at 04:18:02PM -0400, Jeffrey Walton wrote:\n\n> I'm catching one failed self test under a sanitizer build. It looks\n> like there's some latent UB present during 'make check'\n\nHow are you providing sanitizer options? If you're just putting\n-fsanitize=undefined in the compiler flags, that is known to fail. For\nexample, on some platforms we'll default to unaligned loads when it's\nfaster and well-defined on that platform.\n\nAnd that's what you're seeing here:\n\n> read-cache.c:1943:22: runtime error: load of misaligned address 0x7fba278d61ab f\n> or type 'unsigned int', which requires 4 byte alignment\n\nsince this is a get_be32() call.\n\nYou can can add -DNO_UNALIGNED_LOADS to fix this. However, we have some\nMakefile logic for doing this already, and:\n\n  make SANITIZE=undefined test\n\nshould work. My normal test for memory problems is:\n\n  make SANITIZE=address,undefined test\n\n-Peff\n"}]}