I meet errors when i build android O on ubuntu 16.04

1,693 views
Skip to first unread message

longsha...@gmail.com

unread,
Oct 26, 2017, 11:37:52 AM10/26/17
to Android Building
 When I compiling android O on 16.04, error happened, the Log as blow. I have tried to serach all google and couldn't found any usfull information, Could you help me to find out the reason ? Thanks very much.

 ubuntu:16.04
    kernel:4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
    ============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=msm8937_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPR1.170623.026
OUT_DIR=out
============================================
[  2% 722/24364] target dex2oat: out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.art
FAILED: out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.art 
/bin/bash -c "(mkdir -p out/target/product/msm8937_64/symbols/system/framework/arm/ ) && (rm -f out/target/product/msm8937_64/dex_bootjars/system/framework/arm//*.art out/target/product/msm8937_64/dex_bootjars/system/framework/arm//*.oat ) && (rm -f out/target/product/msm8937_64/symbols/system/framework/arm//*.art ) && (rm -f out/target/product/msm8937_64/symbols/system/framework/arm//*.oat ) && (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m  --runtime-arg -Xmx64m  --image-classes=frameworks/base/preloaded-classes  --dex-file=out/target/common/obj/JAVA_LIBRARIES/com.nxp.nfc.nq_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/com.qualcomm.qti.camera_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/QPerformance_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/legacy-test_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.manager-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/WfdCommon_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/oem-services_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/qcom.fmradio_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-ext_intermediates/javalib.jar  --dex-location=/system/framework/com.nxp.nfc.nq.jar --dex-location=/system/framework/com.qualcomm.qti.camera.jar --dex-location=/system/framework/QPerformance.jar --dex-location=/system/framework/core-oj.jar --dex-location=/system/framework/core-libart.jar --dex-location=/system/framework/conscrypt.jar --dex-location=/system/framework/okhttp.jar --dex-location=/system/framework/legacy-test.jar --dex-location=/system/framework/bouncycastle.jar --dex-location=/system/framework/ext.jar --dex-location=/system/framework/framework.jar --dex-location=/system/framework/telephony-common.jar --dex-location=/system/framework/voip-common.jar --dex-location=/system/framework/ims-common.jar --dex-location=/system/framework/apache-xml.jar --dex-location=/system/framework/org.apache.http.legacy.boot.jar --dex-location=/system/framework/android.hidl.base-V1.0-java.jar --dex-location=/system/framework/android.hidl.manager-V1.0-java.jar --dex-location=/system/framework/tcmiface.jar --dex-location=/system/framework/WfdCommon.jar --dex-location=/system/framework/oem-services.jar --dex-location=/system/framework/qcom.fmradio.jar --dex-location=/system/framework/telephony-ext.jar  --oat-symbols=out/target/product/msm8937_64/symbols/system/framework/arm/boot.oat  --oat-file=out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.oat  --oat-location=/system/framework/arm/boot.oat  --image=out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.art --base=0x70000000  --instruction-set=arm  --instruction-set-variant=cortex-a53  --instruction-set-features=default  --android-root=out/target/product/msm8937_64/system  --runtime-arg -Xnorelocate --compile-pic  --no-generate-debug-info --generate-build-id  --multi-image --no-inline-from=core-oj.jar   --generate-mini-debug-info  --compiled-classes=frameworks/base/compiled-classes-phone )"
dex2oatd E 10-24 21:10:34  1311  1311 dex2oat.cc:2034] Failed to copy oat file to file: out/target/product/msm8937_64/symbols/system/framework/arm/boot.oat: Invalid argument
dex2oatd E 10-24 21:10:34  1311  1311 fd_file.cc:67] File out/target/product/msm8937_64/symbols/system/framework/arm/boot.oat wasn't explicitly flushed before destruction.
dex2oatd E 10-24 21:10:34  1311  1311 fd_file.cc:70] File out/target/product/msm8937_64/symbols/system/framework/arm/boot.oat wasn't explicitly closed before destruction.
dex2oatd F 10-24 21:10:34  1311  1311 fd_file.cc:72] Check failed: guard_state_ >= GuardState::kClosed (guard_state_=Base, GuardState::kClosed=Closed) 
Runtime aborting...
Aborting thread:
dex2oatd E 10-24 21:10:34  1311  1311 mutex-inl.h:95] Lock level violation: holding "mutator lock" (level MutatorLock - 61) while locking "mutator lock" (level MutatorLock - 61)
dex2oatd E 10-24 21:10:34  1311  1311 thread-inl.h:163] holding "abort lock" at point where thread suspension is expected
"main" prio=5 tid=1 Native (still starting up)
  | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x561754e38250
  | sysTid=1311 nice=0 cgrp=user.slice sched=0/0 handle=0x7f1090965740
  | state=R schedstat=( 67579221852 9248421052 4417 ) utm=6640 stm=116 core=15 HZ=100
  | stack=0x7ffcd2e6b000-0x7ffcd2e6d000 stackSize=7MB
  | held mutexes= "abort lock"
  native: #00 pc 00000000004a7cd9  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+217)
  native: #01 pc 00000000005887f6  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+342)
  native: #02 pc 0000000000570d5d  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+93)
  native: #03 pc 0000000000570ce2  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+450)
  native: #04 pc 0000000000562163  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime5AbortEPKc+99)
  native: #05 pc 0000000000562588  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime7AborterEPKc+8)
  native: #06 pc 00000000000099fb  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libbase.so (_ZN7android4base10LogMessageD2Ev+987)
  native: #07 pc 0000000000198337  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFile7DestroyEv+439)
  native: #08 pc 0000000000198647  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFileD0Ev+23)
  native: #09 pc 000000000002818e  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat24CopyStrippedToUnstrippedEv+1006)
  native: #10 pc 000000000000b825  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd (main+1013)
  native: #11 pc 000000000002082f  /lib/x86_64-linux-gnu/libc-2.23.so (__libc_start_main+239)
  native:   std::__1::default_delete<unix_file::FdFile>::operator()(unix_file::FdFile*) const
  native:    external/libcxx/include/memory:2399 (discriminator 1)
  native:   std::__1::unique_ptr<unix_file::FdFile, std::__1::default_delete<unix_file::FdFile> >::reset(unix_file::FdFile*)
  native:    external/libcxx/include/memory:2608 (discriminator 1)
  native:   ~unique_ptr
  native:    external/libcxx/include/memory:2576 (discriminator 1)
  native:   art::Dex2Oat::CopyStrippedToUnstripped()
  native:    art/dex2oat/dex2oat.cc:2042 (discriminator 1)
  native:   art::CompileImage(art::Dex2Oat&)
  native:    art/dex2oat/dex2oat.cc:2852
  native:   art::Dex2oat(int, char**)
  native:    art/dex2oat/dex2oat.cc:2955
  native:   main
  native:    art/dex2oat/dex2oat.cc:2966
  native:   __libc_start_main
  native:    /build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:291
  native: #12 pc 000000000000b308  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd (???)
  (no managed stack frames)
Dumping all threads without appropriate locks held: thread list lock mutator lock
All threads:
DALVIK THREADS (1):
"main" prio=5 tid=1 Runnable (still starting up)
  | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x561754e38250
  | sysTid=1311 nice=0 cgrp=user.slice sched=0/0 handle=0x7f1090965740
  | state=R schedstat=( 67615375775 9248508968 4466 ) utm=6641 stm=119 core=8 HZ=100
  | stack=0x7ffcd2e6b000-0x7ffcd2e6d000 stackSize=7MB
  | held mutexes= "abort lock" "mutator lock"(shared held)
  native: #00 pc 00000000004a7cd9  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+217)
  native: #01 pc 00000000005887f6  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+342)
  native: #02 pc 00000000005a1b35  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+629)
  native: #03 pc 0000000000599373  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureES2_+675)
  native: #04 pc 0000000000598e99  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEb+409)
  native: #05 pc 0000000000562163  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime5AbortEPKc+99)
  native: #06 pc 0000000000562588  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime7AborterEPKc+8)
  native: #07 pc 00000000000099fb  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libbase.so (_ZN7android4base10LogMessageD2Ev+987)
  native:   std::__1::function<void (char const*)>::operator()(char const*) const
  native:    external/libcxx/include/functional:1915 (discriminator 1)
  native:   ~LogMessage
  native:    system/core/base/logging.cpp:433 (discriminator 1)
  native: #08 pc 0000000000198337  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFile7DestroyEv+439)
  native: #09 pc 0000000000198647  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFileD0Ev+23)
  native: #10 pc 000000000002818e  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat24CopyStrippedToUnstrippedEv+1006)
  native:   std::__1::default_delete<unix_file::FdFile>::operator()(unix_file::FdFile*) const
  native:    external/libcxx/include/memory:2399 (discriminator 1)
  native:   std::__1::unique_ptr<unix_file::FdFile, std::__1::default_delete<unix_file::FdFile> >::reset(unix_file::FdFile*)
  native:    external/libcxx/include/memory:2608 (discriminator 1)
  native:   ~unique_ptr
  native:    external/libcxx/include/memory:2576 (discriminator 1)
  native:   art::Dex2Oat::CopyStrippedToUnstripped()
  native:    art/dex2oat/dex2oat.cc:2042 (discriminator 1)
  native: #11 pc 000000000000b825  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd (main+1013)
  native:   art::CompileImage(art::Dex2Oat&)
  native:    art/dex2oat/dex2oat.cc:2852
  native:   art::Dex2oat(int, char**)
  native:    art/dex2oat/dex2oat.cc:2955
  native:   main
  native:    art/dex2oat/dex2oat.cc:2966
  native: #12 pc 000000000002082f  /lib/x86_64-linux-gnu/libc-2.23.so (__libc_start_main+239)
  native:   __libc_start_main
  native:    /build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:291
  native: #13 pc 000000000000b308  /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd (???)
  (no managed stack frames)

dex2oatd E 10-24 21:10:47  1311  1311 thread-inl.h:163] holding "abort lock" at point where thread suspension is expected
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)
OS: Linux 4.4.0-57-generic (x86_64)
Cmdline: out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx64m --image-classes=frameworks/base/preloaded-classes --dex-file=out/target/common/obj/JAVA_LIBRARIES/com.nxp.nfc.nq_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/com.qualcomm.qti.camera_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/QPerformance_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/legacy-test_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.manager-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/WfdCommon_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/oem-services_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/qcom.fmradio_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-ext_intermediates/javalib.jar --dex-location=/system/framework/com.nxp.nfc.nq.jar --dex-location=/system/framework/com.qualcomm.qti.camera.jar --dex-location=/system/framework/QPerformance.jar --dex-location=/system/framework/core-oj.jar --dex-location=/system/framework/core-libart.jar --dex-location=/system/framework/conscrypt.jar --dex-location=/system/framework/okhttp.jar --dex-location=/system/framework/legacy-test.jar --dex-location=/system/framework/bouncycastle.jar --dex-location=/system/framework/ext.jar --dex-location=/system/framework/framework.jar --dex-location=/system/framework/telephony-common.jar --dex-location=/system/framework/voip-common.jar --dex-location=/system/framework/ims-common.jar --dex-location=/system/framework/apache-xml.jar --dex-location=/system/framework/org.apache.http.legacy.boot.jar --dex-location=/system/framework/android.hidl.base-V1.0-java.jar --dex-location=/system/framework/android.hidl.manager-V1.0-java.jar --dex-location=/system/framework/tcmiface.jar --dex-location=/system/framework/WfdCommon.jar --dex-location=/system/framework/oem-services.jar --dex-location=/system/framework/qcom.fmradio.jar --dex-location=/system/framework/telephony-ext.jar --oat-symbols=out/target/product/msm8937_64/symbols/system/framework/arm/boot.oat --oat-file=out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.oat --oat-location=/system/framework/arm/boot.oat --image=out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.art --base=0x70000000 --instruction-set=arm --instruction-set-variant=cortex-a53 --instruction-set-features=default --android-root=out/target/product/msm8937_64/system --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --multi-image --no-inline-from=core-oj.jar --generate-mini-debug-info --compiled-classes=frameworks/base/compiled-classes-phone
Thread: 1311 "dex2oatd"
Registers:
    rax: 0x0000000000000000    rbx: 0x000000000000051f    rcx: 0x00007f1090efa499    rdx: 0x0000000000000006
    rdi: 0x000000000000051f    rsi: 0x000000000000051f    rbp: 0x00007ffcd36675b0    rsp: 0x00007ffcd3667558
    r8 : 0x00007ffcd3667568    r9 : 0x00007ffcd3667568    r10: 0x0000000000000001    r11: 0x0000000000000246
    r12: 0x0000561754ca4170    r13: 0x0000000000000001    r14: 0x0000561754ac3350    r15: 0x00007ffcd3667650
    rip: 0x00007f1090efa499    eflags: 0x00000246 [ PF ZF IF ]
     cs: 0x00000033     gs: 0x00000000     fs: 0x00000000

Minghui Ma

unread,
Jan 8, 2018, 9:07:22 PM1/8/18
to Android Building
i met same issue:

out/soong/.intermediates/external/llvm/lib/Target/AArch64/MCTargetDesc/libLLVMAArch64Desc/android_arm64_armv8-a_cortex-a53_static_core/obj/external/llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.o
[ 82% 80012/96448] cc out/soong/.intermediates/external/llvm/lib/Target/AArch64/libLLVMAArch64CodeGen/android_arm64_armv8-a_cortex-a53_static_core/obj/external/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.o
[ 82% 80013/96448] cc out/soong/.intermediates/external/llvm/lib/Target/AArch64/MCTargetDesc/libLLVMAArch64Desc/android_arm64_armv8-a_cortex-a53_static_core/obj/external/llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.o
[ 82% 80014/96448] cc out/soong/.intermediates/external/llvm/lib/Target/AArch64/libLLVMAArch64CodeGen/android_arm64_armv8-a_cortex-a53_static_core/obj/external/llvm/lib/Target/AArch64/AArch64TargetMachine.o
[ 82% 80015/96448] target dex2oat: out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm/boot.art
FAILED: out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm/boot.art
/bin/bash -c "(mkdir -p out/target/product/k57pv1_dm_64/symbols/system/framework/arm/ ) && (rm -f out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm//*.art out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm//*.oat ) && (rm -f out/target/product/k57pv1_dm_64/symbols/system/framework/arm//*.art ) && (rm -f out/target/product/k57pv1_dm_64/symbols/system/framework/arm//*.oat ) && (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m         --runtime-arg -Xmx64m         --image-classes=frameworks/base/preloaded-classes         --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/legacy-test_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/gome-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.manager-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/cvFaceApi_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-base_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telecom-common_intermediates/javalib.jar         --dex-location=/system/framework/core-oj.jar --dex-location=/system/framework/core-libart.jar --dex-location=/system/framework/conscrypt.jar --dex-location=/system/framework/okhttp.jar --dex-location=/system/framework/legacy-test.jar --dex-location=/system/framework/bouncycastle.jar --dex-location=/system/framework/ext.jar --dex-location=/system/framework/framework.jar --dex-location=/system/framework/gome-framework.jar --dex-location=/system/framework/telephony-common.jar --dex-location=/system/framework/voip-common.jar --dex-location=/system/framework/ims-common.jar --dex-location=/system/framework/apache-xml.jar --dex-location=/system/framework/org.apache.http.legacy.boot.jar --dex-location=/system/framework/android.hidl.base-V1.0-java.jar --dex-location=/system/framework/android.hidl.manager-V1.0-java.jar --dex-location=/system/framework/cvFaceApi.jar --dex-location=/system/framework/mediatek-common.jar --dex-location=/system/framework/mediatek-framework.jar --dex-location=/system/framework/mediatek-telephony-common.jar --dex-location=/system/framework/mediatek-telephony-base.jar --dex-location=/system/framework/mediatek-ims-common.jar --dex-location=/system/framework/mediatek-telecom-common.jar         --oat-symbols=out/target/product/k57pv1_dm_64/symbols/system/framework/arm/boot.oat         --oat-file=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm/boot.oat         --oat-location=/system/framework/arm/boot.oat         --image=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm/boot.art --base=0x70000000         --instruction-set=arm         --instruction-set-variant=cortex-a53         --instruction-set-features=default         --android-root=out/target/product/k57pv1_dm_64/system         --runtime-arg -Xnorelocate --compile-pic         --no-generate-debug-info --generate-build-id         --multi-image --no-inline-from=core-oj.jar          --generate-mini-debug-info  --compiled-classes=frameworks/base/compiled-classes-phone )"
dex2oatd E 01-08 13:55:12 57014 57014 dex2oat.cc:2034] Failed to copy oat file to file:  boot.oat: Invalid argument
dex2oatd E 01-08 13:55:12 57014 57014 fd_file.cc:67] File out/target/product/k57pv1_dm_64/symbols/system/framework/arm/boot.oat wasn't explicitly flushed before destruction.
dex2oatd E 01-08 13:55:12 57014 57014 fd_file.cc:70] File out/target/product/k57pv1_dm_64/symbols/system/framework/arm/boot.oat wasn't explicitly closed before destruction.
dex2oatd F 01-08 13:55:12 57014 57014 fd_file.cc:72] Check failed: guard_state_ >= GuardState::kClosed (guard_state_=Base, GuardState::kClosed=Closed)
Runtime aborting...
Aborting thread:
dex2oatd E 01-08 13:55:12 57014 57014 mutex-inl.h:95] Lock level violation: holding "mutator lock" (level MutatorLock - 61) while locking "mutator lock" (level MutatorLock - 61)
dex2oatd E 01-08 13:55:12 57014 57014 thread-inl.h:163] holding "abort lock" at point where thread suspension is expected

"main" prio=5 tid=1 Native (still starting up)
  | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x7f3dfc799bf0
  | sysTid=57014 nice=0 cgrp=default sched=0/0 handle=0x7f3dfa9dd780
  | state=R schedstat=( 51890064920 5659007580 6512 ) utm=5083 stm=105 core=1 HZ=100
  | stack=0x7ffecea24000-0x7ffecea26000 stackSize=7MB
  | held mutexes= "abort lock"
  native: #00 pc 00000000004a8829  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+217)
  native: #01 pc 0000000000589486  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+342)
  native: #02 pc 00000000005719ed  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+93)
  native: #03 pc 0000000000571972  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+450)
  native: #04 pc 0000000000562e03  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime5AbortEPKc+99)
  native: #05 pc 00000000000099fb  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libbase.so (_ZN7android4base10LogMessageD2Ev+987)

  native:   std::__1::function<void (char const*)>::operator()(char const*) const
  native:    external/libcxx/include/functional:1915 (discriminator 1)
  native:   ~LogMessage
  native:    system/core/base/logging.cpp:433 (discriminator 1)
  native: #06 pc 0000000000198437  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFile7DestroyEv+439)
  native: #07 pc 0000000000198747  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFileD0Ev+23)
  native: #08 pc 000000000002821e  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat24CopyStrippedToUnstrippedEv+1006)

  native:   std::__1::default_delete<unix_file::FdFile>::operator()(unix_file::FdFile*) const
  native:    external/libcxx/include/memory:2399 (discriminator 1)
  native:   std::__1::unique_ptr<unix_file::FdFile, std::__1::default_delete<unix_file::FdFile> >::reset(unix_file::FdFile*)
  native:    external/libcxx/include/memory:2608 (discriminator 1)
  native:   ~unique_ptr
  native:    external/libcxx/include/memory:2576 (discriminator 1)
  native:   art::Dex2Oat::CopyStrippedToUnstripped()
  native:    art/dex2oat/dex2oat.cc:2042 (discriminator 1)
  native: #09 pc 000000000000b825  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (main+1013)
  native:   art::CompileImage(art::Dex2Oat&)
  native:    art/dex2oat/dex2oat.cc:2854
  native:   art::Dex2oat(int, char**)
  native:    art/dex2oat/dex2oat.cc:2957
  native:   main
  native:    art/dex2oat/dex2oat.cc:2968
  native: #10 pc 0000000000021f44  /lib/x86_64-linux-gnu/libc-2.19.so (__libc_start_main+244)
  native:   __libc_start_main
  native:    /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287
  native: #11 pc 000000000000b308  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (???)

  (no managed stack frames)
Dumping all threads without appropriate locks held: thread list lock mutator lock
All threads:
DALVIK THREADS (1):
"main" prio=5 tid=1 Runnable (still starting up)
  | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x7f3dfc799bf0
  | sysTid=57014 nice=0 cgrp=default sched=0/0 handle=0x7f3dfa9dd780
  | state=R schedstat=( 51926743781 5659024453 6549 ) utm=5085 stm=107 core=9 HZ=100
  | stack=0x7ffecea24000-0x7ffecea26000 stackSize=7MB

  | held mutexes= "abort lock" "mutator lock"(shared held)
  native: #00 pc 00000000004a8829  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+217)
  native: #01 pc 0000000000589486  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+342)
  native:   art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)
  native:    art/runtime/native_stack_dump.cc:300 (discriminator 1)
  native: #02 pc 00000000005a28b5  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+629)
  native:   art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const
  native:    art/runtime/thread.cc:1872 (discriminator 1)
  native:   art::DumpCheckpoint::Run(art::Thread*)
  native:    art/runtime/thread_list.cc:214 (discriminator 1)
  native: #03 pc 000000000059a083  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureES2_+675)
  native:   art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)
  native:    art/runtime/thread_list.cc:348
  native: #04 pc 0000000000599ba9  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEb+409)
  native:   art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)
  native:    art/runtime/thread_list.cc:259
  native: #05 pc 0000000000562e03  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime5AbortEPKc+99)
  native:   art::Dumpable<art::AbortState>::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
  native:    art/runtime/base/dumpable.h:39
  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/runtime/base/dumpable.h:50
  native:   art::Runtime::Abort(char const*)
  native:    art/runtime/runtime.cc:502
  native: #06 pc 00000000000099fb  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libbase.so (_ZN7android4base10LogMessageD2Ev+987)

  native:   std::__1::function<void (char const*)>::operator()(char const*) const
  native:    external/libcxx/include/functional:1915 (discriminator 1)
  native:   ~LogMessage
  native:    system/core/base/logging.cpp:433 (discriminator 1)
  native: #07 pc 0000000000198437  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFile7DestroyEv+439)
  native:   unix_file::FdFile::Destroy()
  native:    art/runtime/base/unix_file/fd_file.cc:72 (discriminator 16)
  native: #08 pc 0000000000198747  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFileD0Ev+23)
  native:   ~FdFile
  native:    art/runtime/base/unix_file/fd_file.cc:101
  native:   ~FdFile
  native:    art/runtime/base/unix_file/fd_file.cc:100
  native: #09 pc 000000000002821e  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat24CopyStrippedToUnstrippedEv+1006)

  native:   std::__1::default_delete<unix_file::FdFile>::operator()(unix_file::FdFile*) const
  native:    external/libcxx/include/memory:2399 (discriminator 1)
  native:   std::__1::unique_ptr<unix_file::FdFile, std::__1::default_delete<unix_file::FdFile> >::reset(unix_file::FdFile*)
  native:    external/libcxx/include/memory:2608 (discriminator 1)
  native:   ~unique_ptr
  native:    external/libcxx/include/memory:2576 (discriminator 1)
  native:   art::Dex2Oat::CopyStrippedToUnstripped()
  native:    art/dex2oat/dex2oat.cc:2042 (discriminator 1)
  native: #10 pc 000000000000b825  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (main+1013)
  native:   art::CompileImage(art::Dex2Oat&)
  native:    art/dex2oat/dex2oat.cc:2854
  native:   art::Dex2oat(int, char**)
  native:    art/dex2oat/dex2oat.cc:2957
  native:   main
  native:    art/dex2oat/dex2oat.cc:2968
  native: #11 pc 0000000000021f44  /lib/x86_64-linux-gnu/libc-2.19.so (__libc_start_main+244)
  native:   __libc_start_main
  native:    /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287
  native: #12 pc 000000000000b308  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (???)
  (no managed stack frames)

dex2oatd E 01-08 13:55:18 57014 57014 thread-inl.h:163] holding "abort lock" at point where thread suspension is expected

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)
OS: Linux 3.16.0-44-generic (x86_64)
Cmdline: out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx64m --image-classes=frameworks/base/preloaded-classes --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/legacy-test_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/gome-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.manager-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/cvFaceApi_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-base_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telecom-common_intermediates/javalib.jar --dex-location=/system/framework/core-oj.jar --dex-location=/system/framework/core-libart.jar --dex-location=/system/framework/conscrypt.jar --dex-location=/system/framework/okhttp.jar --dex-location=/system/framework/legacy-test.jar --dex-location=/system/framework/bouncycastle.jar --dex-location=/system/framework/ext.jar --dex-location=/system/framework/framework.jar --dex-location=/system/framework/gome-framework.jar --dex-location=/system/framework/telephony-common.jar --dex-location=/system/framework/voip-common.jar --dex-location=/system/framework/ims-common.jar --dex-location=/system/framework/apache-xml.jar --dex-location=/system/framework/org.apache.http.legacy.boot.jar --dex-location=/system/framework/android.hidl.base-V1.0-java.jar --dex-location=/system/framework/android.hidl.manager-V1.0-java.jar --dex-location=/system/framework/cvFaceApi.jar --dex-location=/system/framework/mediatek-common.jar --dex-location=/system/framework/mediatek-framework.jar --dex-location=/system/framework/mediatek-telephony-common.jar --dex-location=/system/framework/mediatek-telephony-base.jar --dex-location=/system/framework/mediatek-ims-common.jar --dex-location=/system/framework/mediatek-telecom-common.jar --oat-symbols=out/target/product/k57pv1_dm_64/symbols/system/framework/arm/boot.oat --oat-file=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm/boot.oat --oat-location=/system/framework/arm/boot.oat --image=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm/boot.art --base=0x70000000 --instruction-set=arm --instruction-set-variant=cortex-a53 --instruction-set-features=default --android-root=out/target/product/k57pv1_dm_64/system --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --multi-image --no-inline-from=core-oj.jar --generate-mini-debug-info --compiled-classes=frameworks/base/compiled-classes-phone
Thread: 57014 "dex2oatd"
Registers:
    rax: 0x0000000000000000    rbx: 0x000000000000deb6    rcx: 0xffffffffffffffff    rdx: 0x0000000000000006
    rdi: 0x000000000000deb6    rsi: 0x000000000000deb6    rbp: 0x00007ffecf220450    rsp: 0x00007ffecf2203f8
    r8 : 0x00000048cf220450    r9 : 0x00000048cf220450    r10: 0x0000000000000000    r11: 0x0000000000000246
    r12: 0x00007f3dfd786fe0    r13: 0x0000000000000001    r14: 0x00007f3dfc41f350    r15: 0x00007ffecf2204e0
    rip: 0x00007f3df8cb8389    eflags: 0x00000246 [ PF ZF IF ]

     cs: 0x00000033     gs: 0x00000000     fs: 0x00000000

Backtrace:
    #00 pc 00000000000f8389  /lib/x86_64-linux-gnu/libc-2.19.so (syscall+25)
      syscall
       /build/eglibc-SvCtMH/eglibc-2.19/misc/../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
    #01 pc 0000000000562f91  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime5AbortEPKc+497)
      art::Runtime::Abort(char const*)
       art/runtime/runtime.cc:525 (discriminator 2)
    #02 pc 00000000000099fb  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libbase.so (_ZN7android4base10LogMessageD2Ev+987)

      std::__1::function<void (char const*)>::operator()(char const*) const
       external/libcxx/include/functional:1915 (discriminator 1)
      ~LogMessage
       system/core/base/logging.cpp:433 (discriminator 1)
    #03 pc 0000000000198437  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFile7DestroyEv+439)
      unix_file::FdFile::Destroy()
       art/runtime/base/unix_file/fd_file.cc:72 (discriminator 16)
    #04 pc 0000000000198747  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFileD0Ev+23)
      ~FdFile
       art/runtime/base/unix_file/fd_file.cc:101
      ~FdFile
       art/runtime/base/unix_file/fd_file.cc:100
    #05 pc 000000000002821e  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat24CopyStrippedToUnstrippedEv+1006)

      std::__1::default_delete<unix_file::FdFile>::operator()(unix_file::FdFile*) const
       external/libcxx/include/memory:2399 (discriminator 1)

      std::__1::unique_ptr<unix_file::FdFile, std::__1::default_delete<unix_file::FdFile> >::reset(unix_file::FdFile*)
       external/libcxx/include/memory:2608 (discriminator 1)
      ~unique_ptr
       external/libcxx/include/memory:2576 (discriminator 1)
      art::Dex2Oat::CopyStrippedToUnstripped()
       art/dex2oat/dex2oat.cc:2042 (discriminator 1)
    #06 pc 000000000000b825  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (main+1013)
      art::CompileImage(art::Dex2Oat&)
       art/dex2oat/dex2oat.cc:2854
      art::Dex2oat(int, char**)
       art/dex2oat/dex2oat.cc:2957
      main
       art/dex2oat/dex2oat.cc:2968
    #07 pc 0000000000021f44  /lib/x86_64-linux-gnu/libc-2.19.so (__libc_start_main+244)
      __libc_start_main
       /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287
    #08 pc 000000000000b308  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (???)

Fault message:
/bin/bash: line 1: 57014 Aborted                 (core dumped) ( ANDROID_LOG_TAGS="*:e" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx64m --image-classes=frameworks/base/preloaded-classes --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/legacy-test_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/gome-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.manager-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/cvFaceApi_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-base_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telecom-common_intermediates/javalib.jar --dex-location=/system/framework/core-oj.jar --dex-location=/system/framework/core-libart.jar --dex-location=/system/framework/conscrypt.jar --dex-location=/system/framework/okhttp.jar --dex-location=/system/framework/legacy-test.jar --dex-location=/system/framework/bouncycastle.jar --dex-location=/system/framework/ext.jar --dex-location=/system/framework/framework.jar --dex-location=/system/framework/gome-framework.jar --dex-location=/system/framework/telephony-common.jar --dex-location=/system/framework/voip-common.jar --dex-location=/system/framework/ims-common.jar --dex-location=/system/framework/apache-xml.jar --dex-location=/system/framework/org.apache.http.legacy.boot.jar --dex-location=/system/framework/android.hidl.base-V1.0-java.jar --dex-location=/system/framework/android.hidl.manager-V1.0-java.jar --dex-location=/system/framework/cvFaceApi.jar --dex-location=/system/framework/mediatek-common.jar --dex-location=/system/framework/mediatek-framework.jar --dex-location=/system/framework/mediatek-telephony-common.jar --dex-location=/system/framework/mediatek-telephony-base.jar --dex-location=/system/framework/mediatek-ims-common.jar --dex-location=/system/framework/mediatek-telecom-common.jar --oat-symbols=out/target/product/k57pv1_dm_64/symbols/system/framework/arm/boot.oat --oat-file=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm/boot.oat --oat-location=/system/framework/arm/boot.oat --image=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm/boot.art --base=0x70000000 --instruction-set=arm --instruction-set-variant=cortex-a53 --instruction-set-features=default --android-root=out/target/product/k57pv1_dm_64/system --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --multi-image --no-inline-from=core-oj.jar --generate-mini-debug-info --compiled-classes=frameworks/base/compiled-classes-phone )
[ 82% 80016/96448] cc out/soong/.intermediates/external/llvm/lib/Target/AArch64/libLLVMAArch64CodeGen/android_arm64_armv8-a_cortex-a53_static_core/obj/external/llvm/lib/Target/AArch64/AArch64ISelLowering.o
[ 82% 80017/96448] cc out/soong/.intermediates/external/llvm/lib/Target/AArch64/MCTargetDesc/libLLVMAArch64Desc/android_arm64_armv8-a_cortex-a53_static_core/obj/external/llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.o
[ 82% 80018/96448] target dex2oat: out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm64/boot.art
FAILED: out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm64/boot.art
/bin/bash -c "(mkdir -p out/target/product/k57pv1_dm_64/symbols/system/framework/arm64/ ) && (rm -f out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm64//*.art out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm64//*.oat ) && (rm -f out/target/product/k57pv1_dm_64/symbols/system/framework/arm64//*.art ) && (rm -f out/target/product/k57pv1_dm_64/symbols/system/framework/arm64//*.oat ) && (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m         --runtime-arg -Xmx64m         --image-classes=frameworks/base/preloaded-classes         --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/legacy-test_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/gome-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.manager-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/cvFaceApi_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-base_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telecom-common_intermediates/javalib.jar         --dex-location=/system/framework/core-oj.jar --dex-location=/system/framework/core-libart.jar --dex-location=/system/framework/conscrypt.jar --dex-location=/system/framework/okhttp.jar --dex-location=/system/framework/legacy-test.jar --dex-location=/system/framework/bouncycastle.jar --dex-location=/system/framework/ext.jar --dex-location=/system/framework/framework.jar --dex-location=/system/framework/gome-framework.jar --dex-location=/system/framework/telephony-common.jar --dex-location=/system/framework/voip-common.jar --dex-location=/system/framework/ims-common.jar --dex-location=/system/framework/apache-xml.jar --dex-location=/system/framework/org.apache.http.legacy.boot.jar --dex-location=/system/framework/android.hidl.base-V1.0-java.jar --dex-location=/system/framework/android.hidl.manager-V1.0-java.jar --dex-location=/system/framework/cvFaceApi.jar --dex-location=/system/framework/mediatek-common.jar --dex-location=/system/framework/mediatek-framework.jar --dex-location=/system/framework/mediatek-telephony-common.jar --dex-location=/system/framework/mediatek-telephony-base.jar --dex-location=/system/framework/mediatek-ims-common.jar --dex-location=/system/framework/mediatek-telecom-common.jar         --oat-symbols=out/target/product/k57pv1_dm_64/symbols/system/framework/arm64/boot.oat         --oat-file=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm64/boot.oat         --oat-location=/system/framework/arm64/boot.oat         --image=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm64/boot.art --base=0x70000000         --instruction-set=arm64         --instruction-set-variant=cortex-a53         --instruction-set-features=default         --android-root=out/target/product/k57pv1_dm_64/system         --runtime-arg -Xnorelocate --compile-pic         --no-generate-debug-info --generate-build-id         --multi-image --no-inline-from=core-oj.jar          --generate-mini-debug-info  --compiled-classes=frameworks/base/compiled-classes-phone )"
dex2oatd E 01-08 13:55:16 56998 56998 dex2oat.cc:2034] Failed to copy oat file to file: out/target/product/k57pv1_dm_64/symbols/system/framework/arm64/boot.oat: Invalid argument
dex2oatd E 01-08 13:55:16 56998 56998 fd_file.cc:67] File out/target/product/k57pv1_dm_64/symbols/system/framework/arm64/boot.oat wasn't explicitly flushed before destruction.
dex2oatd E 01-08 13:55:16 56998 56998 fd_file.cc:70] File out/target/product/k57pv1_dm_64/symbols/system/framework/arm64/boot.oat wasn't explicitly closed before destruction.
dex2oatd F 01-08 13:55:16 56998 56998 fd_file.cc:72] Check failed: guard_state_ >= GuardState::kClosed (guard_state_=Base, GuardState::kClosed=Closed)
Runtime aborting...
Aborting thread:
dex2oatd E 01-08 13:55:16 56998 56998 mutex-inl.h:95] Lock level violation: holding "mutator lock" (level MutatorLock - 61) while locking "mutator lock" (level MutatorLock - 61)
dex2oatd E 01-08 13:55:16 56998 56998 thread-inl.h:163] holding "abort lock" at point where thread suspension is expected

"main" prio=5 tid=1 Native (still starting up)
  | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x7f46804f95d0
  | sysTid=56998 nice=0 cgrp=default sched=0/0 handle=0x7f467f174780
  | state=R schedstat=( 53372147482 5793430875 15471 ) utm=5197 stm=139 core=2 HZ=100
  | stack=0x7ffd1abed000-0x7ffd1abef000 stackSize=7MB
  | held mutexes= "abort lock"
  native: #00 pc 00000000004a8829  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+217)
  native: #01 pc 0000000000589486  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+342)
  native:   art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)
  native:    art/runtime/native_stack_dump.cc:300 (discriminator 1)
  native: #02 pc 00000000005719ed  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+93)
  native:   art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const
  native:    art/runtime/thread.cc:1872 (discriminator 1)
  native:   art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*) const
  native:    art/runtime/runtime.cc:436
  native: #03 pc 0000000000571972  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+450)
  native:   art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
  native:    art/runtime/runtime.cc:425
  native: #04 pc 0000000000562e03  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime5AbortEPKc+99)
  native:   art::Dumpable<art::AbortState>::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
  native:    art/runtime/base/dumpable.h:39
  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/runtime/base/dumpable.h:50
  native:   art::Runtime::Abort(char const*)
  native:    art/runtime/runtime.cc:502
  native: #05 pc 00000000000099fb  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libbase.so (_ZN7android4base10LogMessageD2Ev+987)

  native:   std::__1::function<void (char const*)>::operator()(char const*) const
  native:    external/libcxx/include/functional:1915 (discriminator 1)
  native:   ~LogMessage
  native:    system/core/base/logging.cpp:433 (discriminator 1)
  native: #06 pc 0000000000198437  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFile7DestroyEv+439)
  native:   unix_file::FdFile::Destroy()
  native:    art/runtime/base/unix_file/fd_file.cc:72 (discriminator 16)
  native: #07 pc 0000000000198747  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFileD0Ev+23)
  native:   ~FdFile
  native:    art/runtime/base/unix_file/fd_file.cc:101
  native:   ~FdFile
  native:    art/runtime/base/unix_file/fd_file.cc:100
  native: #08 pc 000000000002821e  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat24CopyStrippedToUnstrippedEv+1006)

  native:   std::__1::default_delete<unix_file::FdFile>::operator()(unix_file::FdFile*) const
  native:    external/libcxx/include/memory:2399 (discriminator 1)
  native:   std::__1::unique_ptr<unix_file::FdFile, std::__1::default_delete<unix_file::FdFile> >::reset(unix_file::FdFile*)
  native:    external/libcxx/include/memory:2608 (discriminator 1)
  native:   ~unique_ptr
  native:    external/libcxx/include/memory:2576 (discriminator 1)
  native:   art::Dex2Oat::CopyStrippedToUnstripped()
  native:    art/dex2oat/dex2oat.cc:2042 (discriminator 1)
  native: #09 pc 000000000000b825  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (main+1013)
  native:   art::CompileImage(art::Dex2Oat&)
  native:    art/dex2oat/dex2oat.cc:2854
  native:   art::Dex2oat(int, char**)
  native:    art/dex2oat/dex2oat.cc:2957
  native:   main
  native:    art/dex2oat/dex2oat.cc:2968
  native: #10 pc 0000000000021f44  /lib/x86_64-linux-gnu/libc-2.19.so (__libc_start_main+244)
  native:   __libc_start_main
  native:    /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287
  native: #11 pc 000000000000b308  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (???)

  (no managed stack frames)
Dumping all threads without appropriate locks held: thread list lock mutator lock
All threads:
DALVIK THREADS (1):
"main" prio=5 tid=1 Runnable (still starting up)
  | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x7f46804f95d0
  | sysTid=56998 nice=0 cgrp=default sched=0/0 handle=0x7f467f174780
  | state=R schedstat=( 53406717080 5793430875 15499 ) utm=5197 stm=143 core=2 HZ=100
  | stack=0x7ffd1abed000-0x7ffd1abef000 stackSize=7MB

  | held mutexes= "abort lock" "mutator lock"(shared held)
  native: #00 pc 00000000004a8829  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+217)
  native:   art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)
  native:    art/runtime/native_stack_dump.cc:300 (discriminator 1)
  native: #01 pc 0000000000589486  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+342)
  native:   art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const
  native:    art/runtime/thread.cc:1872 (discriminator 1)
  native: #02 pc 00000000005a28b5  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+629)
  native:   art::DumpCheckpoint::Run(art::Thread*)
  native:    art/runtime/thread_list.cc:214 (discriminator 1)
  native: #03 pc 000000000059a083  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureES2_+675)
  native:   art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)
  native:    art/runtime/thread_list.cc:348
  native: #04 pc 0000000000599ba9  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEb+409)
  native:   art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)
  native:    art/runtime/thread_list.cc:259
  native: #05 pc 0000000000562e03  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime5AbortEPKc+99)
  native:   art::Dumpable<art::AbortState>::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
  native:    art/runtime/base/dumpable.h:39
  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/runtime/base/dumpable.h:50
  native:   art::Runtime::Abort(char const*)
  native:    art/runtime/runtime.cc:502
  native: #06 pc 00000000000099fb  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libbase.so (_ZN7android4base10LogMessageD2Ev+987)

  native:   std::__1::function<void (char const*)>::operator()(char const*) const
  native:    external/libcxx/include/functional:1915 (discriminator 1)
  native:   ~LogMessage
  native:    system/core/base/logging.cpp:433 (discriminator 1)
  native: #07 pc 0000000000198437  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFile7DestroyEv+439)
  native:   unix_file::FdFile::Destroy()
  native:    art/runtime/base/unix_file/fd_file.cc:72 (discriminator 16)
  native: #08 pc 0000000000198747  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFileD0Ev+23)
  native:   ~FdFile
  native:    art/runtime/base/unix_file/fd_file.cc:101
  native:   ~FdFile
  native:    art/runtime/base/unix_file/fd_file.cc:100
  native: #09 pc 000000000002821e  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat24CopyStrippedToUnstrippedEv+1006)

  native:   std::__1::default_delete<unix_file::FdFile>::operator()(unix_file::FdFile*) const
  native:    external/libcxx/include/memory:2399 (discriminator 1)
  native:   std::__1::unique_ptr<unix_file::FdFile, std::__1::default_delete<unix_file::FdFile> >::reset(unix_file::FdFile*)
  native:    external/libcxx/include/memory:2608 (discriminator 1)
  native:   ~unique_ptr
  native:    external/libcxx/include/memory:2576 (discriminator 1)
  native:   art::Dex2Oat::CopyStrippedToUnstripped()
  native:    art/dex2oat/dex2oat.cc:2042 (discriminator 1)
  native: #10 pc 000000000000b825  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (main+1013)
  native:   art::CompileImage(art::Dex2Oat&)
  native:    art/dex2oat/dex2oat.cc:2854
  native:   art::Dex2oat(int, char**)
  native:    art/dex2oat/dex2oat.cc:2957
  native:   main
  native:    art/dex2oat/dex2oat.cc:2968
  native: #11 pc 0000000000021f44  /lib/x86_64-linux-gnu/libc-2.19.so (__libc_start_main+244)
  native:   __libc_start_main
  native:    /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287
  native: #12 pc 000000000000b308  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (???)
  (no managed stack frames)

dex2oatd E 01-08 13:55:20 56998 56998 thread-inl.h:163] holding "abort lock" at point where thread suspension is expected

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)
OS: Linux 3.16.0-44-generic (x86_64)
Cmdline: out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx64m --image-classes=frameworks/base/preloaded-classes --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/legacy-test_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/gome-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.manager-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/cvFaceApi_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-base_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telecom-common_intermediates/javalib.jar --dex-location=/system/framework/core-oj.jar --dex-location=/system/framework/core-libart.jar --dex-location=/system/framework/conscrypt.jar --dex-location=/system/framework/okhttp.jar --dex-location=/system/framework/legacy-test.jar --dex-location=/system/framework/bouncycastle.jar --dex-location=/system/framework/ext.jar --dex-location=/system/framework/framework.jar --dex-location=/system/framework/gome-framework.jar --dex-location=/system/framework/telephony-common.jar --dex-location=/system/framework/voip-common.jar --dex-location=/system/framework/ims-common.jar --dex-location=/system/framework/apache-xml.jar --dex-location=/system/framework/org.apache.http.legacy.boot.jar --dex-location=/system/framework/android.hidl.base-V1.0-java.jar --dex-location=/system/framework/android.hidl.manager-V1.0-java.jar --dex-location=/system/framework/cvFaceApi.jar --dex-location=/system/framework/mediatek-common.jar --dex-location=/system/framework/mediatek-framework.jar --dex-location=/system/framework/mediatek-telephony-common.jar --dex-location=/system/framework/mediatek-telephony-base.jar --dex-location=/system/framework/mediatek-ims-common.jar --dex-location=/system/framework/mediatek-telecom-common.jar --oat-symbols=out/target/product/k57pv1_dm_64/symbols/system/framework/arm64/boot.oat --oat-file=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm64/boot.oat --oat-location=/system/framework/arm64/boot.oat --image=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm64/boot.art --base=0x70000000 --instruction-set=arm64 --instruction-set-variant=cortex-a53 --instruction-set-features=default --android-root=out/target/product/k57pv1_dm_64/system --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --multi-image --no-inline-from=core-oj.jar --generate-mini-debug-info --compiled-classes=frameworks/base/compiled-classes-phone
Thread: 56998 "dex2oatd"
Registers:
    rax: 0x0000000000000000    rbx: 0x000000000000dea6    rcx: 0xffffffffffffffff    rdx: 0x0000000000000006
    rdi: 0x000000000000dea6    rsi: 0x000000000000dea6    rbp: 0x00007ffd1b3e81c0    rsp: 0x00007ffd1b3e8168
    r8 : 0x000000481b3e81c0    r9 : 0x000000481b3e81c0    r10: 0x00007f4680354380    r11: 0x0000000000000246
    r12: 0x00007f468035ccb0    r13: 0x0000000000000001    r14: 0x00007f468017b350    r15: 0x00007ffd1b3e8250
    rip: 0x00007f467d44f389    eflags: 0x00000246 [ PF ZF IF ]

     cs: 0x00000033     gs: 0x00000000     fs: 0x00000000

Backtrace:
    #00 pc 00000000000f8389  /lib/x86_64-linux-gnu/libc-2.19.so (syscall+25)
      syscall
       /build/eglibc-SvCtMH/eglibc-2.19/misc/../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
    #01 pc 0000000000562f91  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime5AbortEPKc+497)
      art::Runtime::Abort(char const*)
       art/runtime/runtime.cc:525 (discriminator 2)
    #02 pc 00000000000099fb  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libbase.so (_ZN7android4base10LogMessageD2Ev+987)

      std::__1::function<void (char const*)>::operator()(char const*) const
       external/libcxx/include/functional:1915 (discriminator 1)
      ~LogMessage
       system/core/base/logging.cpp:433 (discriminator 1)
    #03 pc 0000000000198437  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFile7DestroyEv+439)
    #04 pc 0000000000198747  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/lib64/libartd.so (_ZN9unix_file6FdFileD0Ev+23)
    #05 pc 000000000002821e  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat24CopyStrippedToUnstrippedEv+1006)

      std::__1::default_delete<unix_file::FdFile>::operator()(unix_file::FdFile*) const
       external/libcxx/include/memory:2399 (discriminator 1)

      std::__1::unique_ptr<unix_file::FdFile, std::__1::default_delete<unix_file::FdFile> >::reset(unix_file::FdFile*)
       external/libcxx/include/memory:2608 (discriminator 1)
      ~unique_ptr
       external/libcxx/include/memory:2576 (discriminator 1)
      art::Dex2Oat::CopyStrippedToUnstripped()
       art/dex2oat/dex2oat.cc:2042 (discriminator 1)
    #06 pc 000000000000b825  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (main+1013)
      art::CompileImage(art::Dex2Oat&)
       art/dex2oat/dex2oat.cc:2854
      art::Dex2oat(int, char**)
       art/dex2oat/dex2oat.cc:2957
      main
       art/dex2oat/dex2oat.cc:2968
    #07 pc 0000000000021f44  /lib/x86_64-linux-gnu/libc-2.19.so (__libc_start_main+244)
      __libc_start_main
       /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287
    #08 pc 000000000000b308  /home/liangyusong/workspace/OS3.0/out/host/linux-x86/bin/dex2oatd (???)

Fault message:
/bin/bash: line 1: 56998 Aborted                 (core dumped) ( ANDROID_LOG_TAGS="*:e" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx64m --image-classes=frameworks/base/preloaded-classes --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/legacy-test_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/gome-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.manager-V1.0-java_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/cvFaceApi_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-base_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-ims-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telecom-common_intermediates/javalib.jar --dex-location=/system/framework/core-oj.jar --dex-location=/system/framework/core-libart.jar --dex-location=/system/framework/conscrypt.jar --dex-location=/system/framework/okhttp.jar --dex-location=/system/framework/legacy-test.jar --dex-location=/system/framework/bouncycastle.jar --dex-location=/system/framework/ext.jar --dex-location=/system/framework/framework.jar --dex-location=/system/framework/gome-framework.jar --dex-location=/system/framework/telephony-common.jar --dex-location=/system/framework/voip-common.jar --dex-location=/system/framework/ims-common.jar --dex-location=/system/framework/apache-xml.jar --dex-location=/system/framework/org.apache.http.legacy.boot.jar --dex-location=/system/framework/android.hidl.base-V1.0-java.jar --dex-location=/system/framework/android.hidl.manager-V1.0-java.jar --dex-location=/system/framework/cvFaceApi.jar --dex-location=/system/framework/mediatek-common.jar --dex-location=/system/framework/mediatek-framework.jar --dex-location=/system/framework/mediatek-telephony-common.jar --dex-location=/system/framework/mediatek-telephony-base.jar --dex-location=/system/framework/mediatek-ims-common.jar --dex-location=/system/framework/mediatek-telecom-common.jar --oat-symbols=out/target/product/k57pv1_dm_64/symbols/system/framework/arm64/boot.oat --oat-file=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm64/boot.oat --oat-location=/system/framework/arm64/boot.oat --image=out/target/product/k57pv1_dm_64/dex_bootjars/system/framework/arm64/boot.art --base=0x70000000 --instruction-set=arm64 --instruction-set-variant=cortex-a53 --instruction-set-features=default --android-root=out/target/product/k57pv1_dm_64/system --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --multi-image --no-inline-from=core-oj.jar --generate-mini-debug-info --compiled-classes=frameworks/base/compiled-classes-phone )
[ 82% 80019/96448] cc out/soong/.intermediates/external/llvm/lib/Target/AArch64/MCTargetDesc/libLLVMAArch64Desc/android_arm64_armv8-a_cortex-a53_static_core/obj/external/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MachObjectWriter.o
[ 82% 80020/96448] cc out/soong/.intermediates/external/llvm/lib/Target/AArch64/MCTargetDesc/libLLVMAArch64Desc/android_arm64_armv8-a_cortex-a53_static_core/obj/external/llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.o
[ 82% 80021/96448] cc out/soong/.intermediates/external/llvm/lib/Target/AArch64/MCTargetDesc/libLLVMAArch64Desc/android_arm64_armv8-a_cortex-a53_static_core/obj/external/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.o
[ 82% 80022/96448] cc out/soong/.intermediates/external/llvm/lib/Target/AArch64/Utils/libLLVMAArch64Utils/android_arm64_armv8-a_cortex-a53_static_core/obj/external/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.o
ninja: build stopped: subcommand failed.
13:55:29 ninja failed with: exit status 1
make: *** [run_soong_ui] Error 1

[0;31m#### make failed to build some targets (01:57:18 (hh:mm:ss)) #### [00m





在 2017年10月26日星期四 UTC+8下午11:37:52,longsha...@gmail.com写道:

juzi1...@gmail.com

unread,
Jan 25, 2018, 12:05:03 PM1/25/18
to Android Building
I met this error too,Have you solved this error?


在 2017年10月26日星期四 UTC+8下午11:37:52,longsha...@gmail.com写道:
 When I compiling android O on 16.04, error happened, the Log as blow. I have tried to serach all google and couldn't found any usfull information, Could you help me to find out the reason ? Thanks very much.

scn...@gmail.com

unread,
Feb 25, 2018, 2:05:28 PM2/25/18
to Android Building
I got error like this:
[  0% 1/28682] Generating TOC: out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc
FAILED: out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 prebuilts/build-tools/linux-x86/bin/ijar out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc.tmp ) && (if cmp -s out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc.tmp out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc ; then rm out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc.tmp ; else mv out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc.tmp out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc ; fi )"
ftruncate(fd_out, GetSize()): Invalid argument
/bin/bash: line 1:   453 Aborted                 (core dumped) ( ASAN_OPTIONS=detect_leaks=0 prebuilts/build-tools/linux-x86/bin/ijar out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar.toc.tmp )
[  0% 2/28682] Generating TOC: out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc
FAILED: out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 prebuilts/build-tools/linux-x86/bin/ijar out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc.tmp ) && (if cmp -s out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc.tmp out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc ; then rm out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc.tmp ; else mv out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc.tmp out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc ; fi )"
ftruncate(fd_out, GetSize()): Invalid argument
/bin/bash: line 1:   461 Aborted                 (core dumped) ( ASAN_OPTIONS=detect_leaks=0 prebuilts/build-tools/linux-x86/bin/ijar out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc.tmp )
[  0% 4/28682] Ensuring Jack server is installed and started
Jack server already installed in "/root/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /root/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher

ninja: build stopped: subcommand failed.
15:55:40 ninja failed with: exit status 1

do you meet this problem?


在 2017年10月26日星期四 UTC+8下午11:37:52,longsha...@gmail.com写道:
 When I compiling android O on 16.04, error happened, the Log as blow. I have tried to serach all google and couldn't found any usfull information, Could you help me to find out the reason ? Thanks very much.
Reply all
Reply to author
Forward
0 new messages