GrapheneOS-Archive / legacy_bugtracker

See the new issue tracker for GrapheneOS at https://github.com/GrapheneOS/os_issue_tracker.
112 stars 11 forks source link

GNU IcecatMobile crashes on startup (PaX-Softmode fixes this) #188

Closed vanitasvitae closed 8 years ago

vanitasvitae commented 8 years ago

Hi GNU IcecatMobile crashes when I start it with PaX-Softmode disabled. Enabling softmode fixes the problem. Here is a log:

02-20 17:19:22.630 30116 30116 V GeckoProfile: Fetching profile: 'default', 'null'
02-20 17:19:22.634 30116 30116 D GeckoApp: Enabling Android StrictMode
02-20 17:19:22.636 30116 30134 V GeckoProfile: Fetching profile: '', 'null'
02-20 17:19:22.638 30116 30134 D GeckoSharedPrefs: Current version = 1, prefs version = 1
02-20 17:19:22.654 30116 30116 D GeckoScreenOrientation: updating to new orientation PORTRAIT_PRIMARY
02-20 17:19:22.654 30116 30137 D GeckoLoader: Gecko environment env0: null
02-20 17:19:22.711 30116 30116 D TypefaceImpl: makeFontCollection adding /system/fonts/Roboto-Regular.ttf
02-20 17:19:22.724 30116 30137 E GeckoLibLoad: Load sqlite start
02-20 17:19:22.731 30116 30137 F libc    : Fatal signal 11 (SIGSEGV), code 2, fault addr 0x94f42e24 in tid 30137 (Gecko)
02-20 17:19:22.797 30116 30116 E Minikin : addFont failed to create font /system/fonts/NanumGothic.ttf
02-20 17:19:22.797 30116 30116 E Minikin : addFont failed to create font /system/fonts/DroidSansFallback.ttf
02-20 17:19:22.797 30116 30116 E Minikin : addFont failed to create font /system/fonts/MTLmr3m.ttf
02-20 17:19:22.819  1442  1442 W debuggerd: type=1400 audit(0.0:526): avc: denied { search } for name="org.gnu.icecat" dev="dm-0" ino=1483299 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
02-20 17:19:22.832  1442  1442 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-20 17:19:22.832  1442  1442 F DEBUG   : Build fingerprint: 'Android/aosp_hammerhead/hammerhead:6.0.1/MMB29U/2016.02.18.04.14.51:user/release-keys'
02-20 17:19:22.832  1442  1442 F DEBUG   : Revision: '0'
02-20 17:19:22.832  1442  1442 F DEBUG   : ABI: 'arm'
02-20 17:19:22.833  1442  1442 F DEBUG   : pid: 30116, tid: 30137, name: Gecko  >>> org.gnu.icecat <<<
02-20 17:19:22.833  1442  1442 F DEBUG   : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x94f42e24
02-20 17:19:22.842  1442  1442 F DEBUG   :     r0 94f42e24  r1 87f6d90a  r2 00000004  r3 94f5e000
02-20 17:19:22.842  1442  1442 F DEBUG   :     r4 97bff29c  r5 94f42e24  r6 94f42000  r7 87f6d906
02-20 17:19:22.842  1442  1442 F DEBUG   :     r8 87f6d90c  r9 00000004  sl 87cc8000  fp 97bf73a6
02-20 17:19:22.842  1442  1442 F DEBUG   :     ip 80000000  sp 87f6d8e8  lr 97bd15f3  pc 94f16d70  cpsr 800b0030
02-20 17:19:22.846  1442  1442 F DEBUG   : 
02-20 17:19:22.846  1442  1442 F DEBUG   : backtrace:
02-20 17:19:22.846  1442  1442 F DEBUG   :     #00 pc 00016d70  /system/lib/libc.so (__memcpy_base+155)
02-20 17:19:22.847  1442  1442 F DEBUG   :     #01 pc 0002a5ef  /data/app/org.gnu.icecat-1/lib/arm/libmozglue.so
02-20 17:19:22.839  1442  1442 W debuggerd: type=1400 audit(0.0:527): avc: denied { search } for name="org.gnu.icecat" dev="dm-0" ino=1483299 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
02-20 17:19:22.839  1442  1442 W debuggerd: type=1400 audit(0.0:528): avc: denied { search } for name="org.gnu.icecat" dev="dm-0" ino=1483299 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
02-20 17:19:23.051  1962 30138 W ActivityManager:   Force finishing activity org.gnu.icecat/.App
02-20 17:19:23.051  1442  1442 F DEBUG   : 
02-20 17:19:23.051  1442  1442 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_08
02-20 17:19:23.051  1442  1442 E DEBUG   : AM write failed: Broken pipe
02-20 17:19:23.077  1454  1454 I Zygote  : Process 30116 exited due to signal (11)
02-20 17:19:23.112 29539 29539 I SignalStrengthTracker: Ignored signal sample for CID: 133837044 due to device movement. Waiting for 17336 ms.
02-20 17:19:23.364  1962 30138 I WindowManager: Screenshot max retries 4 of Token{579e405 ActivityRecord{77c337c u0 org.gnu.icecat/.App t224 f}} appWin=Window{b057614 u0 Starting org.gnu.icecat} drawState=4
02-20 17:19:23.365  1962 30138 W ActivityManager: Exception thrown during pause
02-20 17:19:23.365  1962 30138 W ActivityManager: android.os.DeadObjectException
02-20 17:19:23.365  1962 30138 W ActivityManager:   at android.os.BinderProxy.transactNative(Native Method)
02-20 17:19:23.365  1962 30138 W ActivityManager:   at android.os.BinderProxy.transact(Binder.java:503)
02-20 17:19:23.365  1962 30138 W ActivityManager:   at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:727)
02-20 17:19:23.365  1962 30138 W ActivityManager:   at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:867)
02-20 17:19:23.365  1962 30138 W ActivityManager:   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2907)
02-20 17:19:23.365  1962 30138 W ActivityManager:   at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2763)
02-20 17:19:23.365  1962 30138 W ActivityManager:   at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2760)
02-20 17:19:23.365  1962 30138 W ActivityManager:   at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:12064)
02-20 17:19:23.365  1962 30138 W ActivityManager:   at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11960)
02-20 17:19:23.365  1962 30138 W ActivityManager:   at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12649)
02-20 17:19:23.365  1962 30138 W ActivityManager:   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12156)
02-20 17:19:23.365  1962 30138 W ActivityManager:   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
02-20 17:19:23.366   180   180 E lowmemorykiller: Error opening /proc/30116/oom_score_adj; errno=2
02-20 17:19:23.370  1962 23623 I ActivityManager: Process org.gnu.icecat (pid 30116) has died
02-20 17:19:23.422  1962  2882 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@25a8662 attribute=null, token = android.os.BinderProxy@c39efbc
02-20 17:19:23.422  1962  2067 I OpenGLRenderer: Initialized EGL, version 1.4
02-20 17:19:23.970 20734 21433 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
02-20 17:19:24.566  1962  2882 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@20f1fdc attribute=null, token = android.os.BinderProxy@c39efbc
02-20 17:19:24.741  1962  1980 W AppOps  : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
thestinger commented 8 years ago

Thanks. Added MPROTECT and PAGEEXEC exceptions for org.gnu.icecat. It will be included in the next release.