You are not logged in.

#1 2018-05-04 17:06:59

ov3r1oad
Member
Registered: 2016-03-18
Posts: 3

Errors while building Android on LInux

After last arch linux update I got problems during Android 5.1 building. The error log is the following:

dex2oatd F  9776  9776 art/runtime/arch/x86/thread_x86.cc:108] Check failed: 0 == syscall(123, 1, &ldt_entry, sizeof(ldt_entry)) (0=0, syscall(123, 1, &ldt_entry, sizeof(ldt_entry))=-1)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289] Runtime aborting...
dex2oatd F  9776  9776 art/runtime/runtime.cc:289] (Aborting thread was not attached to runtime!)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #00 pc 00006ca6  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+82)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #01 pc 000043c1  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+33)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #02 pc 00386ae9  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+121)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #03 pc 0034fd0d  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+301)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #04 pc 0034fbd9  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZNK3art8DumpableINS_10AbortStateEE4DumpERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEE+41)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #05 pc 0034e568  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3artlsINS_10AbortStateEEERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEES7_RKNS_8DumpableIT_EE+40)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #06 pc 00347a08  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art7Runtime5AbortEv+168)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #07 pc 000fadb9  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art10LogMessageD1Ev+393)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #08 pc 003d767c  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art6Thread7InitCpuEv+1436)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #09 pc 00358357  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art6Thread4InitEPNS_10ThreadListEPNS_9JavaVMExtE+55)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #10 pc 00359c77  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art6Thread6AttachEPKcbP8_jobjectb+391)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #11 pc 003483d1  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art7Runtime4InitERKNSt3__16vectorINS1_4pairINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKvEENS7_ISC_EEEEb+1729)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #12 pc 00347cdd  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art7Runtime6CreateERKNSt3__16vectorINS1_4pairINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKvEENS7_ISC_EEEEb+93)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #13 pc 000180ba  /home/yegor/myco/lollipop/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat13CreateRuntimeERKNSt3__16vectorINS1_4pairINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKvEENS7_ISC_EEEENS_14InstructionSetE+42)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #14 pc 0000f81f  /home/yegor/myco/lollipop/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat6CreateEPPS0_RKNSt3__16vectorINS3_4pairINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEPKvEENS9_ISE_EEEERKNS_15CompilerOptionsENS_8Compiler4KindENS_14InstructionSetENS_22InstructionSetFeaturesEPNS_19VerificationResultsEPNS_25DexFileToMethodInlinerMapEj+143)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #15 pc 00009055  /home/yegor/myco/lollipop/out/host/linux-x86/bin/dex2oatd (_ZN3artL7dex2oatEiPPc+12885)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #16 pc 00005df0  /home/yegor/myco/lollipop/out/host/linux-x86/bin/dex2oatd (main+32)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #17 pc 00018e80  /usr/lib32/libc-2.27.so (__libc_start_main+240)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]   native: #18 pc 000053d4  /home/yegor/myco/lollipop/out/host/linux-x86/bin/dex2oatd (???)
dex2oatd F  9776  9776 art/runtime/runtime.cc:289] Dumping all threads without appropriate locks held: thread list lock mutator lock
dex2oatd F  9776  9776 art/runtime/runtime.cc:289] All threads:
dex2oatd F  9776  9776 art/runtime/runtime.cc:289] DALVIK THREADS (0):
dex2oatd F  9776  9776 art/runtime/runtime.cc:289]
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299] Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299] OS: Linux 4.16.6-1-ARCH (x86_64)
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299] 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-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/core-junit_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/mms-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.policy_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-location=/system/framework/core-libart.jar --dex-location=/system/framework/conscrypt.jar --dex-location=/system/framework/okhttp.jar --dex-location=/system/framework/core-junit.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/mms-common.jar --dex-location=/system/framework/android.policy.jar --dex-location=/system/framework/apache-xml.jar --oat-symbols=out/target/product/myco/symbols/system/framework/arm/boot.oat --oat-file=out/target/product/myco/dex_bootjars/system/framework/arm/boot.oat --oat-location=/system/framework/arm/boot.oat --image=out/target/product/myco/dex_bootjars/system/framework/arm/boot.art --base=0x70000000 --instruction-set=arm --instruction-set-features=default --android-root=out/target/product/myco/system --include-patch-information --runtime-arg -Xnorelocate --no-include-debug-symbols
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299] Thread: 9776 "dex2oatd"
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299] Registers:
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     eax: 0x00000000    ebx: 0x00002630    ecx: 0x00002630    edx: 0x00000006
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     edi: 0xf7efd084    esi: 0xffffffff    ebp: 0x5753f5d1    esp: 0xffa0bc4c
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     eip: 0xf7f22db9                    eflags: 0x00000286 [ PF SF IF ]
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]      cs: 0x00000023     ds: 0x0000002b     es: 0x0000002b     fs: 0x00000000
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]      gs: 0x00000063     ss: 0x0000002b
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299] Backtrace:
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     #00 pc 00006ca6  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+82)
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     #01 pc 000043c1  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+33)
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     #02 pc 00386ae9  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+121)
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     #03 pc 003d579c  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art9Backtrace4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+60)
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     #04 pc 003d5759  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZNK3art8DumpableINS_9BacktraceEE4DumpERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEE+41)
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     #05 pc 003d5618  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3artlsINS_9BacktraceEEERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEES7_RKNS_8DumpableIT_EE+40)
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     #06 pc 003d4e81  /home/yegor/myco/lollipop/out/host/linux-x86/lib/libartd.so (_ZN3art22HandleUnexpectedSignalEiP7siginfoPv+817)
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     #07 pc 00000ddf  [vdso] (???)
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]     #08 pc 6474616e  ???
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:299]
dex2oatd F  9776  9776 art/runtime/runtime_linux.cc:313] Fault message:

Actually, I have no idea what can it be. Have never encountered this kind of issues before.

Offline

#2 2018-05-08 09:51:47

ov3r1oad
Member
Registered: 2016-03-18
Posts: 3

Re: Errors while building Android on LInux

May it be related to the

CONFIG_MODIFY_LDT_SYSCALL is not set

is shown when I call "zgrep MODIFY_LDT /proc/config.gz" ?

Offline

Board footer

Powered by FluxBB