mjansson / rpmalloc

Public domain cross platform lock free thread caching 16-byte aligned memory allocator implemented in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

segmentation fault in small test

gstvrmrlpz opened this issue · comments

segmentation fault in small test
can see in https://pccito.ugr.es/bug2/

Seems to me to be a bug in your code, you're not initializing the stack head member variable, so the first push will get a next pointer that is invalid.

your are right... :)