Dex2oatd: Difference between revisions

From JCRDoc
No edit summary
No edit summary
Line 133: Line 133:
  dex2oatd E 03-22 18:10:37 278393 278393 mutex-inl.h:141] Lock level violation: holding "linear alloc" (level DefaultMutexLevel - 45) while locking "mutator lock" (level MutatorLock - 72)
  dex2oatd E 03-22 18:10:37 278393 278393 mutex-inl.h:141] Lock level violation: holding "linear alloc" (level DefaultMutexLevel - 45) while locking "mutator lock" (level MutatorLock - 72)
  Aborting thread:
  Aborting thread:
"main" prio=5 tid=1 Runnable (still starting up)
"main" prio=5 tid=1 Runnable (still starting up)
   | group="" sCount=0 ucsCount=0 flags=0 obj=(nil) self=0x5607f4eff680
   | group="" sCount=0 ucsCount=0 flags=0 obj=(nil) self=0x5607f4eff680
   | sysTid=278393 nice=19 cgrp=default sched=0/0 handle=0x7f5b621b9740
   | sysTid=278393 nice=19 cgrp=default sched=0/0 handle=0x7f5b621b9740

Revision as of 09:03, 1 April 2023

General Details

Device: Moto G5

Codename: cedric

Rom: LineageOS

Android Version: 13

Security Patch: February 2023

Error

FAILED: out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-core-icu4j.art out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-core-icu4j.oat out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-core-icu4j.vdex out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-ext.art out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-ext.oat out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-ext.vdex out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-framework-graphics.art out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-framework-graphics.oat out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-framework-graphics.vdex out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-framework.art out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-framework.oat out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-framework.vdex out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-ims-common.art out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-ims-common.oat out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-ims-common.vdex out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-telephony-common.art out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-telephony-common.oat out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-telephony-common.vdex out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-telephony-ext.art out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-telephony-ext.oat out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-telephony-ext.vdex out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-voip-common.art out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-voip-common.oat out/soong/cedric/dex_bootjars/android/system/framework/arm/boot-voip-common.vdex out/soong/cedric/dex_bootjars/android/system/framework/arm/boot.invocation out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/boot-core-icu4j.oat out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/boot-ext.oat out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/boot-framework-graphics.oat out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/boot-framework.oat out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/boot-ims-common.oat out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/boot-telephony-common.oat out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/boot-telephony-ext.oat out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/boot-voip-common.oat
mkdir -p out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm && rm -f out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/*.art out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/*.oat out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/*.invocation && rm -f out/soong/cedric/dex_bootjars/android/system/framework/arm/*.art out/soong/cedric/dex_bootjars/android/system/framework/arm/*.oat out/soong/cedric/dex_bootjars/android/system/framework/arm/*.invocation && ANDROID_LOG_TAGS="*:e" out/host/linux-x86/bin/dex2oatd --avoid-storing-invocation --write-invocation-to=out/soong/cedric/dex_bootjars/android/system/framework/arm/boot.invocation --runtime-arg -Xms64m --runtime-arg -Xmx64m --profile-file=out/soong/cedric/dex_bootjars/boot.prof --dirty-image-objects=frameworks/base/config/dirty-image-objects --runtime-arg -Xbootclasspath:out/soong/cedric/dex_artjars_input/core-oj.jar:out/soong/cedric/dex_artjars_input/core-libart.jar:out/soong/cedric/dex_artjars_input/okhttp.jar:out/soong/cedric/dex_artjars_input/bouncycastle.jar:out/soong/cedric/dex_artjars_input/apache-xml.jar:out/soong/cedric/dex_bootjars_input/telephony-ext.jar:out/soong/cedric/dex_bootjars_input/framework.jar:out/soong/cedric/dex_bootjars_input/framework-graphics.jar:out/soong/cedric/dex_bootjars_input/ext.jar:out/soong/cedric/dex_bootjars_input/telephony-common.jar:out/soong/cedric/dex_bootjars_input/voip-common.jar:out/soong/cedric/dex_bootjars_input/ims-common.jar:out/soong/cedric/dex_bootjars_input/core-icu4j.jar --runtime-arg -Xbootclasspath-locations:/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/telephony-ext.jar:/system/framework/framework.jar:/system/framework/framework-graphics.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/apex/com.android.i18n/javalib/core-icu4j.jar --boot-image=out/soong/cedric/dex_artjars/android/apex/art_boot_images/javalib/boot.art --preloaded-classes=frameworks/base/config/preloaded-classes --dex-file=out/soong/cedric/dex_bootjars_input/telephony-ext.jar --dex-file=out/soong/cedric/dex_bootjars_input/framework.jar --dex-file=out/soong/cedric/dex_bootjars_input/framework-graphics.jar --dex-file=out/soong/cedric/dex_bootjars_input/ext.jar --dex-file=out/soong/cedric/dex_bootjars_input/telephony-common.jar --dex-file=out/soong/cedric/dex_bootjars_input/voip-common.jar --dex-file=out/soong/cedric/dex_bootjars_input/ims-common.jar --dex-file=out/soong/cedric/dex_bootjars_input/core-icu4j.jar --dex-location=/system/framework/telephony-ext.jar --dex-location=/system/framework/framework.jar --dex-location=/system/framework/framework-graphics.jar --dex-location=/system/framework/ext.jar --dex-location=/system/framework/telephony-common.jar --dex-location=/system/framework/voip-common.jar --dex-location=/system/framework/ims-common.jar --dex-location=/apex/com.android.i18n/javalib/core-icu4j.jar --generate-debug-info --generate-build-id --image-format=lz4hc --oat-symbols=out/soong/cedric/dex_bootjars_unstripped/android/system/framework/arm/boot.oat --strip --oat-file=out/soong/cedric/dex_bootjars/android/system/framework/arm/boot.oat --oat-location=out/soong/cedric/dex_bootjars/android/system/framework/boot.oat --image=out/soong/cedric/dex_bootjars/android/system/framework/arm/boot.art --instruction-set=arm --android-root=out/empty --no-inline-from=core-oj.jar --force-determinism --abort-on-hard-verifier-error --instruction-set-variant=cortex-a53 --instruction-set-features=default --generate-mini-debug-info || ( echo 'ERROR: Dex2oat failed to compile a boot image.It is likely that the boot classpath is inconsistent.Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors.' ; false ) # hash of input list: 579c0ff6b24a85ca383e34e1fc8c113f72a1b54ad451b2a883486c1ecaca392d
dex2oatd F 03-22 18:10:20 278393 278393 mem_map_arena_pool.cc:65] Check failed: map.IsValid() Failed anonymous mmap((nil), 131072, 0x3, 0x22, -1, 0): Cannot allocate memory. See process maps in the log.
dex2oatd E 03-22 18:10:20 278393 278393 thread-inl.h:170] holding "DexCache lock" at point where thread suspension is expected
dex2oatd E 03-22 18:10:20 278393 278393 thread-inl.h:170] holding "linear alloc" at point where thread suspension is expected
dex2oatd E 03-22 18:10:20 278393 278393 mutex-inl.h:141] Lock level violation: holding "DexCache lock" (level DexCacheLock - 46) while locking "mutator lock" (level MutatorLock - 72)
dex2oatd E 03-22 18:10:20 278393 278393 mutex-inl.h:141] Lock level violation: holding "linear alloc" (level DefaultMutexLevel - 45) while locking "mutator lock" (level MutatorLock - 72)
Runtime aborting...
All threads:
dex2oatd E 03-22 18:10:20 278393 278393 mutex-inl.h:141] Lock level violation: holding "DexCache lock" (level DexCacheLock - 46) while locking "thread list lock" (level ThreadListLock - 59)
dex2oatd E 03-22 18:10:20 278393 278393 mutex-inl.h:141] Lock level violation: holding "linear alloc" (level DefaultMutexLevel - 45) while locking "thread list lock" (level ThreadListLock - 59)
DALVIK THREADS (3):
dex2oatd E 03-22 18:10:20 278393 278393 mutex-inl.h:141] Lock level violation: holding "DexCache lock" (level DexCacheLock - 46) while locking "thread list lock" (level ThreadListLock - 59)
dex2oatd E 03-22 18:10:20 278393 278393 mutex-inl.h:141] Lock level violation: holding "linear alloc" (level DefaultMutexLevel - 45) while locking "thread list lock" (level ThreadListLock - 59)
"main" prio=5 tid=1 Runnable (still starting up)
 | group="" sCount=0 ucsCount=0 flags=0 obj=(nil) self=0x5607f4eff680
 | sysTid=278393 nice=19 cgrp=default sched=0/0 handle=0x7f5b621b9740
 | state=R schedstat=( 19436823867 4121352007 1089 ) utm=1909 stm=34 core=2 HZ=100
 | stack=0x7ffc49027000-0x7ffc49029000 stackSize=8188KB
 | held mutexes= "abort lock" "linear alloc" "DexCache lock" "mutator lock"(shared held)
 native: #00 pc 0000000000e89ea8  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (UnwindStackCurrent::UnwindFromContext(unsigned long, void*)+88)
 native: #01 pc 0000000000e84add  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+141)
 native: #02 pc 0000000000eb8316  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const+422)
 native: #03 pc 0000000000ee16ff  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::DumpCheckpoint::Run(art::Thread*)+575)
 native: #04 pc 0000000000eda390  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+288)
 native: #05 pc 0000000000ed9f75  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)+357)
 native: #06 pc 0000000000dabbaa  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+186)
 native: #07 pc 0000000000d953cf  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::Runtime::Abort(char const*)+399)
 native: #08 pc 00000000016c085c  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+60)
 native: #09 pc 00000000016c04e8  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (android::base::LogMessage::~LogMessage()+328)
 native: #10 pc 0000000000e16552  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::MemMapArena::Allocate(unsigned long, bool, char const*)+274)
 native: #11 pc 0000000000e16398  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::MemMapArena::MemMapArena(unsigned long, bool, char const*)+72)
 native: #12 pc 0000000000e16796  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::MemMapArenaPool::AllocArena(unsigned long)+102)
 native: #13 pc 00000000016d6fed  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ArenaAllocator::AllocFromNewArena(unsigned long)+61)
 native: #14 pc 0000000000c86f1e  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ArenaAllocator::AllocAlign16(unsigned long, art::ArenaAllocKind)+254)
 native: #15 pc 0000000000c86935  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::LinearAlloc::AllocAlign16(art::Thread*, unsigned long)+37)
 native: #16 pc 00000000007c5f23  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (std::__1::atomic<art::mirror::NativeDexCachePair<art::ArtMethod> >* art::mirror::DexCache::AllocArray<std::__1::atomic<art::mirror::NativeDexCachePair<art::ArtMethod> >, 1024ul>(art::MemberOffset, art::MemberOffset, unsigned long)+387)
 native: #17 pc 000000000078813f  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ClassLinker::FindResolvedMethod(art::ObjPtr<art::mirror::Class>, art::ObjPtr<art::mirror::DexCache>, art::ObjPtr<art::mirror::ClassLoader>, unsigned int)+2911)
 native: #18 pc 0000000000658d94  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ClassLinker::LookupResolvedMethod(unsigned int, art::ObjPtr<art::mirror::DexCache>, art::ObjPtr<art::mirror::ClassLoader>)+756)
 native: #19 pc 00000000006585b4  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::linker::OatWriter::WriteCodeMethodVisitor::GetTargetMethod(art::linker::LinkerPatch const&)+132)
 native:   std::__1::__compressed_pair_elem<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__rep, 0, false>::__compressed_pair_elem()
 native:    external/libcxx/include/memory:2140
 native:   std::__1::__compressed_pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__rep, std::__1::allocator<char> >::__compressed_pair<true, void>()
 native:    external/libcxx/include/memory:2234
 native:   std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string<decltype(nullptr)>(char const*)
 native:    external/libcxx/include/string:820
 native:   UnwindStackCurrent::UnwindFromContext(unsigned long, void*)
 native:    system/unwinding/libbacktrace/UnwindStack.cpp:180
 native:   art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)
 native:    art/runtime/native_stack_dump.cc:339
 native: #20 pc 0000000000655d5c  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::linker::OatWriter::WriteCodeMethodVisitor::VisitMethod(art::linker::OatWriter::OrderedMethodData const&)+1180)
 native:   art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const
 native:    art/runtime/thread.cc:2298
 native: #21 pc 000000000063930f  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::linker::OatWriter::WriteCodeDexFiles(art::OutputStream*, unsigned long, unsigned long)+447)
 native:   art::DumpCheckpoint::Run(art::Thread*)
 native:    art/runtime/thread_list.cc:213
 native:   art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)
 native:    art/runtime/thread_list.cc:374
 native:   art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)
 native:    art/runtime/thread_list.cc:257
 native:   art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
 native:    art/runtime/runtime.cc:554
 native:   art::Dumpable<art::AbortState>::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
 native:    art/libartbase/base/dumpable.h:38
 native:   std::__1::basic_ostream<char, std::__1::char_traits<char> >& art::operator<< <art::AbortState>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Dumpable<art::AbortState> const&)
 native:    art/libartbase/base/dumpable.h:49
 native:   art::Runtime::Abort(char const*)
 native:    art/runtime/runtime.cc:677
 native: #22 pc 0000000000637d10  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::linker::OatWriter::WriteCode(art::OutputStream*)+208)
 native: #23 pc 0000000000496800  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::Dex2Oat::WriteOutputFiles(_jobject*)+1536)
 native: #24 pc 000000000047bbb0  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (main+1552)
 native: #25 pc 0000000000027189  /usr/lib/x86_64-linux-gnu/libc.so.6 (???) (BuildId: 4aff0f9d796e67d413e44f332edace9ac0ca2401)
 native: #26 pc 0000000000027244  /usr/lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+132) (BuildId: 4aff0f9d796e67d413e44f332edace9ac0ca2401)
 native:   __libc_start_main
 native:    ??:?
 native: #27 pc 0000000000420f28  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (???)
 (no managed stack frames)
"Mini-debug-info writer worker thread 0" prio=5 tid=2 Native (still starting up)
 | group="" sCount=1 ucsCount=0 flags=1 obj=(nil) self=0x7f5b48100150
 | sysTid=278665 nice=19 cgrp=default sched=0/0 handle=0x7f5b592896c0
 | state=S schedstat=( 338508 8259912 1 ) utm=0 stm=0 core=7 HZ=100
 | stack=0x7f5b59189000-0x7f5b5918b000 stackSize=1028KB
 | held mutexes=
 native: #00 pc 00000000001015a7  /usr/lib/x86_64-linux-gnu/libc.so.6 (syscall+23) (BuildId: 4aff0f9d796e67d413e44f332edace9ac0ca2401)
 native:   syscall
 native:    ??:?
 native: #01 pc 0000000000732a70  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+208)
 native: #02 pc 0000000000ee3445  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ThreadPool::GetTask(art::Thread*)+117)
 native:   art::futex(int volatile*, int, int, timespec const*, int volatile*, int)
 native:    art/runtime/base/mutex-inl.h:43
 native:   art::ConditionVariable::WaitHoldingLocks(art::Thread*)
 native:    art/runtime/base/mutex.cc:1087
 native: #03 pc 0000000000ee2871  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ThreadPoolWorker::Run()+129)
 native: #04 pc 0000000000ee2388  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ThreadPoolWorker::Callback(void*)+168)
 native: #05 pc 0000000000088fd3  /usr/lib/x86_64-linux-gnu/libc.so.6 (???) (BuildId: 4aff0f9d796e67d413e44f332edace9ac0ca2401)
 native: #06 pc 000000000010966b  /usr/lib/x86_64-linux-gnu/libc.so.6 (???) (BuildId: 4aff0f9d796e67d413e44f332edace9ac0ca2401)
 (no managed stack frames)
"Mini-debug-info writer worker thread 0" prio=5 tid=3 Native (still starting up)
 | group="" sCount=1 ucsCount=0 flags=1 obj=(nil) self=0x7f5af006ce10
 | sysTid=278667 nice=19 cgrp=default sched=0/0 handle=0x7f5b591886c0
 | state=S schedstat=( 148280760 36351671 7 ) utm=14 stm=0 core=8 HZ=100
 | stack=0x7f5b59088000-0x7f5b5908a000 stackSize=1028KB
 | held mutexes=
 native: #00 pc 00000000001015a7  /usr/lib/x86_64-linux-gnu/libc.so.6 (syscall+23) (BuildId: 4aff0f9d796e67d413e44f332edace9ac0ca2401)
 native:   syscall
 native:    ??:?
 native: #01 pc 0000000000732a70  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+208)
 native: #02 pc 0000000000ee3445  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ThreadPool::GetTask(art::Thread*)+117)
 native: #03 pc 0000000000ee2871  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ThreadPoolWorker::Run()+129)
 native:   art::futex(int volatile*, int, int, timespec const*, int volatile*, int)
 native:    art/runtime/base/mutex-inl.h:43
 native:   art::ConditionVariable::WaitHoldingLocks(art::Thread*)
 native:    art/runtime/base/mutex.cc:1087
 native: #04 pc 0000000000ee2388  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ThreadPoolWorker::Callback(void*)+168)
 native: #05 pc 0000000000088fd3  /usr/lib/x86_64-linux-gnu/libc.so.6 (???) (BuildId: 4aff0f9d796e67d413e44f332edace9ac0ca2401)
 native: #06 pc 000000000010966b  /usr/lib/x86_64-linux-gnu/libc.so.6 (???) (BuildId: 4aff0f9d796e67d413e44f332edace9ac0ca2401)
 (no managed stack frames)
dex2oatd E 03-22 18:10:37 278393 278393 thread-inl.h:170] holding "DexCache lock" at point where thread suspension is expected
dex2oatd E 03-22 18:10:37 278393 278393 thread-inl.h:170] holding "linear alloc" at point where thread suspension is expected
dex2oatd E 03-22 18:10:37 278393 278393 thread-inl.h:170] holding "abort lock" at point where thread suspension is expected
dex2oatd E 03-22 18:10:37 278393 278393 mutex-inl.h:141] Lock level violation: holding "DexCache lock" (level DexCacheLock - 46) while locking "mutator lock" (level MutatorLock - 72)
dex2oatd E 03-22 18:10:37 278393 278393 mutex-inl.h:141] Lock level violation: holding "linear alloc" (level DefaultMutexLevel - 45) while locking "mutator lock" (level MutatorLock - 72)
Aborting thread:
"main" prio=5 tid=1 Runnable (still starting up)
 | group="" sCount=0 ucsCount=0 flags=0 obj=(nil) self=0x5607f4eff680
 | sysTid=278393 nice=19 cgrp=default sched=0/0 handle=0x7f5b621b9740
 | state=R schedstat=( 19571033801 4310273704 1205 ) utm=1920 stm=36 core=10 HZ=100
 | stack=0x7ffc49027000-0x7ffc49029000 stackSize=8188KB
 | held mutexes= "abort lock" "linear alloc" "DexCache lock" "mutator lock"(shared held)
 native: #00 pc 0000000000e89ea8  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (UnwindStackCurrent::UnwindFromContext(unsigned long, void*)+88)
 native: #01 pc 0000000000e84add  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+141)
 native: #02 pc 0000000000eb8316  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const+422)
 native: #03 pc 0000000000dabe7d  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*) const+93)
 native: #04 pc 0000000000d953cf  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::Runtime::Abort(char const*)+399)
 native: #05 pc 00000000016c085c  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+60)
 native: #06 pc 00000000016c04e8  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (android::base::LogMessage::~LogMessage()+328)
 native: #07 pc 0000000000e16552  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::MemMapArena::Allocate(unsigned long, bool, char const*)+274)
 native: #08 pc 0000000000e16398  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::MemMapArena::MemMapArena(unsigned long, bool, char const*)+72)
 native: #09 pc 0000000000e16796  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::MemMapArenaPool::AllocArena(unsigned long)+102)
 native: #10 pc 00000000016d6fed  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ArenaAllocator::AllocFromNewArena(unsigned long)+61)
 native: #11 pc 0000000000c86f1e  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ArenaAllocator::AllocAlign16(unsigned long, art::ArenaAllocKind)+254)
 native: #12 pc 0000000000c86935  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::LinearAlloc::AllocAlign16(art::Thread*, unsigned long)+37)
 native: #13 pc 00000000007c5f23  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (std::__1::atomic<art::mirror::NativeDexCachePair<art::ArtMethod> >* art::mirror::DexCache::AllocArray<std::__1::atomic<art::mirror::NativeDexCachePair<art::ArtMethod> >, 1024ul>(art::MemberOffset, art::MemberOffset, unsigned long)+387)
 native: #14 pc 000000000078813f  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ClassLinker::FindResolvedMethod(art::ObjPtr<art::mirror::Class>, art::ObjPtr<art::mirror::DexCache>, art::ObjPtr<art::mirror::ClassLoader>, unsigned int)+2911)
 native: #15 pc 0000000000658d94  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::ClassLinker::LookupResolvedMethod(unsigned int, art::ObjPtr<art::mirror::DexCache>, art::ObjPtr<art::mirror::ClassLoader>)+756)
 native: #16 pc 00000000006585b4  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::linker::OatWriter::WriteCodeMethodVisitor::GetTargetMethod(art::linker::LinkerPatch const&)+132)
 native: #17 pc 0000000000655d5c  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::linker::OatWriter::WriteCodeMethodVisitor::VisitMethod(art::linker::OatWriter::OrderedMethodData const&)+1180)
 native: #18 pc 000000000063930f  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::linker::OatWriter::WriteCodeDexFiles(art::OutputStream*, unsigned long, unsigned long)+447)
 native: #19 pc 0000000000637d10  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::linker::OatWriter::WriteCode(art::OutputStream*)+208)
 native:   std::__1::__compressed_pair_elem<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__rep, 0, false>::__compressed_pair_elem()
 native:    external/libcxx/include/memory:2140
 native:   std::__1::__compressed_pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__rep, std::__1::allocator<char> >::__compressed_pair<true, void>()
 native:    external/libcxx/include/memory:2234
 native:   std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string<decltype(nullptr)>(char const*)
 native:    external/libcxx/include/string:820
 native:   UnwindStackCurrent::UnwindFromContext(unsigned long, void*)
 native:    system/unwinding/libbacktrace/UnwindStack.cpp:180
 native:   art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)
 native:    art/runtime/native_stack_dump.cc:339
 native: #20 pc 0000000000496800  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (art::Dex2Oat::WriteOutputFiles(_jobject*)+1536)
 native: #21 pc 000000000047bbb0  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (main+1552)
 native:   art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const
 native:    art/runtime/thread.cc:2298
 native:   art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*) const
 native:    art/runtime/runtime.cc:575
 native:   art::Dumpable<art::AbortState>::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
 native:    art/libartbase/base/dumpable.h:38
 native:   std::__1::basic_ostream<char, std::__1::char_traits<char> >& art::operator<< <art::AbortState>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Dumpable<art::AbortState> const&)
 native:    art/libartbase/base/dumpable.h:49
 native:   art::Runtime::Abort(char const*)
 native:    art/runtime/runtime.cc:677
 native: #22 pc 0000000000027189  /usr/lib/x86_64-linux-gnu/libc.so.6 (???) (BuildId: 4aff0f9d796e67d413e44f332edace9ac0ca2401)
 native: #23 pc 0000000000027244  /usr/lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+132) (BuildId: 4aff0f9d796e67d413e44f332edace9ac0ca2401)
 native:   __libc_start_main
 native:    ??:?
 native: #24 pc 0000000000420f28  /var/lib/jenkins/workspace/Los13/out/host/linux-x86/bin/dex2oatd64 (???)
 (no managed stack frames)
Aborted (core dumped)
ERROR: Dex2oat failed to compile a boot image.It is likely that the boot classpath is inconsistent.Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors.

Solution

Run

cd art && git fetch https://github.com/LeafOS-Project/android_art/ 67006f22e3f249587dc25e23013ba008e56438a9 && git cherry-pick FETCH_HEAD

in the root dir of your rom rebuild after this

This is a kernel side issue and is fixed in linux 6.3 and seems to only affect 6.1 and 6.2 kernels so far.