From nobody Sat Jan 06 22:47:34 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T6wTC3qkxz55hmj for ; Sat, 6 Jan 2024 22:47:59 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4T6wTB2Vlkz4PkB for ; Sat, 6 Jan 2024 22:47:58 +0000 (UTC) (envelope-from farhan@farhan.codes) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=farhan.codes header.s=fm1 header.b=QTvTSe3l; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=udlOOSGr; dmarc=none; spf=pass (mx1.freebsd.org: domain of farhan@farhan.codes designates 64.147.123.21 as permitted sender) smtp.mailfrom=farhan@farhan.codes Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 407B53200A29 for ; Sat, 6 Jan 2024 17:47:56 -0500 (EST) Received: from imap45 ([10.202.2.95]) by compute5.internal (MEProxy); Sat, 06 Jan 2024 17:47:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=farhan.codes; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1704581275; x=1704667675; bh=cBUxkjM7q7D+z0SOx3iyfPxyVsaCv7pY eKuJegSuRYQ=; b=QTvTSe3lhLPlltWHrCMSqKPQmmzs4un340KUROFy+rG3oo/g Bci2A04GonkwZIMikaeaXlYbiRxiqHrAG65tf8LJWgZtd5ZUauRhASYLKVyIxLDN mtpfvD/+V5Cb2OmGmW2GkbS5lU60Mlbe4NFYGHN0u6TQ6vCo8hA1l8/pFFRKCDcM 1eQ3ds/66RdkBf/uYW1cgimsM2yTCgbmiwNiecv+pjQR+XHiD0K/wIpvhXmZgknn t9oipPCrg8TvA1p3Nbz4xMoPCxC11hlYN4CCtaT5bhfXWWCu4LgyYay94uCjy9WV vbo4MTMBm/zhNmH5zydJR5uQB6owNAxRIS4aqA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1704581275; x=1704667675; bh=cBUxkjM7q7D+z0SOx3iyfPxyVsaCv7pYeKu JegSuRYQ=; b=udlOOSGrbtY/ERp4Vf9xNiNELPQTTQongmff8v/fTIQ3kkP3Etj TP2F7sQdCOTSSR0oGYCP3eW18ZzFeBIh/tBvGwdWweNLUJEu4Pu5sAUlE+/l1mai sTH4N+NsVFwpW78DmGHxAxMt10JwZhXTbzVvdrOoyE8AR6AMLO2Of/Y+7Q7U69Sg n/54ru9CbEuCufoj7E/w7hEh4nKk8LuIXV3PiL6I+XybXgp/1yhWS5NI8Vz33G/t gWP56Jt4ueOh6fkNjsY4nAsSFwjbI6Hgx1CEpjPZhmQ0AlDXCFAdN0XJKqcisXVj DjKRqUkK38Y3SKjx78smi/L9k37VmMAqbTA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehvddgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedfhfgrrhhhrghnucfmhhgrnhdfuceofhgrrhhhrghnsehfrghr hhgrnhdrtghouggvsheqnecuggftrfgrthhtvghrnhepieejtdegteevhfegvdefieeghe ethfduudffkeevffejueegudevfeffuddvheegnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepfhgrrhhhrghnsehfrghrhhgrnhdrtghouggvsh X-ME-Proxy: Feedback-ID: i61914458:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 71896272007D; Sat, 6 Jan 2024 17:47:55 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1364-ga51d5fd3b7-fm-20231219.001-ga51d5fd3 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-Id: <5fe4d15c-f976-4a41-ac50-38ce6a25c289@app.fastmail.com> Date: Sat, 06 Jan 2024 17:47:34 -0500 From: "Farhan Khan" To: freebsd-hackers@freebsd.org Subject: jemalloc_rtree failed assertion error Content-Type: text/plain X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RWL_MAILSPIKE_EXCELLENT(-0.40)[64.147.123.21:from]; R_DKIM_ALLOW(-0.20)[farhan.codes:s=fm1,messagingengine.com:s=fm2]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.21]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.21:from]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[farhan.codes]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[farhan.codes:+,messagingengine.com:+] X-Rspamd-Queue-Id: 4T6wTB2Vlkz4PkB Hi all, I am writing some code on FreeBSD 15.0-CURRENT and getting this error that I do not understand: : 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? As an aside, I recommend that this is either documented in more detail because I found several people citing the problem but I did not find an explanation. Thanks! -- Farhan Khan PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE