• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

su segmentation fault after forced reboot

JanKrohn

Lurker
Hi,

I have a rooted Tolino ebook reader (branded Onyx e-ink device), running Android 2.3, which yesterday "froze" when charging. So I forced a reboot.

Big shock afterwards... device no longer booting.

I managed to get into the shell via ADB. Second shock:

Code:
$ su
su
[1]   Segmentation fault      /system/bin/am b...

I've searched this forum, other forums, tried replacing SU with the original one, and made several other attempts, none of which works because I can't start su.

I'm still quite new to Linux, so I've already run out of ideas... Do you have any further ideas (other than resetting the device)?
 
So, you're seeing the above exactly as shown from just typing the "su" command at the "$" shell prompt?

It kind of looks like the "am" (activity manager) process is what is dying (i.e., re. the "/system/bin/am b..." text you reported above)...:confused:

You could also fire-up a separate adb session from a window on your PC and view the logcat to watch what is happening at the time you're doing the above:

adb logcat
This page http://stackoverflow.com/questions/...ult-error-when-i-exec-pm-on-an-android-device indicates you might need to set (export) your LD_LIBRARY_PATH from the shell prompt:

export LD_LIBRARY_PATH=/system/lib

I've no idea if this will help...several other pages suggest using strace on the su invocation to help diagnose what might be going on--although most pages indicate that something had changed in/on the system that might have led to the segfault in the first place (i.e., a file's or directory's permission had changed, etc.).
 
So, you're seeing the above exactly as shown from just typing the "su" command at the "$" shell prompt?

Yes! I agree with your :confused:.

Both logcat and strace require permissions, so that doesn't work without su. :-(

Export doesn't require su, and that was a good try, but unfortunate;y no different result.
I'm getting acquainted to the thought of resetting the device. Fortunatelly I've been a god boy and have done my regular backups...
 
Logcat doesn't require any special permissions or root/su privileges...you can do it from your PC:

c:\> adb logcat

and it will dump/display the log to the screen.

Redirecting it to a file is also helpful, but hard to judge what is going on at the time.
 
Indeed! I tried to run logcat from the shell, but adb logcat from the promt did produce a result.

Code:
I/DEBUG   ( 2040): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   ( 2040): Build fingerprint: 'tolino/imx50_rdp/imx50_rdp:2.3.4/GRJ22/21:user/release-keys,v2.0.11'
I/DEBUG   ( 2040): pid: 22632, tid: 22632  >>> app_process <<<
I/DEBUG   ( 2040): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000050
I/DEBUG   ( 2040):  r0 54f6b89a  r1 000a4340  r2 00000013  r3 00000000
I/DEBUG   ( 2040):  r4 00094318  r5 00000000  r6 000a4050  r7 00001000
I/DEBUG   ( 2040):  r8 00000400  r9 00000000  10 00000002  fp 000756d0
I/DEBUG   ( 2040):  ip 00000005  sp 7eb290d8  lr 6d1103a1  pc 6f70aed4  cpsr 20000010
I/DEBUG   ( 2040):  d0  30a6e0f02aaba7a8  d1  30ae833430ae8300
I/DEBUG   ( 2040):  d2  30a51e6c30a51e38  d3  30a51ed430a51ea0
I/DEBUG   ( 2040):  d4  30a51f3c30a51f08  d5  30ae81c830a51f70
I/DEBUG   ( 2040):  d6  30ae823030ae81fc  d7  30ae829830ae8264
I/DEBUG   ( 2040):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   ( 2040):  d10 0000000000000000  d11 0000000000000000
I/DEBUG   ( 2040):  d12 0000000000000000  d13 0000000000000000
I/DEBUG   ( 2040):  d14 0000000000000000  d15 0000000000000000
I/DEBUG   ( 2040):  d16 30ae72f800000000  d17 0000000000000000
I/DEBUG   ( 2040):  d18 0000000000000000  d19 0000000000000000
I/DEBUG   ( 2040):  d20 0000000000000000  d21 0000000000000000
I/DEBUG   ( 2040):  d22 0000000000000000  d23 0000000000000000
I/DEBUG   ( 2040):  d24 0000000000000000  d25 0000000000000000
I/DEBUG   ( 2040):  d26 0000000000000000  d27 0000000000000000
I/DEBUG   ( 2040):  d28 0000000000000000  d29 0000000000000000
I/DEBUG   ( 2040):  d30 0000000000000000  d31 0000000000000000
I/DEBUG   ( 2040):  scr 60000010
I/DEBUG   ( 2040):
I/DEBUG   ( 2040):          #00  pc 0000aed4  /system/lib/libz.so
I/DEBUG   ( 2040):          #01  lr 6d1103a1  /system/lib/libnativehelper.so
I/DEBUG   ( 2040):
I/DEBUG   ( 2040): code around pc:
I/DEBUG   ( 2040): 6f70aeb4 e595204c e2853e53 e1520003 3a00000e
I/DEBUG   ( 2040): 6f70aec4 e285ed6e e28e003c e1500002 3a00000a
I/DEBUG   ( 2040): 6f70aed4 e5951050 e0630002 e3c0c003 e0632001
I/DEBUG   ( 2040): 6f70aee4 e28cee53 e3c20003 e086100e e280ce53
I/DEBUG   ( 2040): 6f70aef4 e586104c e086200c e5862050 e595106c
I/DEBUG   ( 2040):
I/DEBUG   ( 2040): code around lr:
I/DEBUG   ( 2040): 6d110380 9b03f8f7 d0332b00 0807eb03 8014f8c5
I/DEBUG   ( 2040): 6d110390 46289b0c 61ab2102 9f08f850 e9c8f7fa
I/DEBUG   ( 2040): 6d1103a0 b3404603 0f02f110 f04fbf08 d03a0800
I/DEBUG   ( 2040): 6d1103b0 d1082801 46204a22 447a6821 71a4f8d1
I/DEBUG   ( 2040): 6d1103c0 68524631 2802e00c f8dfd10c 4631c078
I/DEBUG   ( 2040):
I/DEBUG   ( 2040): stack:
I/DEBUG   ( 2040):     7eb29098  6caa51a0
I/DEBUG   ( 2040):     7eb2909c  6ca9f600
I/DEBUG   ( 2040):     7eb290a0  6caa4d38
I/DEBUG   ( 2040):     7eb290a4  6ca6a953  /system/lib/libdvm.so
I/DEBUG   ( 2040):     7eb290a8  2aaff150
I/DEBUG   ( 2040):     7eb290ac  2aaff150
I/DEBUG   ( 2040):     7eb290b0  2aab4018
I/DEBUG   ( 2040):     7eb290b4  000000a0
I/DEBUG   ( 2040):     7eb290b8  7eb29180
I/DEBUG   ( 2040):     7eb290bc  6ca670ab  /system/lib/libdvm.so
I/DEBUG   ( 2040):     7eb290c0  6caa51a0
I/DEBUG   ( 2040):     7eb290c4  6ca9f600
I/DEBUG   ( 2040):     7eb290c8  6caa4d38
I/DEBUG   ( 2040):     7eb290cc  6ca6a953  /system/lib/libdvm.so
I/DEBUG   ( 2040):     7eb290d0  df002777
I/DEBUG   ( 2040):     7eb290d4  e3a070ad
I/DEBUG   ( 2040): #00 7eb290d8  00000002
I/DEBUG   ( 2040):     7eb290dc  7eb2916c
I/DEBUG   ( 2040):     7eb290e0  00012388
I/DEBUG   ( 2040):     7eb290e4  00098468
I/DEBUG   ( 2040):     7eb290e8  0009849c
I/DEBUG   ( 2040):     7eb290ec  0001238c
I/DEBUG   ( 2040):     7eb290f0  7eb291b8
I/DEBUG   ( 2040):     7eb290f4  2aaff2c8
I/DEBUG   ( 2040):     7eb290f8  00000000
I/DEBUG   ( 2040):     7eb290fc  00000400
I/DEBUG   ( 2040):     7eb29100  00001000
I/DEBUG   ( 2040):     7eb29104  3132cf84
I/DEBUG   ( 2040):     7eb29108  54f6b874
I/DEBUG   ( 2040):     7eb2910c  eec165e7
I/DEBUG   ( 2040):     7eb29110  000a4580
I/DEBUG   ( 2040):     7eb29114  000a4340
I/DEBUG   ( 2040):     7eb29118  000a40bc
I/DEBUG   ( 2040):     7eb2911c  fffffffd
E/su      (22630): seteuid (root) failed with 1: Operation not permitted
D/AndroidRuntime(22646):
D/AndroidRuntime(22646): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime(22646): CheckJNI is OFF
D/dalvikvm(22646): creating instr width table
I/SamplingProfilerIntegration(22646): Profiler is disabled.
I/DEBUG   ( 2040): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   ( 2040): Build fingerprint: 'tolino/imx50_rdp/imx50_rdp:2.3.4/GRJ22/21:user/release-keys,v2.0.11'
I/DEBUG   ( 2040): pid: 22646, tid: 22646  >>> zygote <<<
I/DEBUG   ( 2040): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000050
I/DEBUG   ( 2040):  r0 54f6b89a  r1 0008e378  r2 00000013  r3 00000000
I/DEBUG   ( 2040):  r4 0007e918  r5 00000000  r6 0008e088  r7 00001000
I/DEBUG   ( 2040):  r8 00000400  r9 00000000  10 00000002  fp 0007e958
I/DEBUG   ( 2040):  ip 00000005  sp 7e9e8500  lr 6d1103a1  pc 6f70aed4  cpsr 20000010
I/DEBUG   ( 2040):  d0  30a6e0f02aaba7a8  d1  30ae43a430ae4370
I/DEBUG   ( 2040):  d2  30a51e6c30a51e38  d3  30a51ed430a51ea0
I/DEBUG   ( 2040):  d4  30a51f3c30a51f08  d5  30ae423830a51f70
I/DEBUG   ( 2040):  d6  30ae42a030ae426c  d7  30ae430830ae42d4
I/DEBUG   ( 2040):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   ( 2040):  d10 0000000000000000  d11 0000000000000000
I/DEBUG   ( 2040):  d12 0000000000000000  d13 0000000000000000
I/DEBUG   ( 2040):  d14 0000000000000000  d15 0000000000000000
I/DEBUG   ( 2040):  d16 30ae336800000000  d17 0000000000000000
I/DEBUG   ( 2040):  d18 0000000000000000  d19 0000000000000000
I/DEBUG   ( 2040):  d20 0000000000000000  d21 0000000000000000
I/DEBUG   ( 2040):  d22 0000000000000000  d23 0000000000000000
I/DEBUG   ( 2040):  d24 0000000000000000  d25 0000000000000000
I/DEBUG   ( 2040):  d26 0000000000000000  d27 0000000000000000
I/DEBUG   ( 2040):  d28 0000000000000000  d29 0000000000000000
I/DEBUG   ( 2040):  d30 0000000000000000  d31 0000000000000000
I/DEBUG   ( 2040):  scr 60000010
I/DEBUG   ( 2040):
I/DEBUG   ( 2040):          #00  pc 0000aed4  /system/lib/libz.so
I/DEBUG   ( 2040):          #01  pc 00066304  /system/lib/libdvm.so
I/DEBUG   ( 2040):
I/DEBUG   ( 2040): code around pc:
I/DEBUG   ( 2040): 6f70aeb4 e595204c e2853e53 e1520003 3a00000e
I/DEBUG   ( 2040): 6f70aec4 e285ed6e e28e003c e1500002 3a00000a
I/DEBUG   ( 2040): 6f70aed4 e5951050 e0630002 e3c0c003 e0632001
I/DEBUG   ( 2040): 6f70aee4 e28cee53 e3c20003 e086100e e280ce53
I/DEBUG   ( 2040): 6f70aef4 e586104c e086200c e5862050 e595106c
I/DEBUG   ( 2040):
I/DEBUG   ( 2040): code around lr:
I/DEBUG   ( 2040): 6d110380 9b03f8f7 d0332b00 0807eb03 8014f8c5
I/DEBUG   ( 2040): 6d110390 46289b0c 61ab2102 9f08f850 e9c8f7fa
I/DEBUG   ( 2040): 6d1103a0 b3404603 0f02f110 f04fbf08 d03a0800
I/DEBUG   ( 2040): 6d1103b0 d1082801 46204a22 447a6821 71a4f8d1
I/DEBUG   ( 2040): 6d1103c0 68524631 2802e00c f8dfd10c 4631c078
I/DEBUG   ( 2040):
I/DEBUG   ( 2040): stack:
I/DEBUG   ( 2040):     7e9e84c0  1a3b1cc4
I/DEBUG   ( 2040):     7e9e84c4  d0fd1f3e
I/DEBUG   ( 2040):     7e9e84c8  6caa4d38
I/DEBUG   ( 2040):     7e9e84cc  7e9e855c
I/DEBUG   ( 2040):     7e9e84d0  2aaf8970
I/DEBUG   ( 2040):     7e9e84d4  2aaf8970
I/DEBUG   ( 2040):     7e9e84d8  2aab4018
I/DEBUG   ( 2040):     7e9e84dc  000000a0
I/DEBUG   ( 2040):     7e9e84e0  7e9e85a8
I/DEBUG   ( 2040):     7e9e84e4  6ca670ab  /system/lib/libdvm.so
I/DEBUG   ( 2040):     7e9e84e8  6caa51a0
I/DEBUG   ( 2040):     7e9e84ec  6ca9f600
I/DEBUG   ( 2040):     7e9e84f0  6caa4d38
I/DEBUG   ( 2040):     7e9e84f4  3132cc19
I/DEBUG   ( 2040):     7e9e84f8  df002777
I/DEBUG   ( 2040):     7e9e84fc  e3a070ad
I/DEBUG   ( 2040): #00 7e9e8500  2aab4af0
I/DEBUG   ( 2040):     7e9e8504  7e9e8594
I/DEBUG   ( 2040):     7e9e8508  00000000
I/DEBUG   ( 2040):     7e9e850c  00000000
I/DEBUG   ( 2040):     7e9e8510  30a5354c
I/DEBUG   ( 2040):     7e9e8514  6ca66307  /system/lib/libdvm.so
I/DEBUG   ( 2040): #01 7e9e8518  7e9e85e0
I/DEBUG   ( 2040):     7e9e851c  2aaf8ab8
I/DEBUG   ( 2040):     7e9e8520  00000000
I/DEBUG   ( 2040):     7e9e8524  00000400
I/DEBUG   ( 2040):     7e9e8528  00001000
I/DEBUG   ( 2040):     7e9e852c  3132cf84
I/DEBUG   ( 2040):     7e9e8530  54f6b874
I/DEBUG   ( 2040):     7e9e8534  eec165e7
I/DEBUG   ( 2040):     7e9e8538  0008e5b8
I/DEBUG   ( 2040):     7e9e853c  0008e378
I/DEBUG   ( 2040):     7e9e8540  0008e0f4
I/DEBUG   ( 2040):     7e9e8544  fffffffd
I/DEBUG   ( 2040):     7e9e8548  0008e0dc
I/DEBUG   ( 2040):     7e9e854c  0008e0f8
I/DEBUG   ( 2040):     7e9e8550  5310b897
I/DEBUG   ( 2040):     7e9e8554  0008e0e0
I/DEBUG   ( 2040):     7e9e8558  553de079
I/DEBUG   ( 2040):     7e9e855c  54f6b89a
I/ServiceManager( 2036): service 'media.audio_flinger' died
I/ServiceManager( 2036): service 'media.player' died
I/ServiceManager( 2036): service 'media.camera' died
I/ServiceManager( 2036): service 'media.audio_policy' died
I/Netd    (22648): Netd 1.0 starting
I/        (22647): ServiceManager: 0xad50
D/iMX ALSA(22647): i.MX51 ALSA module opened
D/iMX ALSA(22647): Initializing devices for IMX51 ALSA module
W/AudioHardwareInterface(22647): Using stubbed audio hardware. No sound will be produced.
D/AudioHardwareInterface(22647): setMode(NORMAL)
I/CameraService(22647): CameraService started (pid=22647)
I/FslCameraHAL(22647): Face Back Camera is #, orient is 0
I/FslCameraHAL(22647): Face Front Camera is #, orient is 0
I/AudioFlinger(22647): AudioFlinger's thread 0xc640 ready to run

Can you see anything from that? I'm already googleing...
 
@JanKrohn, I don't see (or understand) anything obvious that would lead to an explanation or solution :(.

I did some Google searches on the SIGSEGV with other keywords (i.e., including "Android" and the two libraries listed above), but the discussions (mostly on/from stackoverflow) seemed related to people's development efforts vs. simply running the su command and getting the fault.
 
Back
Top Bottom