andreasgal/B2G — Issue #56: /system/bin/mediaserver crash at system startup
Author: shianyow
Created: 2011-11-10 03:19:44+00:00
State: open

This issue was separated from "#47: CPU pegged by debuggerd on startup".

/system/bin/mediaserver will crash at first time during system startup and automatically restart to work normally.

According to /data/tombstone, the crash point is android_atmoic_add(), called by SharedBuffer::acquired().

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/full_galaxys2/galaxys2:2.3.5/GINGERBREAD/eng.sywu.20111022.232821:eng/test-keys'
pid: 2593, tid: 2593 >>> /system/bin/mediaserver <<<
signal 7 (SIGBUS), code 128 (?), fault addr 00000000
r0 00000001 r1 a9a081dd r2 00000000 r3 00000001
r4 00000001 r5 a9a081dd r6 a9a081ed r7 beb77790
r8 00000000 r9 beb77808 10 beb77800 fp beb7778c
ip a8129cb0 sp beb77780 lr af904b84 pc af904b84 cpsr a0000010
#00 pc 00004b84 /system/lib/libcutils.so
android_atomic_add
system/core/include/cutils/atomic-arm.h:175

#01 pc 0001b00e /system/lib/libutils.so
android::SharedBuffer::acquire() const
frameworks/base/libs/utils/SharedBuffer.cpp:97

#02 pc 0001c662 /system/lib/libutils.so
android::String8::setTo(android::String8 const&)
frameworks/base/libs/utils/String8.cpp:297

#03 pc 000343d4 /system/lib/libmedia.so
android::String8::operator=(android::String8 const&)
frameworks/base/include/utils/String8.h:360

#04 pc 00008446 /system/lib/libaudiopolicy.so
android::AudioPolicyManager::getParamFromPolicy(android::String8 const&)

#05 pc 0002c0a4 /system/lib/libaudioflinger.so
android::AudioPolicyService::getStrategyForStream(android::AudioSystem::stream_type)
frameworks/base/services/audioflinger/AudioPolicyService.cpp:354

#06 pc 00035454 /system/lib/libmedia.so
android::AudioSystem::getStrategyForStream(android::AudioSystem::stream_type)
frameworks/base/media/libmedia/AudioSystem.cpp:677

#07 pc 00026dd8 /system/lib/libaudioflinger.so
#08 pc 000270a2 /system/lib/libaudioflinger.so
#09 pc 0002e94c /system/lib/libmedia.so
#10 pc 0001f4d4 /system/lib/libaudioflinger.so
#11 pc 000136a8 /system/lib/libbinder.so
#12 pc 00016edc /system/lib/libbinder.so
#13 pc 000170d0 /system/lib/libbinder.so
#14 pc 00008af8 /system/bin/mediaserver
#15 pc 000150f6 /system/lib/libc.so