#6245: [patch] [clang] kernel crash at hash_insert() ---------------------------+------------------------------------------------ Reporter: kaliber | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: R1 Component: System/Kernel | Version: R1/Development Keywords: clang | Blockedby: Patch: 1 | Platform: All Blocking: | ---------------------------+------------------------------------------------ Comment(by bonefish): Replying to [comment:4 kaliber]: > Replying to [comment:3 andreasf]: > > Any explanation ''why'' it crashes and why this change fixes it? > > Patch itself looks okay, but it might be working around a bug in clang. > > ((addr_t)&vnode->all_next - (addr_t)vnode) was a negative number somehow in this case. I'm not sure how it's possible. That's not exactly inspiring trust in the compiler. BTW, the long-term goal is to replace the C hash implementation by OpenHashTable. -- Ticket URL: <http://dev.haiku-os.org/ticket/6245#comment:5> Haiku <http://dev.haiku-os.org> Haiku - the operating system.