I have a virtual machine running current. It has been updated for
several months now without problems.
Yesterday I updated to VB 6.1 and it seems it can not build anymore.
The errore I get is this:
--- Frontend/CompilerInstance.o ---
<jemalloc>: jemalloc_arena.c:747: Failed assertion:
"nstime_compare(&decay->epoch, &time) <= 0"
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and
include the crash backtrace, preprocessed source, and associated run
0. Program arguments: c++ -target x86_64-unknown-freebsd14.0
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_VCS_VERSION_INC
-fdata-sections -gline-tables-only -MD
-Wno-format-zero-length -fstack-protector-strong -Wno-empty-body
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
-Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
-Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments
-fno-exceptions -fno-rtti -gline-tables-only -std=c++14 -stdlib=libc++
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module
4. Releasing pass 'Memory SSA'
<jemalloc>: Should own 0 locks of rank >= 1: decay(12)
Abort trap (core dumped)
*** [Frontend/CompilerInstance.o] Error code 134
make: stopped in /usr/src/lib/clang/libclang
After this, when I poweroff the machine, all six bufdaemons timeout after 60 seconds. I monitor de free memory and it does not go below 13 GB (it has 22 GB assigned). This is completely reproducible.
I don't have any syggestion or solution, but I have a few questions to try to make things clearer.
Is this the error happening inside the jail, while trying to build world?
Can you report the exact revision (git commit) you are running on the host and guest inside the jail? Also the revision you are trying to compile inside the jail.
This could be virtualbox but could also be a base problem.
(In reply to Guido Falsi from comment #1)
Ummm what jail?
My setup is:
Host: FreeBSD beastie 12.2-RELEASE-p6
VirtualBox 6.1 running main-n244663-f6e8256a965d: Sun Feb 7.
I'm trying to update that main-n244663-f6e8256a965d to latest commit. Between yesterday and today a few commits where picked up but none of them fix the issue.
Additionally, I also have a poudriere jail in that virtualized machine. That poudriere jail is in 13-current 14.0-CURRENT 1400003 e44a78ce6. That one also fails to update with the same jemalloc error.
This virtual box VM has the following settings:
* Enable I/O APIC
* 4 cpus execution cap 100%
* 22 GB RAM
* 128 GB disc
* Enabled Nested VT-x/AMD-V
* Enabled nested paging
I tried a make clean in /usr/src but the same error occurs when I try to make world.
Today I updated a laptop running current without any issues (not virtualized)
One more thing:
The machine was completely shut down between the VirtualBox upgrade to 6.1. It was not running or suspended or in taken back from a snapshot.
I just installed -legacy ports and was able to update the vm to FreeBSD vm-current 14.0-CURRENT FreeBSD 14.0-CURRENT #11 main-n245984-15221c552b3c