{"action":"opened","issue":{"url":"https://api.github.com/repos/jemalloc/jemalloc/issues/214","labels_url":"https://api.github.com/repos/jemalloc/jemalloc/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/jemalloc/jemalloc/issues/214/comments","events_url":"https://api.github.com/repos/jemalloc/jemalloc/issues/214/events","html_url":"https://github.com/jemalloc/jemalloc/issues/214","id":62829146,"number":214,"title":"Failed assertion: \"tbin->ncached < tbin_info->ncached_max\"","user":{"login":"dcci","id":5737273,"avatar_url":"https://avatars.githubusercontent.com/u/5737273?v=3","gravatar_id":"","url":"https://api.github.com/users/dcci","html_url":"https://github.com/dcci","followers_url":"https://api.github.com/users/dcci/followers","following_url":"https://api.github.com/users/dcci/following{/other_user}","gists_url":"https://api.github.com/users/dcci/gists{/gist_id}","starred_url":"https://api.github.com/users/dcci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcci/subscriptions","organizations_url":"https://api.github.com/users/dcci/orgs","repos_url":"https://api.github.com/users/dcci/repos","events_url":"https://api.github.com/users/dcci/events{/privacy}","received_events_url":"https://api.github.com/users/dcci/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T23:46:26Z","updated_at":"2015-03-18T23:46:26Z","closed_at":null,"body":" % uname -a\r\nFreeBSD foo 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r277486: Wed Jan 21 16:31:48 UTC 2015     root@grind.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64\r\n\r\n% clang++ vector.cpp -o vector -std=c++11 -lpthread\r\n\r\nThis is the one I hit more often:\r\n\r\n% ./vector\r\n<jemalloc>: /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/tcache.h:405: Failed assertion: \"tbin->ncached < tb\r\nin_info->ncached_max\"\r\nAbort (core dumped)\r\n\r\nI also hit this (but happens less frequently)\r\n\r\n% ./vector\r\n<jemalloc>: jemalloc_arena.c:353: Failed assertion: \"p[i] == 0\"\r\nAbort (core dumped)\r\n\r\n\r\nThe issue is intermittent so you might want to run multiple times. I don't exclude there's a bug in the code but that shouldn't trigger assertion(s) internals to jemalloc anyway.\r\n\r\nCode:\r\nhttps://gist.github.com/dcci/96027c3d92c42fb03bec\r\n"}}