jemalloc is updated in base to 5.0 on Jun 15. The result is that firefox crashes minutes after startup, or crashes when doing a measurement in about:memory. The error is: <jemalloc>: jemalloc_ctl.c:1212: Failed assertion: "node->nchildren > 0" The reason is that malloc ctl stats.arenas.0.metadata.allocated is renamed to stats.arenas.0.internal (see https://github.com/jemalloc/jemalloc/commit/a0dd3a4483e2e72ee80e70424a6522f873f2c7ff and https://github.com/jemalloc/jemalloc/commit/751f2c332d91209c5ae3234fa444a20850067960), while firefox is still checking the old malloc ctl without checking the return value of mallctlnametomib. One temporary fix is modifying firefox binary and updating the string. Firefox should be patched for this.
A commit references this bug: Author: jbeich Date: Thu Jun 22 01:19:28 UTC 2017 New revision: 444091 URL: https://svnweb.freebsd.org/changeset/ports/444091 Log: gecko: phase out system jemalloc via 12.0-CURRENT as well https://bugzilla.mozilla.org/show_bug.cgi?id=1363992 PR: 220027 Changes: head/Mk/bsd.gecko.mk