Bug 248546 - jemalloc Failed assertion: "tcache_success == (ret != NULL)"
Summary: jemalloc Failed assertion: "tcache_success == (ret != NULL)"
Status: Closed Not Enough Information
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2020-08-09 07:26 UTC by Marko Turk
Modified: 2020-08-20 16:02 UTC (History)
1 user (show)

See Also:

pkg-fallout mail (85.69 KB, text/plain)
2020-08-09 07:26 UTC, Marko Turk
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Turk 2020-08-09 07:26:34 UTC
Created attachment 217101 [details]
pkg-fallout mail


I'm the maintainer of newsboat and I received a pkg-fallout mail with this error:

building for: FreeBSD head-i386-default-job-03 13.0-CURRENT FreeBSD 13.0-CURRENT 1300104 i386
Compiling gettext-rs v0.4.1
     Running `/usr/local/bin/rustc --crate-name gettextrs /wrkdirs/usr/ports/www/newsboat/work/newsboat-2.20.1/cargo-crates/gettext
<jemalloc>: /usr/local/poudriere/jails/head-i386/usr/src/contrib/jemalloc/include/jemalloc/internal/tcache_inlines.h:52: Failed assertion: "tcache_success == (ret != NULL)"
error: could not compile `gettext-rs`.

I don't know if it's reproducible, I've received this failure mail just once. I see it builds ok for other FreeBSD versions (since the newest newsboat is already in ports).

Is this maybe a jemalloc issue?

Comment 1 Mark Johnston freebsd_committer 2020-08-20 16:02:32 UTC
Typically jemalloc assertion failures point to a bug in the application (double frees, etc.).  It is possible that there is a jemalloc bug here, but that would not be my starting assumption.

jemalloc has a number of debugging options available to help find application bugs, documented in the man page.  Please feel free to reopen the bug if you're able to narrow this down to a jemalloc issue.