Android SDK native debug crashes the VIM


#1

Hi,

Android native debug causes a kernel panic on the VIM with VIM_Nougat_V171028.7z.

Steps to duplicate the issue:

  • Run fully updated Android Studio 3.0.1 on Ubuntu 16.04 LTS.
  • Start a new Android Studio project.
  • Select Include C++ support.
  • Select API 25 for Phone and Tablet.
  • Select Empty Activity.
  • Click Finish.
  • Make Project.
  • Debug ‘app’.

This results in the following kernel panic:

[ 1437.726617@3] Bad mode in Synchronous Abort handler detected, code 0x8600000f
[ 1437.728127@3] CPU: 3 PID: 5679 Comm: u.myapplication Tainted: G           O 3.14.29-04526-g262a17c #1
[ 1437.737253@3] task: ffffffc047f90000 ti: ffffffc0478e0000 task.ti: ffffffc0478e0000
[ 1437.744845@3] PC is at 0x7dcfa4c744
[ 1437.748289@3] LR is at 0x7dcfa4c744
[ 1437.751740@3] pc : [<0000007dcfa4c744>] lr : [<0000007dcfa4c744>] pstate: 800003c5
[ 1437.759242@3] sp : ffffffc0478e3ed0
[ 1437.762693@3] x29: 0000007ffaa96520 x28: 0000007ffaa96960 
[ 1437.768125@3] x27: 0000007dcf6d3470 x26: 0000007dcfa23770 
[ 1437.773559@3] x25: 00000000f2000000 x24: 000000000000003c 
[ 1437.778993@3] x23: 0000000060000000 x22: 0000007dcfa4ef60 
[ 1437.784427@3] x21: ffffffffffffffff x20: 0000007dcfae3210 
[ 1437.789860@3] x19: 0000007dcf6d3548 x18: 00000000819d3f7d 
[ 1437.795294@3] x17: 00000000f9376b5a x16: 0000000000000000 
[ 1437.800728@3] x15: 0000007dcfa28000 x14: 0000007dcfa27000 
[ 1437.806161@3] x13: 0000000000000000 x12: 0000000000000001 
[ 1437.811595@3] x11: 0000000000000001 x10: 0000000000000000 
[ 1437.817029@3] x9 : 0000000000000001 x8 : 0000000000000001 
[ 1437.822462@3] x7 : 0000000000000000 x6 : ffffffc054522460 
[ 1437.827896@3] x5 : ffffffc054522500 x4 : 00000000000003c0 
[ 1437.833330@3] x3 : 0000000000000001 x2 : 000000000000046a 
[ 1437.838764@3] x1 : 0000000000000000 x0 : 0000000000000001 
[ 1437.844199@3] 
[ 1437.844199@3] SP: 0xffffffc0478e3e50:
[ 1437.849458@3] 3e50  cfae3210 0000007d ffffffff ffffffff cfa4ef60 0000007d 60000000 00000000
[ 1437.857739@3] 3e70  0000003c 00000000 f2000000 00000000 cfa23770 0000007d cf6d3470 0000007d
[ 1437.866018@3] 3e90  faa96960 0000007f faa96520 0000007f cfa4c744 0000007d 478e3ed0 ffffffc0
[ 1437.874298@3] 3eb0  cfa4c744 0000007d 800003c5 00000000 00000023 00000000 00017000 00000000
[ 1437.882579@3] 3ed0  00000000 00000000 00000007 00000000 ca7bd000 0000007d faa96960 0000007f
[ 1437.890858@3] 3ef0  00000000 00000000 00000040 00000000 0000003f 00000000 00000000 00000000
[ 1437.899138@3] 3f10  00000001 00000000 00000001 00000000 00000000 00000000 00000001 00000000
[ 1437.907419@3] 3f30  00000001 00000000 00000000 00000000 cfa27000 0000007d cfa28000 0000007d
[ 1437.915701@3] 
[ 1437.915701@3] X5: 0xffffffc054522480:
[ 1437.920960@3] 2480  00000080 00000000 00000000 00000000 00000009 ffffffc0 00000000 00000000
[ 1437.929240@3] 24a0  00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1437.937519@3] 24c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1437.945800@3] 24e0  00000000 00000000 00000000 00000000 00000000 00000000 544f4e00 ffffffc0
[ 1437.954080@3] 2500  47f909e0 ffffffc0 47f909e0 ffffffc0 00000000 00000000 00000005 00000000
[ 1437.962360@3] 2520  00030001 00000000 cfa4ef60 0000007d 00000000 00000000 00000000 00000000
[ 1437.970640@3] 2540  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1437.978919@3] 2560  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1437.987201@3] 
[ 1437.987201@3] X6: 0xffffffc0545223e0:
[ 1437.992461@3] 23e0  00000080 00000000 00000000 00000000 00000000 ffffffc0 00000001 00000000
[ 1438.000741@3] 2400  00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.009021@3] 2420  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.017301@3] 2440  00000000 00000000 00000000 00000000 00000000 00000000 544f4e00 ffffffc0
[ 1438.025581@3] 2460  54522640 ffffffc0 54522460 ffffffc0 00000000 00000000 00000001 00000000
[ 1438.033861@3] 2480  00000080 00000000 00000000 00000000 00000009 ffffffc0 00000000 00000000
[ 1438.042141@3] 24a0  00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.050421@3] 24c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.058710@3] 
[ 1438.060344@3] Internal error: Oops - bad mode: 0 [#1] PREEMPT SMP
[ 1438.066380@3] Modules linked in: dwc_otg dwc3 dhd(O) cfg80211 ddr_window mali(O)
[ 1438.073714@3] CPU: 3 PID: 5679 Comm: u.myapplication Tainted: G           O 3.14.29-04526-g262a17c #1
[ 1438.082855@3] task: ffffffc047f90000 ti: ffffffc0478e0000 task.ti: ffffffc0478e0000
[ 1438.090443@3] PC is at 0x7dcfa4c744
[ 1438.093892@3] LR is at 0x7dcfa4c744
[ 1438.097342@3] pc : [<0000007dcfa4c744>] lr : [<0000007dcfa4c744>] pstate: 800003c5
[ 1438.104845@3] sp : ffffffc0478e3ed0
[ 1438.108295@3] x29: 0000007ffaa96520 x28: 0000007ffaa96960 
[ 1438.113729@3] x27: 0000007dcf6d3470 x26: 0000007dcfa23770 
[ 1438.119163@3] x25: 00000000f2000000 x24: 000000000000003c 
[ 1438.124596@3] x23: 0000000060000000 x22: 0000007dcfa4ef60 
[ 1438.130030@3] x21: ffffffffffffffff x20: 0000007dcfae3210 
[ 1438.135464@3] x19: 0000007dcf6d3548 x18: 00000000819d3f7d 
[ 1438.140898@3] x17: 00000000f9376b5a x16: 0000000000000000 
[ 1438.146331@3] x15: 0000007dcfa28000 x14: 0000007dcfa27000 
[ 1438.151765@3] x13: 0000000000000000 x12: 0000000000000001 
[ 1438.157199@3] x11: 0000000000000001 x10: 0000000000000000 
[ 1438.162632@3] x9 : 0000000000000001 x8 : 0000000000000001 
[ 1438.168066@3] x7 : 0000000000000000 x6 : ffffffc054522460 
[ 1438.173500@3] x5 : ffffffc054522500 x4 : 00000000000003c0 
[ 1438.178934@3] x3 : 0000000000000001 x2 : 000000000000046a 
[ 1438.184367@3] x1 : 0000000000000000 x0 : 0000000000000001 
[ 1438.189802@3] 
[ 1438.189802@3] SP: 0xffffffc0478e3e50:
[ 1438.195062@3] 3e50  cfae3210 0000007d ffffffff ffffffff cfa4ef60 0000007d 60000000 00000000
[ 1438.203342@3] 3e70  0000003c 00000000 f2000000 00000000 cfa23770 0000007d cf6d3470 0000007d
[ 1438.211622@3] 3e90  faa96960 0000007f faa96520 0000007f cfa4c744 0000007d 478e3ed0 ffffffc0
[ 1438.219902@3] 3eb0  cfa4c744 0000007d 800003c5 00000000 00000023 00000000 00017000 00000000
[ 1438.228182@3] 3ed0  00000000 00000000 00000007 00000000 ca7bd000 0000007d faa96960 0000007f
[ 1438.236462@3] 3ef0  00000000 00000000 00000040 00000000 0000003f 00000000 00000000 00000000
[ 1438.244742@3] 3f10  00000001 00000000 00000001 00000000 00000000 00000000 00000001 00000000
[ 1438.253022@3] 3f30  00000001 00000000 00000000 00000000 cfa27000 0000007d cfa28000 0000007d
[ 1438.261305@3] 
[ 1438.261305@3] X5: 0xffffffc054522480:
[ 1438.266563@3] 2480  00000080 00000000 00000000 00000000 00000009 ffffffc0 00000000 00000000
[ 1438.274843@3] 24a0  00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.283123@3] 24c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.291403@3] 24e0  00000000 00000000 00000000 00000000 00000000 00000000 544f4e00 ffffffc0
[ 1438.299683@3] 2500  47f909e0 ffffffc0 47f909e0 ffffffc0 00000000 00000000 00000005 00000000
[ 1438.307963@3] 2520  00030001 00000000 cfa4ef60 0000007d 00000000 00000000 00000000 00000000
[ 1438.316243@3] 2540  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.324523@3] 2560  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.332804@3] 
[ 1438.332804@3] X6: 0xffffffc0545223e0:
[ 1438.338065@3] 23e0  00000080 00000000 00000000 00000000 00000000 ffffffc0 00000001 00000000
[ 1438.346344@3] 2400  00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.354625@3] 2420  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.362904@3] 2440  00000000 00000000 00000000 00000000 00000000 00000000 544f4e00 ffffffc0
[ 1438.371184@3] 2460  54522640 ffffffc0 54522460 ffffffc0 00000000 00000000 00000001 00000000
[ 1438.379465@3] 2480  00000080 00000000 00000000 00000000 00000009 ffffffc0 00000000 00000000
[ 1438.387744@3] 24a0  00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.396025@3] 24c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1438.404313@3] 
[ 1438.405947@3] Process u.myapplication (pid: 5679, stack limit = 0xffffffc0478e0058)
[ 1438.413536@3] Stack: (0xffffffc0478e3ed0 to 0xffffffc0478e4000)
[ 1438.419402@3] 3ec0:                                     00000000 00000000 00000007 00000000
[ 1438.427684@3] 3ee0: ca7bd000 0000007d faa96960 0000007f 00000000 00000000 00000040 00000000
[ 1438.435963@3] 3f00: 0000003f 00000000 00000000 00000000 00000001 00000000 00000001 00000000
[ 1438.444243@3] 3f20: 00000000 00000000 00000001 00000000 00000001 00000000 00000000 00000000
[ 1438.452524@3] 3f40: cfa27000 0000007d cfa28000 0000007d 00000000 00000000 f9376b5a 00000000
[ 1438.460804@3] 3f60: 819d3f7d 00000000 cf6d3548 0000007d cfae3210 0000007d cfae4000 0000007d
[ 1438.469084@3] 3f80: faa966a0 0000007f cfae47a0 0000007d cfae47a0 0000007d cfae4300 0000007d
[ 1438.477364@3] 3fa0: cfa23770 0000007d cf6d3470 0000007d faa96960 0000007f faa96520 0000007f
[ 1438.485644@3] 3fc0: cfa4c744 0000007d faa96510 0000007f cfa4ef60 0000007d 60000000 00000000
[ 1438.493924@3] 3fe0: ca7d7000 0000007d ffffffff ffffffff ff06c0ff ff06c0ff ff06c0ff ff06c0ff
[ 1438.502199@3] Call trace:
[ 1438.504791@3] Code: 91084294 320003e8 b9001a88 94000a08 (900004c8) 
[ 1438.512483@2] ---[ end trace 2a572677074d0555 ]---
[ 1438.524784@2] Kernel panic - not syncing: Fatal exception
[ 1438.524820@1] CPU1: stopping
[ 1438.527397@1] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D    O 3.14.29-04526-g262a17c #1
[ 1438.535759@1] Call trace:
[ 1438.538356@1] [<ffffffc001088f38>] dump_backtrace+0x0/0x144
[ 1438.543868@1] [<ffffffc001089098>] show_stack+0x1c/0x28
[ 1438.549046@1] [<ffffffc001b2430c>] dump_stack+0x74/0xb8
[ 1438.554219@1] [<ffffffc001090304>] handle_IPI+0x1a4/0x1b4
[ 1438.559566@1] [<ffffffc001081454>] gic_handle_irq+0x80/0x88
[ 1438.565085@1] Exception stack(0xffffffc0567d7d90 to 0xffffffc0567d7eb0)
[ 1438.571640@1] 7d80:                                     751ab058 ffffffc0 00000000 00000000
[ 1438.579921@1] 7da0: 567d7ed0 ffffffc0 0165c8bc ffffffc0 e46269a3 0000014e 508287a3 00000000
[ 1438.588201@1] 7dc0: 68ba2c0b 00374117 000233a1 00000000 0000059d 00000000 29aaaaab 00000000
[ 1438.596481@1] 7de0: 25c17d03 00000002 1941703b 00000000 00000018 00000000 567d7d80 ffffffc0
[ 1438.604761@1] 7e00: 00000400 00000000 000003fe 00000000 00000075 00000000 00000001 00000000
[ 1438.613041@1] 7e20: 00000001 00000000 00000230 00000000 011d1c38 ffffffc0 0201f838 0000007a
[ 1438.621321@1] 7e40: ffffffff 00000000 751ab058 ffffffc0 00000000 00000000 e45cecda 0000014e
[ 1438.629601@1] 7e60: 567d4000 ffffffc0 022de000 ffffffc0 00000000 00000000 0213eb68 ffffffc0
[ 1438.637881@1] 7e80: 00000001 00000000 01080210 ffffffc0 00000000 00000040 567d7ed0 ffffffc0
[ 1438.646160@1] 7ea0: 0165c8b8 ffffffc0 567d7ed0 ffffffc0
[ 1438.651335@1] [<ffffffc001083da0>] el1_irq+0x60/0xd0
[ 1438.656254@1] [<ffffffc00165c9ec>] cpuidle_idle_call+0xb4/0x234
[ 1438.662117@1] [<ffffffc0010854c0>] arch_cpu_idle+0x10/0x28
[ 1438.667552@1] [<ffffffc0010f91ec>] cpu_startup_entry+0x1d8/0x224
[ 1438.673501@1] [<ffffffc00108fd80>] secondary_start_kernel+0x118/0x128
[ 1438.679882@3] CPU3: stopping
[ 1438.682731@3] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D    O 3.14.29-04526-g262a17c #1
[ 1438.691094@3] Call trace:
[ 1438.693685@3] [<ffffffc001088f38>] dump_backtrace+0x0/0x144
[ 1438.699204@3] [<ffffffc001089098>] show_stack+0x1c/0x28
[ 1438.704379@3] [<ffffffc001b2430c>] dump_stack+0x74/0xb8
[ 1438.709554@3] [<ffffffc001090304>] handle_IPI+0x1a4/0x1b4
[ 1438.714901@3] [<ffffffc001081454>] gic_handle_irq+0x80/0x88
[ 1438.720420@3] Exception stack(0xffffffc0567cfd90 to 0xffffffc0567cfeb0)
[ 1438.726976@3] fd80:                                     751c3058 ffffffc0 00000000 00000000
[ 1438.735258@3] fda0: 567cfed0 ffffffc0 0165c8bc ffffffc0 e46269a3 0000014e 508287a3 00000000
[ 1438.743537@3] fdc0: 68ba2c0b 00374117 000233a1 00000000 0000059d 00000000 29aaaaab 00000000
[ 1438.751817@3] fde0: 25c17d03 00000002 1941703b 00000000 00000018 00000000 567cfd80 ffffffc0
[ 1438.760097@3] fe00: 00000400 00000000 000003ff 00000000 b5012c88 0000007d a5b1b05f ffffffff
[ 1438.768378@3] fe20: 3b000000 00194170 00000000 003b9aca 01209dfc ffffffc0 ccb2105c 0000007d
[ 1438.776658@3] fe40: 00000000 00000000 751c3058 ffffffc0 00000000 00000000 e45dcadc 0000014e
[ 1438.784937@3] fe60: 567cc000 ffffffc0 022de000 ffffffc0 00000000 00000000 0213eb68 ffffffc0
[ 1438.793217@3] fe80: 00000003 00000000 01080210 ffffffc0 00000000 00000040 567cfed0 ffffffc0
[ 1438.801496@3] fea0: 0165c8b8 ffffffc0 567cfed0 ffffffc0
[ 1438.806671@3] [<ffffffc001083da0>] el1_irq+0x60/0xd0
[ 1438.811588@3] [<ffffffc00165c9ec>] cpuidle_idle_call+0xb4/0x234
[ 1438.817453@3] [<ffffffc0010854c0>] arch_cpu_idle+0x10/0x28
[ 1438.822886@3] [<ffffffc0010f91ec>] cpu_startup_entry+0x1d8/0x224
[ 1438.828838@3] [<ffffffc00108fd80>] secondary_start_kernel+0x118/0x128
[ 1438.835219@0] CPU0: stopping
[ 1438.838067@0] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G      D    O 3.14.29-04526-g262a17c #1
[ 1438.846430@0] Call trace:
[ 1438.849021@0] [<ffffffc001088f38>] dump_backtrace+0x0/0x144
[ 1438.854540@0] [<ffffffc001089098>] show_stack+0x1c/0x28
[ 1438.859715@0] [<ffffffc001b2430c>] dump_stack+0x74/0xb8
[ 1438.864890@0] [<ffffffc001090304>] handle_IPI+0x1a4/0x1b4
[ 1438.870237@0] [<ffffffc001081454>] gic_handle_irq+0x80/0x88
[ 1438.875756@0] Exception stack(0xffffffc0020a3d40 to 0xffffffc0020a3e60)
[ 1438.882314@0] 3d40: 7519f058 ffffffc0 00000000 00000000 020a3e80 ffffffc0 0165c8bc ffffffc0
[ 1438.890594@0] 3d60: e46269a3 0000014e 508287a3 00000000 68ba2c0b 00374117 000233a1 00000000
[ 1438.898874@0] 3d80: 0000059d 00000000 29aaaaab 00000000 25c17d03 00000002 1941703b 00000000
[ 1438.907154@0] 3da0: 00000018 00000000 020a3d30 ffffffc0 00000400 00000000 000003ff 00000000
[ 1438.915434@0] 3dc0: 00000018 00000000 00000000 00000000 00000000 00000000 96ba1f51 00373ae0
[ 1438.923714@0] 3de0: 0111541c ffffffc0 0201bcd0 0000007a ffffffff 00000000 7519f058 ffffffc0
[ 1438.931994@0] 3e00: 00000000 00000000 e45c8f6e 0000014e 020a0000 ffffffc0 022de000 ffffffc0
[ 1438.940274@0] 3e20: 00000000 00000000 0213eb68 ffffffc0 00000000 00000000 01080468 ffffffc0
[ 1438.948554@0] 3e40: 00000000 00000040 020a3e80 ffffffc0 0165c8b8 ffffffc0 020a3e80 ffffffc0
[ 1438.956832@0] [<ffffffc001083da0>] el1_irq+0x60/0xd0
[ 1438.961749@0] [<ffffffc00165c9ec>] cpuidle_idle_call+0xb4/0x234
[ 1438.967614@0] [<ffffffc0010854c0>] arch_cpu_idle+0x10/0x28
[ 1438.973048@0] [<ffffffc0010f91ec>] cpu_startup_entry+0x1d8/0x224
[ 1438.978999@0] [<ffffffc001b1ddf4>] rest_init+0x84/0x90
[ 1438.984090@0] [<ffffffc001f577c0>] start_kernel+0x33c/0x354

Another way of duplicating this issue is:

  • Using the lldb-server pushed on the VIM by Android SDK:
# /data/data/com.example.user.myapplication/lldb/bin/lldb-server g *:8625 /system/bin/getprop
  • On Ubuntu 16.04 LTS:
$ lldb
(lldb) platform select remote-android
(lldb) gdb-remote 192.168.1.213:8625
(lldb) si

This results in the following kernel panic:

[  324.828655@0] Bad mode in Synchronous Abort handler detected, code 0x8600000f
[  324.830158@0] CPU: 0 PID: 8492 Comm: lldb-server Tainted: G           O 3.14.29-04526-g262a17c #1
[  324.838947@0] task: ffffffc047542000 ti: ffffffc05674c000 task.ti: ffffffc05674c000
[  324.846539@0] PC is at 0x802ac0
[  324.849638@0] LR is at 0x802ac0
[  324.852743@0] pc : [<0000000000802ac0>] lr : [<0000000000802ac0>] pstate: 800003c5
[  324.860254@0] sp : ffffffc05674fed0
[  324.863696@0] x29: 0000007fe1616730 x28: 00000070b961cfc0
[  324.869129@0] x27: 0000007fe16167c8 x26: 00000070b96020d0
[  324.874563@0] x25: 00000000cb000022 x24: 0000000000000032
[  324.879996@0] x23: 0000000000000000 x22: 0000000000813710
[  324.885430@0] x21: ffffffffffffffff x20: 0000000000ad9f40
[  324.890864@0] x19: 0000000000ad9c88 x18: 0000000000000000
[  324.896298@0] x17: 0000000000000001 x16: 0000000000144658
[  324.901732@0] x15: 0000000000144650 x14: 00000070b9604000
[  324.907165@0] x13: 0000000000000051 x12: 0000000000000001
[  324.912599@0] x11: 0000000000000001 x10: 0000007fe16167b0
[  324.918033@0] x9 : 00000000ffffffff x8 : 0000000000000083
[  324.923466@0] x7 : 00000000ffffffd8 x6 : 00000000ffffff80
[  324.928900@0] x5 : 0000000000000018 x4 : ffffffc0020b5100
[  324.934334@0] x3 : 0000000000000001 x2 : ffffffc05674fed0
[  324.939767@0] x1 : 00000000000003c0 x0 : 0000000000000001
[  324.945205@0]
[  324.945205@0] SP: 0xffffffc05674fe50:
[  324.950463@0] fe50  00ad9f40 00000000 ffffffff ffffffff 00813710 00000000 00000000 00000000
[  324.958744@0] fe70  00000032 00000000 cb000022 00000000 b96020d0 00000070 e16167c8 0000007f
[  324.967023@0] fe90  b961cfc0 00000070 e1616730 0000007f 00802ac0 00000000 5674fed0 ffffffc0
[  324.975304@0] feb0  00802ac0 00000000 800003c5 00000000 00ad9c88 00000000 00ad9f40 00000000
[  324.983583@0] fed0  00000000 00000000 0000212c 00000000 00000013 00000000 00ad9c88 00000000
[  324.991863@0] fef0  00abe660 00000000 e1616770 0000007f ffffff80 00000000 ffffffd8 00000000
[  325.000142@0] ff10  00000083 00000000 ffffffff 00000000 e16167b0 0000007f 00000001 00000000
[  325.008423@0] ff30  00000001 00000000 00000051 00000000 b9604000 00000070 00144650 00000000
[  325.016705@0]
[  325.016705@0] X2: 0xffffffc05674fe50:
[  325.021964@0] fe50  00ad9f40 00000000 ffffffff ffffffff 00813710 00000000 00000000 00000000
[  325.030244@0] fe70  00000032 00000000 cb000022 00000000 b96020d0 00000070 e16167c8 0000007f
[  325.038524@0] fe90  b961cfc0 00000070 e1616730 0000007f 00802ac0 00000000 5674fed0 ffffffc0
[  325.046804@0] feb0  00802ac0 00000000 800003c5 00000000 00ad9c88 00000000 00ad9f40 00000000
[  325.055084@0] fed0  00000000 00000000 0000212c 00000000 00000013 00000000 00ad9c88 00000000
[  325.063363@0] fef0  00abe660 00000000 e1616770 0000007f ffffff80 00000000 ffffffd8 00000000
[  325.071643@0] ff10  00000083 00000000 ffffffff 00000000 e16167b0 0000007f 00000001 00000000
[  325.079923@0] ff30  00000001 00000000 00000051 00000000 b9604000 00000070 00144650 00000000
[  325.088204@0]
[  325.088204@0] X4: 0xffffffc0020b5080:
[  325.093464@0] 5080  01dcd628 ffffffc0 010950dc ffffffc0 00000007 00000000 01dcd658 ffffffc0
[  325.101744@0] 50a0  010950dc ffffffc0 00000007 00000000 01dcd668 ffffffc0 010950dc ffffffc0
[  325.110024@0] 50c0  00000007 00000000 01dcd678 ffffffc0 010950dc ffffffc0 00000007 00000000
[  325.118305@0] 50e0  01dcd688 ffffffc0 010950dc ffffffc0 00000007 00000000 01dcd698 ffffffc0
[  325.126584@0] 5100  01092dac ffffffc0 00000005 00030004 01dcca18 ffffffc0 018ee6bc ffffffc0
[  325.134864@0] 5120  00000007 00000000 01ed5c98 ffffffc0 018edaf0 ffffffc0 00000007 00000000
[  325.143144@0] 5140  01ed5c80 ffffffc0 010950dc ffffffc0 00000007 00000000 01dcd0f8 ffffffc0
[  325.151424@0] 5160  010950dc ffffffc0 00000005 00030001 01dcd108 ffffffc0 010950dc ffffffc0
[  325.159711@0]
[  325.161348@0] Internal error: Oops - bad mode: 0 [#1] PREEMPT SMP
[  325.167385@0] Modules linked in: dwc_otg dwc3 dhd(O) cfg80211 ddr_window mali(O)
[  325.174716@0] CPU: 0 PID: 8492 Comm: lldb-server Tainted: G           O 3.14.29-04526-g262a17c #1
[  325.183512@0] task: ffffffc047542000 ti: ffffffc05674c000 task.ti: ffffffc05674c000
[  325.191103@0] PC is at 0x802ac0
[  325.194205@0] LR is at 0x802ac0
[  325.197311@0] pc : [<0000000000802ac0>] lr : [<0000000000802ac0>] pstate: 800003c5
[  325.204814@0] sp : ffffffc05674fed0
[  325.208264@0] x29: 0000007fe1616730 x28: 00000070b961cfc0
[  325.213697@0] x27: 0000007fe16167c8 x26: 00000070b96020d0
[  325.219131@0] x25: 00000000cb000022 x24: 0000000000000032
[  325.224565@0] x23: 0000000000000000 x22: 0000000000813710
[  325.229999@0] x21: ffffffffffffffff x20: 0000000000ad9f40
[  325.235432@0] x19: 0000000000ad9c88 x18: 0000000000000000
[  325.240867@0] x17: 0000000000000001 x16: 0000000000144658
[  325.246300@0] x15: 0000000000144650 x14: 00000070b9604000
[  325.251733@0] x13: 0000000000000051 x12: 0000000000000001
[  325.257167@0] x11: 0000000000000001 x10: 0000007fe16167b0
[  325.262601@0] x9 : 00000000ffffffff x8 : 0000000000000083
[  325.268035@0] x7 : 00000000ffffffd8 x6 : 00000000ffffff80
[  325.273468@0] x5 : 0000000000000018 x4 : ffffffc0020b5100
[  325.278902@0] x3 : 0000000000000001 x2 : ffffffc05674fed0
[  325.284336@0] x1 : 00000000000003c0 x0 : 0000000000000001
[  325.289770@0]
[  325.289770@0] SP: 0xffffffc05674fe50:
[  325.295031@0] fe50  00ad9f40 00000000 ffffffff ffffffff 00813710 00000000 00000000 00000000
[  325.303311@0] fe70  00000032 00000000 cb000022 00000000 b96020d0 00000070 e16167c8 0000007f
[  325.311591@0] fe90  b961cfc0 00000070 e1616730 0000007f 00802ac0 00000000 5674fed0 ffffffc0
[  325.319871@0] feb0  00802ac0 00000000 800003c5 00000000 00ad9c88 00000000 00ad9f40 00000000
[  325.328151@0] fed0  00000000 00000000 0000212c 00000000 00000013 00000000 00ad9c88 00000000
[  325.336431@0] fef0  00abe660 00000000 e1616770 0000007f ffffff80 00000000 ffffffd8 00000000
[  325.344711@0] ff10  00000083 00000000 ffffffff 00000000 e16167b0 0000007f 00000001 00000000
[  325.352991@0] ff30  00000001 00000000 00000051 00000000 b9604000 00000070 00144650 00000000
[  325.361272@0]
[  325.361272@0] X2: 0xffffffc05674fe50:
[  325.366532@0] fe50  00ad9f40 00000000 ffffffff ffffffff 00813710 00000000 00000000 00000000
[  325.374812@0] fe70  00000032 00000000 cb000022 00000000 b96020d0 00000070 e16167c8 0000007f
[  325.383092@0] fe90  b961cfc0 00000070 e1616730 0000007f 00802ac0 00000000 5674fed0 ffffffc0
[  325.391372@0] feb0  00802ac0 00000000 800003c5 00000000 00ad9c88 00000000 00ad9f40 00000000
[  325.399652@0] fed0  00000000 00000000 0000212c 00000000 00000013 00000000 00ad9c88 00000000
[  325.407932@0] fef0  00abe660 00000000 e1616770 0000007f ffffff80 00000000 ffffffd8 00000000
[  325.416212@0] ff10  00000083 00000000 ffffffff 00000000 e16167b0 0000007f 00000001 00000000
[  325.424492@0] ff30  00000001 00000000 00000051 00000000 b9604000 00000070 00144650 00000000
[  325.432773@0]
[  325.432773@0] X4: 0xffffffc0020b5080:
[  325.438034@0] 5080  01dcd628 ffffffc0 010950dc ffffffc0 00000007 00000000 01dcd658 ffffffc0
[  325.446314@0] 50a0  010950dc ffffffc0 00000007 00000000 01dcd668 ffffffc0 010950dc ffffffc0
[  325.454593@0] 50c0  00000007 00000000 01dcd678 ffffffc0 010950dc ffffffc0 00000007 00000000
[  325.462873@0] 50e0  01dcd688 ffffffc0 010950dc ffffffc0 00000007 00000000 01dcd698 ffffffc0
[  325.471153@0] 5100  01092dac ffffffc0 00000005 00030004 01dcca18 ffffffc0 018ee6bc ffffffc0
[  325.479433@0] 5120  00000007 00000000 01ed5c98 ffffffc0 018edaf0 ffffffc0 00000007 00000000
[  325.487713@0] 5140  01ed5c80 ffffffc0 010950dc ffffffc0 00000007 00000000 01dcd0f8 ffffffc0
[  325.495993@0] 5160  010950dc ffffffc0 00000005 00030001 01dcd108 ffffffc0 010950dc ffffffc0
[  325.504280@0]
[  325.505915@0] Process lldb-server (pid: 8492, stack limit = 0xffffffc05674c058)
[  325.513160@0] Stack: (0xffffffc05674fed0 to 0xffffffc056750000)
[  325.519025@0] fec0:                                     00000000 00000000 0000212c 00000000
[  325.527306@0] fee0: 00000013 00000000 00ad9c88 00000000 00abe660 00000000 e1616770 0000007f
[  325.535586@0] ff00: ffffff80 00000000 ffffffd8 00000000 00000083 00000000 ffffffff 00000000
[  325.543866@0] ff20: e16167b0 0000007f 00000001 00000000 00000001 00000000 00000051 00000000
[  325.552146@0] ff40: b9604000 00000070 00144650 00000000 00144658 00000000 00000001 00000000
[  325.560426@0] ff60: 00000000 00000000 00ad9c88 00000000 00ad9f40 00000000 00ada000 00000000
[  325.568706@0] ff80: 00000000 00000000 00000013 00000000 008aba9d 00000000 b961e640 00000070
[  325.576986@0] ffa0: b96020d0 00000070 e16167c8 0000007f b961cfc0 00000070 e1616730 0000007f
[  325.585266@0] ffc0: 00802ac0 00000000 e1616730 0000007f 00813710 00000000 00000000 00000000
[  325.593546@0] ffe0: 0000212c 00000000 ffffffff ffffffff 666a550f a2860b06 3a11e1dd 4c125b3d
[  325.601822@0] Call trace:
[  325.604413@0] Code: 97ff6ed5 f94027a1 2a1703e2 94004312 (3100041f)
[  325.611076@3] tx queueing
[  325.611739@0] ---[ end trace 5da9807e106f7ddc ]---
[  325.622661@0] Kernel panic - not syncing: Fatal exception
[  325.624598@3] CPU3: stopping
[  325.627436@3] CPU: 3 PID: 4473 Comm: ActivityManager Tainted: G      D    O 3.14.29-04526-g262a17c #1
[  325.636574@3] Call trace:
[  325.639170@3] [<ffffffc001088f38>] dump_backtrace+0x0/0x144
[  325.644683@3] [<ffffffc001089098>] show_stack+0x1c/0x28
[  325.649860@3] [<ffffffc001b2430c>] dump_stack+0x74/0xb8
[  325.655033@3] [<ffffffc001090304>] handle_IPI+0x1a4/0x1b4
[  325.660380@3] [<ffffffc001081454>] gic_handle_irq+0x80/0x88
[  325.665899@3] Exception stack(0xffffffc054dfbeb0 to 0xffffffc054dfbfd0)
[  325.672456@3] bea0:                                     00000000 00000000 698b7e00 0000007d
[  325.680736@3] bec0: ffffffff ffffffff 69c20000 0000007d 752332c0 00000000 752332d4 00000000
[  325.689016@3] bee0: 00000000 00000000 00000000 00000000 12c56064 00000000 00000008 00000000
[  325.697296@3] bf00: 6ddb5000 0000007d 00000000 00000000 7467a1e0 00000000 000006f8 00000000
[  325.705576@3] bf20: 625febe0 0000007d 625fe568 0000007d 625fe550 0000007d 69e8f600 0000007d
[  325.713856@3] bf40: 625fe670 0000007d 00000001 00000000 625feb80 0000007d 6a5c6ca8 0000007d
[  325.722136@3] bf60: 00000013 00000000 00000000 00000000 698b7e00 0000007d 625fe648 0000007d
[  325.730416@3] bf80: 146861e3 4d4b41a6 400006a2 00000000 00000060 00000000 69d8aeb8 0000007d
[  325.738696@3] bfa0: 00000000 00000000 5fba6e98 0000007d 00000000 00000000 625fe630 0000007d
[  325.746974@3] bfc0: 69c1ffd8 0000007d 625fe4c0 0000007d
[  325.752148@2] CPU2: stopping
[  325.754997@2] CPU: 2 PID: 4510 Comm: WifiStateMachin Tainted: G      D    O 3.14.29-04526-g262a17c #1
[  325.764136@2] Call trace:
[  325.766727@2] [<ffffffc001088f38>] dump_backtrace+0x0/0x144
[  325.772246@2] [<ffffffc001089098>] show_stack+0x1c/0x28
[  325.777421@2] [<ffffffc001b2430c>] dump_stack+0x74/0xb8
[  325.782596@2] [<ffffffc001090304>] handle_IPI+0x1a4/0x1b4
[  325.787943@2] [<ffffffc001081454>] gic_handle_irq+0x80/0x88
[  325.793463@2] Exception stack(0xffffffc0564f3eb0 to 0xffffffc0564f3fd0)
[  325.800018@2] 3ea0:                                     53476400 0000007d 12c88510 00000000
[  325.808300@2] 3ec0: ffffffff ffffffff 7231947c 00000000 7148c548 00000000 70f8bf48 00000000
[  325.816579@2] 3ee0: 53476400 0000007d 0000000e 00000000 12d20980 00000000 00000000 00000000
[  325.824859@2] 3f00: 6a624010 0000007d 146861e3 4d4b41a6 00000001 00000000 00000000 00000000
[  325.833139@2] 3f20: 00200004 00000000 00000004 00000000 00003000 00000000 00000008 00000000
[  325.841419@2] 3f40: 00000005 00000000 00000001 00000000 51e3c6b0 0000007d 6d4ef404 0000007d
[  325.849700@2] 3f60: 00000001 00000000 53476400 0000007d 12c88510 00000000 00000010 00000000
[  325.857979@2] 3f80: 70f8bf48 00000000 12d0ee98 00000000 12c0f8b0 00000000 0000000e 00000000
[  325.866260@2] 3fa0: 12d20980 00000000 12c3cc00 00000000 0000116b 000003e8 1313c190 00000000
[  325.874538@2] 3fc0: 72319474 00000000 51e3c7a0 0000007d
[  325.879713@1] CPU1: stopping
[  325.882560@1] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D    O 3.14.29-04526-g262a17c #1
[  325.890924@1] Call trace:
[  325.893514@1] [<ffffffc001088f38>] dump_backtrace+0x0/0x144
[  325.899034@1] [<ffffffc001089098>] show_stack+0x1c/0x28
[  325.904209@1] [<ffffffc001b2430c>] dump_stack+0x74/0xb8
[  325.909383@1] [<ffffffc001090304>] handle_IPI+0x1a4/0x1b4
[  325.914730@1] [<ffffffc001081454>] gic_handle_irq+0x80/0x88
[  325.920250@1] Exception stack(0xffffffc0567d7d90 to 0xffffffc0567d7eb0)
[  325.926806@1] 7d80:                                     751ab058 ffffffc0 00000000 00000000
[  325.935087@1] 7da0: 567d7ed0 ffffffc0 0165c8bc ffffffc0 c6abcfa1 0000004b 1b295da1 00000000
[  325.943367@1] 7dc0: c8a50e01 0014b2b5 00024a83 00000000 00000145 00000000 29aaaaab 00000000
[  325.951647@1] 7de0: 25c17d03 00000002 0676a7d9 00000000 00000018 00000000 567d7d80 ffffffc0
[  325.959927@1] 7e00: 00000400 00000000 000003ff 00000000 0000018d 00000000 00000001 00000000
[  325.968207@1] 7e20: 00000001 00000000 00000bf1 00000000 011bf6a0 ffffffc0 00ffffeb 00000000
[  325.976487@1] 7e40: ffffffff 00000000 751ab058 ffffffc0 00000000 00000000 c6a2ff9b 0000004b
[  325.984767@1] 7e60: 567d4000 ffffffc0 022de000 ffffffc0 00000000 00000000 0213eb68 ffffffc0
[  325.993047@1] 7e80: 00000001 00000000 01080210 ffffffc0 00000000 00000040 567d7ed0 ffffffc0
[  326.001326@1] 7ea0: 0165c8b8 ffffffc0 567d7ed0 ffffffc0
[  326.006501@1] [<ffffffc001083da0>] el1_irq+0x60/0xd0
[  326.011419@1] [<ffffffc00165c9ec>] cpuidle_idle_call+0xb4/0x234
[  326.017283@1] [<ffffffc0010854c0>] arch_cpu_idle+0x10/0x28
[  326.022718@1] [<ffffffc0010f91ec>] cpu_startup_entry+0x1d8/0x224
[  326.028667@1] [<ffffffc00108fd80>] secondary_start_kernel+0x118/0x128

Not being able to debug with NDK is really annoying. Can you please fix this?


#2

It works fine with VIM_Oreo_Preview_V171229.7z (probably fixed in Amlogic’s Linux 4.9) and API 26, but this is only a preview.