You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Program received signal SIGSEGV, Segmentation fault.
0x000000000041a390 in __ac_X31_hash_string (s=0xffffffffb0000950 <Address 0xffffffffb0000950 out of bounds>)
at lib/haywire/src/haywire/khash.h:387
387 khint_t h = (khint_t)*s;
(gdb) bt
#0 0x000000000041a390 in __ac_X31_hash_string (s=0xffffffffb0000950 <Address 0xffffffffb0000950 out of bounds>)
at lib/haywire/src/haywire/khash.h:387
#1 0x000000000041aa48 in kh_put_string_hashmap (h=0x7fffb0000920,
key=0xffffffffb0000950 <Address 0xffffffffb0000950 out of bounds>, ret=0x7fffb83e1dd8)
at lib/haywire/src/haywire/http_server.c:34
I'm pretty new to C, is there something I need to do to make this work in a separate thread? It works fine if I don't use a thread. I'm not sure why there's a problem because I'm calling all the khash methods mentioned above in the same thread.
Any help would be greatly appreciated :)
The text was updated successfully, but these errors were encountered:
I'm not looking for locking or a lock-free implementation of khash (although that would be nice!)
I hate it declared as this at the top of the .c file:
In the .h file I have this:
Later on I spawn a new thread, and inside the new thread I do the following
The kh_put() call segfaults with the following:
I'm pretty new to C, is there something I need to do to make this work in a separate thread? It works fine if I don't use a thread. I'm not sure why there's a problem because I'm calling all the khash methods mentioned above in the same thread.
Any help would be greatly appreciated :)
The text was updated successfully, but these errors were encountered: