Relocating boot.art image from system/framework to /data/dalvik-cache in Lollipop

1,179 views
Skip to first unread message

Deepika

unread,
Sep 22, 2015, 8:09:03 AM9/22/15
to Android Building
Hi,

I have build my Lollipop image with the WITH_DEXPREOPT=true option.
However, on booting the device, I am getting the following error for "patchoat":

I/art     (  175): Pruning dalvik-cache since we are relocating an image and will need to recompile
I/art     (  175): RelocateImage: /system/bin/patchoat --input-image-location=/system/framework/boot.art --output-image-file=/data/dalvik-cache/arm/system@framework@boot.art --input-oat-location=/system/framework/boot.oat --output-oat-file=/data/dalvik-cache/arm/system@framework@boot.oat --instruction-set=arm --base-offset-delta=13135872

F/patchoat(  359): art/runtime/mem_map.cc:599] Check failed: begin_map->BaseBegin() <= end_map->BaseBegin() (begin_map->BaseBegin()=0x70000000, end_map->BaseBegin()=0x60000000) 
I/ServiceManager(  171): Waiting for service batterystats...
F/patchoat(  359): art/runtime/runtime.cc:284] Runtime aborting...
F/patchoat(  359): art/runtime/runtime.cc:284] (Aborting thread was not attached to runtime!)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #00 pc 00004ce4  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #01 pc 00003531  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #02 pc 0023fead  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+68)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #03 pc 0021557d  /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+120)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #04 pc 0021583d  /system/lib/libart.so (art::Runtime::Abort()+72)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #05 pc 000a6e93  /system/lib/libart.so (art::LogMessage::~LogMessage()+1322)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #06 pc 001d14a9  /system/lib/libart.so (art::MemMap::CheckNoGaps(art::MemMap*, art::MemMap*)+628)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #07 pc 00135713  /system/lib/libart.so (art::gc::Heap::Heap(unsigned int, unsigned int, unsigned int, unsigned int, double, double, unsigned int, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, art::InstructionSet, art::gc::CollectorType, art::gc::CollectorType, unsigned int, unsigned int, bool, unsigned int, unsigned int, bool, bool, bool, bool, bool, bool, bool, bool, bool, unsigned long long)+3698)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #08 pc 00216ba5  /system/lib/libart.so (art::Runtime::Init(std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*> > > const&, bool)+680)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #09 pc 0021880b  /system/lib/libart.so (art::Runtime::Create(std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*> > > const&, bool)+46)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #10 pc 000059b7  /system/bin/patchoat (???)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #11 pc 00007d85  /system/bin/patchoat (???)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #12 pc 000128f1  /system/lib/libc.so (__libc_init+44)
F/patchoat(  359): art/runtime/runtime.cc:284]   native: #13 pc 0000280c  /system/bin/patchoat (???)
F/patchoat(  359): art/runtime/runtime.cc:284] Dumping all threads without appropriate locks held: thread list lock mutator lock
F/patchoat(  359): art/runtime/runtime.cc:284] All threads:
F/patchoat(  359): art/runtime/runtime.cc:284] DALVIK THREADS (0):
F/patchoat(  359): art/runtime/runtime.cc:284] 
--------- beginning of crash
F/libc    (  359): Fatal signal 6 (SIGABRT), code -6 in tid 359 (patchoat)
D/libEGL  (  292): loaded /system/lib/egl/libGLESv2_VIVANTE.so
I/DEBUG   (  169): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  169): Build fingerprint: 'Freescale/sabresd_6dq/sabresd_6dq:5.0.2/1.0.0-ga-rc4/20150518:user/release-keys'
I/DEBUG   (  169): Revision: '0'
I/DEBUG   (  169): ABI: 'arm'
I/DEBUG   (  169): pid: 359, tid: 359, name: patchoat  >>> /system/bin/patchoat <<<
I/DEBUG   (  169): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
I/DEBUG   (  169): Abort message: 'art/runtime/mem_map.cc:599] Check failed: begin_map->BaseBegin() <= end_map->BaseBegin() (begin_map->BaseBegin()=0x70000000, end_map->BaseBegin()=0x60000000) '
I/DEBUG   (  169):     r0 00000000  r1 00000167  r2 00000006  r3 00000000
I/DEBUG   (  169):     r4 76f77114  r5 00000006  r6 00000002  r7 0000010c
I/DEBUG   (  169):     r8 00000001  r9 7684f460  sl 00000000  fp 7684d480
I/DEBUG   (  169):     ip 00000167  sp 7eb8f110  lr 76f00119  pc 76f22eb0  cpsr 600f0010
I/DEBUG   (  169): 
I/DEBUG   (  169): backtrace:
I/DEBUG   (  169):     #00 pc 00039eb0  /system/lib/libc.so (tgkill+12)
I/DEBUG   (  169):     #01 pc 00017115  /system/lib/libc.so (pthread_kill+52)
I/DEBUG   (  169):     #02 pc 00017d33  /system/lib/libc.so (raise+10)
I/DEBUG   (  169):     #03 pc 00014589  /system/lib/libc.so (__libc_android_abort+36)
I/DEBUG   (  169):     #04 pc 00012a40  /system/lib/libc.so (abort+4)
I/DEBUG   (  169):     #05 pc 00215895  /system/lib/libart.so (art::Runtime::Abort()+160)
I/DEBUG   (  169):     #06 pc 000a6e93  /system/lib/libart.so (art::LogMessage::~LogMessage()+1322)
I/DEBUG   (  169):     #07 pc 001d14a9  /system/lib/libart.so (art::MemMap::CheckNoGaps(art::MemMap*, art::MemMap*)+628)
I/DEBUG   (  169):     #08 pc 00135713  /system/lib/libart.so (art::gc::Heap::Heap(unsigned int, unsigned int, unsigned int, unsigned int, double, double, unsigned int, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, art::InstructionSet, art::gc::CollectorType, art::gc::CollectorType, unsigned int, unsigned int, bool, unsigned int, unsigned int, bool, bool, bool, bool, bool, bool, bool, bool, bool, unsigned long long)+3698)
I/DEBUG   (  169):     #09 pc 00216ba5  /system/lib/libart.so (art::Runtime::Init(std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*> > > const&, bool)+680)
I/DEBUG   (  169):     #10 pc 0021880b  /system/lib/libart.so (art::Runtime::Create(std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*> > > const&, bool)+46)
I/DEBUG   (  169):     #11 pc 000059b7  /system/bin/patchoat
I/DEBUG   (  169):     #12 pc 00007d85  /system/bin/patchoat
I/DEBUG   (  169):     #13 pc 000128f1  /system/lib/libc.so (__libc_init+44)
I/DEBUG   (  169):     #14 pc 0000280c  /system/bin/patchoat
I/DEBUG   (  169): 
I/DEBUG   (  169): Tombstone written to: /data/tombstones/tombstone_05
W/art     (  175): Could not create image space with image file '/system/framework/boot.art'. Attempting to fall back to imageless running. Error was: Unable to relocate image '/system/framework/boot.art' from '/system/framework/arm/boot.art' to '/data/dalvik-cache/arm/system@framework@boot.art': Failed execv(/system/bin/patchoat --input-image-location=/system/framework/boot.art --output-image-file=/data/dalvik-cache/arm/system@framework@boot.art --input-oat-location=/system/framework/boot.oat --output-oat-file=/data/dalvik-cache/arm/system@framework@boot.oat --instruction-set=arm --base-offset-delta=13135872) because non-0 exit status
E/cutils-trace(  292): Error opening trace file: Permission denied (13)
E/BufferQueueProducer(  165): [BootAnimation] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count


Any help in this regard would be much appreciated.

Thanks
Deepika
Reply all
Reply to author
Forward
0 new messages