Bug 248546

Summary: jemalloc Failed assertion: "tcache_success == (ret != NULL)"
Product: Base System Reporter: Marko Turk <mt-bugs>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not Enough Information    
Severity: Affects Only Me CC: markj
Priority: ---    
Version: CURRENT   
Hardware: i386   
OS: Any   
Attachments:
Description Flags
pkg-fallout mail none

Description Marko Turk 2020-08-09 07:26:34 UTC
Created attachment 217101 [details]
pkg-fallout mail

Hi,

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
[...cut...]
<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?

Regards,
Marko
Comment 1 Mark Johnston freebsd_committer freebsd_triage 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.