Re: jemalloc_rtree failed assertion error

From: Paul Floyd <paulf2718_at_gmail.com>
Date: Tue, 09 Jan 2024 06:13:35 UTC

> On 6 Jan 2024, at 23:47, Farhan Khan <farhan@farhan.codes> wrote:
> 
> Hi all,
> 
> I am writing some code on FreeBSD 15.0-CURRENT and getting this error that I do not understand:
> 
> <jemalloc>: jemalloc_rtree.c:205: Failed assertion: "!dependent || leaf != NULL"
> 
> In this case, it happens during a realloc() call. This may very well be a bug in my code, but the message is unclear to me. I found the section the section in the code (/usr/src/contrib/jemalloc/src/rtree.c) but without thoroughly diving into the malloc() call I do not understand it. The jemalloc(3) man page has a section called "DIAGNOSTIC MESSAGES", but it does not offer many details.
> 
> What does this error mean?
> 


Have you checked that you haven’t corrupted the heap?

Does the exe run clean under Valgrind Memcheck and/or Address Sanitizer?


A+
Paul