momodalo / vimtouch

vimtouch
Apache License 2.0
348 stars 71 forks source link

root mode not working on CM 10.2 - M1 #67

Open dcbishop opened 10 years ago

dcbishop commented 10 years ago

When I enable "Set user as root" on CyanogenMod 10.2 M1. Vimtouch doesn't start any more. It will briefly flash up then close. I'm not getting any su prompt. I believe I might have seen the text "unknown id" flash up before it closed. Clearing the App data in Android settings lets it start again. I'm not using any custom vimrc or other settings at this stage.

gbraad commented 9 years ago

not specific to Cyanogen. This also happens to me on Android 4.0.4. I use koush's superuser but it never shows after the "use root" setting is turned on.

JackieKu commented 9 years ago

I do have the same issue with VimTouch 2.7r1 on CM12.1.

The crashing log:

06-26 10:21:43.566 17906 17906 E VimTouch: onCreate
06-26 10:21:43.646  5103  5119 V IntentResolver: Resolving type=null scheme=null defaultOnly=false userId=0 of Intent { act=vimtouch.REMOTE_PLUGIN flg=0x8 }
06-26 10:21:43.646  5103  5119 V IntentResolver: Action list: null
06-26 10:21:43.646  5103  5119 V IntentResolver: Final result list:
06-26 10:21:43.660 17906 17906 W VIM Installation: Compare 4ca08ccbe3f4cf2caa9443795d324ac2 and 4ca08ccbe3f4cf2caa9443795d324ac2
06-26 10:21:43.660 17906 17906 W VIM Installation: MD5 error: /data/data/net.momodalo.app.vimtouch/files/vim/vimrc - true
06-26 10:21:43.661 17906 17906 W VIM Installation: Compare 4ca08ccbe3f4cf2caa9443795d324ac2 and 4ca08ccbe3f4cf2caa9443795d324ac2
06-26 10:21:43.677 17976 17976 D su      : su invoked.
06-26 10:21:43.677 17976 17976 D su      : starting daemon client 10075 10075
06-26 10:21:43.678 17978 17978 D su      : remote pid: 17976
06-26 10:21:43.678 17978 17978 D su      : remote pts_slave:
06-26 10:21:43.679 17978 17978 D su      : waiting for child exit
06-26 10:21:43.679 17981 17981 D su      : su invoked.
06-26 10:21:43.679 17981 17981 E su      : SU from: u0_a75
06-26 10:21:43.680 17981 17981 D su      : Checking whether app [uid:10075, pkgName: net.momodalo.app.vimtouch] is allowed to be root
06-26 10:21:43.681 17981 17981 D su      : Privilege elevation allowed by appops
06-26 10:21:43.681 17981 17981 D su      : Allowing via appops.
06-26 10:21:43.681 17981 17981 D su      : 10075 /system/bin/app_process32 executing 0 ls using binary /system/bin/sh : sh -c ls
06-26 10:21:43.681 17981 17981 D su      : Waiting for pid 17982.
06-26 10:21:43.687  5367  5367 I SuControllerImpl: Got change
06-26 10:21:43.694 17981 17981 D su      : Finishing su operation for app [uid:10075, pkgName: net.momodalo.app.vimtouch]
06-26 10:21:43.696 17978 17978 D su      : sending code
06-26 10:21:43.696 17978 17978 D su      : child exited
06-26 10:21:43.696 17976 17976 D su      : client exited 0
06-26 10:21:43.699 17906 17906 I TermExec: JNI_OnLoad
06-26 10:21:43.704  5367  5367 I SuControllerImpl: Got change
06-26 10:21:43.713 17906 17906 D Exec    : The LocalSocketAddress = /tmp/vimtouch/b5c0b289-5960-435b-8c6e-fca7ade12ca1
06-26 10:21:43.713 17906 17906 I TermExec: cmd_str = '/data/app/net.momodalo.app.vimtouch-1/lib/arm'
06-26 10:21:43.713 17906 17906 I TermExec: arg0_str = '(null)'
06-26 10:21:43.713 17906 17906 I TermExec: arg1_str = '/system/xbin/su'
06-26 10:21:43.713 17906 17906 E TermExec: testtest filepath /data/data/net.momodalo.app.vimtouch/files
06-26 10:21:43.714 17906 17906 I TermExec: tmpdir = '/data/data/net.momodalo.app.vimtouch/files/tmp'
06-26 10:21:43.714 17906 17906 I TermExec: terminfo = '/data/data/net.momodalo.app.vimtouch/files/terminfo'
06-26 10:21:43.714 17906 17906 I TermExec: Haveenv
06-26 10:21:43.714 17906 17906 I TermExec: path = '/data/app/net.momodalo.app.vimtouch-1/lib/arm/bin/armeabi/:/sbin:/system/bin:/system/xbin'
--------- beginning of crash
06-26 10:21:43.714 17906 17906 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 17906 (lo.app.vimtouch)
06-26 10:21:43.815   196   196 I DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-26 10:21:43.816   196   196 I DEBUG   : Build fingerprint: 'Xiaomi/cm_armani/unknown:5.1.1/LMY48B/9f6c86c134:userdebug/test-keys'
06-26 10:21:43.816   196   196 I DEBUG   : Revision: '0'
06-26 10:21:43.816   196   196 I DEBUG   : ABI: 'arm'
06-26 10:21:43.816   196   196 I DEBUG   : pid: 17906, tid: 17906, name: lo.app.vimtouch  >>> net.momodalo.app.vimtouch <<<
06-26 10:21:43.816   196   196 I DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
06-26 10:21:43.827   196   196 I DEBUG   :     r0 fffffff8  r1 00000000  r2 be856ca0  r3 00000000
06-26 10:21:43.827   196   196 I DEBUG   :     r4 00000000  r5 b7fe43a8  r6 00000000  r7 0000001a
06-26 10:21:43.827   196   196 I DEBUG   :     r8 12dc8720  r9 b7f8d508  sl 00000000  fp 12d8bae0
06-26 10:21:43.827   196   196 I DEBUG   :     ip ffffffff  sp be856c40  lr b6e7d581  pc b6e557e4  cpsr 40010030
06-26 10:21:43.827   196   196 I DEBUG   :
06-26 10:21:43.827   196   196 I DEBUG   : backtrace:
06-26 10:21:43.827   196   196 I DEBUG   :     #00 pc 000117e4  /system/lib/libc.so (strlen+35)
06-26 10:21:43.827   196   196 I DEBUG   :     #01 pc 0003957d  /system/lib/libc.so (strdup+4)
06-26 10:21:43.827   196   196 I DEBUG   :     #02 pc 000683a4  [heap]
06-26 10:21:44.158   196   196 I DEBUG   :
06-26 10:21:44.158   196   196 I DEBUG   : Tombstone written to: /data/tombstones/tombstone_01
06-26 10:21:44.143 17906 17906 W lo.app.vimtouch: type=1701 audit(0.0:504): auid=4294967295 uid=10075 gid=10075 ses=4294967295 subj=u:r:untrusted_app:s0 reason="memory violation" sig=11