[myTouch 3G, Magic General] andybz:
Hi, I'm hoping that someone on here has a clue about what's happening with this HTC Magic 32A.

What I'm seeing is ROMS with a custom kernel (e.g. the bc kernel) on an Amon_RA or Cyanogen ROM is that the phone randomly reboots. It could be sitting on the table, doing nothing.. or could be in use.

I've used a couple of older ROMS, which included a HTC kernel, and they were always stable.

If it helps, I managed to grab a couple of /proc/last_kmsg's after reboots, but I don't really know what's causing the problem.

[ 358.834381] PM: Syncing filesystems ... done.
[ 358.840209] Freezing user space processes ... (elapsed 0.01 seconds) done.
[ 358.858886] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
[ 358.864990] wakeup wake lock: tiwlan_irq_wake
[ 358.871337] Restarting tasks ... done.
[ 358.877929] suspend: exit suspend, ret = 0 (2009-12-10 03:02:28.507171631 UTC)
[ 358.882080] PM: Syncing filesystems ... done.
[ 358.886291] Freezing user space processes ... (elapsed 0.01 seconds) done.
[ 358.901367] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
[ 358.910675] wakeup wake lock: tiwlan_irq_wake
[ 358.914611] Restarting tasks ... <1>Unable to handle kernel NULL pointer dereference at virtual address 0000001c
[ 358.920684] pgd = cb9b0000
[ 358.920928] [0000001c] *pgd=24b9a031, *pte=00000000, *ppte=00000000
[ 358.922058] Internal error: Oops: 17 [#1] PREEMPT
[ 358.922302] Modules linked in: wlan
[ 358.923004] CPU: 0 Not tainted (2.6.29.6-cm42 #2)
[ 358.923492] PC is at rb_erase+0xdc/0x360
[ 358.923767] LR is at __dequeue_entity+0x38/0x3c
[ 358.924194] pc : [<c0189dd8>] lr : [<c0049bd4>] psr: 20000093
[ 358.924224] sp : c5031d20 ip : c5031d40 fp : c5031d3c
[ 358.924896] r10: 00000000 r9 : c02edb50 r8 : c50f052c
[ 358.925140] r7 : 00000001 r6 : cb9a86d0 r5 : cb9a86f0 r4 : 00040cf1
[ 358.925598] r3 : 00000000 r2 : 0000001c r1 : cb9a86f0 r0 : c03ee198
[ 358.925842] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
[ 358.926269] Control: 00c5387d Table: 24bb0008 DAC: 00000015
[ 358.926513]
[ 358.926513] PC: 0xc0189d58:
[ 358.927185] 9d58 15821000 e5901000 e1540000 e5831000 e5901000 05842004 15842008 e5907004
[ 358.929504] 9d78 e5906008 01a04003 e3d11003 e5837004 e5836008 05853000 0a000003 e5916008
[ 358.931976] 9d98 e1560000 05813008 15813004 e9900042 e5960000 e3510000 e2000003 e1830000
[ 358.934478] 9db8 e5860000 15910000 12000003 11833000 15813000 ea00000e e3520000 e5904000
[ 358.936950] 9dd8 15923000 e204c001 12033003 e3c44003 11833004 15823000 e3540000 05852000
[ 358.939239] 9df8 0a000003 e5943008 e1530000 05842008 15842004 e35c0001 189da8f0 ea000082
[ 358.941711] 9e18 e5943008 e1530002 1a00003b e5943004 e5932000 e3120001 1a000008 e3822001
[ 358.944183] 9e38 e5832000 e5943000 e1a00004 e3c33001 e5843000 e1a01005 ebffff21 e5943004
[ 358.946441]
[ 358.946441] LR: 0xc0049b54:
[ 358.947113] 9b54 13e00015 03a00000 e89da830 c02edb50 e1a0c00d e92dd800 e24cb004 e5903318
[ 358.949584] 9b74 e2611014 e59331c0 e1510003 93a00001 989da800 e3a00017 eb004647 e2500000
[ 358.951904] 9b94 13a00001 e89da800 e1a0c00d e92dd830 e24cb004 e5903024 e2815008 e1530005
[ 358.954376] 9bb4 e1a04000 1a000002 e1a00005 eb05013b e5840024 e1a00005 e2841020 eb050049
[ 358.956848] 9bd4 e89da830 e1a0c00d e92dd8f0 e24cb004 e591301c e1a04001 e3530000 e1a05000
[ 358.959075] 9bf4 0a000029 e5902044 e3a03ffe e0822003 e1c165d0 e1c220d0 e591105c e5940058
[ 358.961547] 9c14 e0522006 e0c33007 e1510003 e1a0c003 8a000002 1a000003 e1500002 9a000001
[ 358.964080] 9c34 e1a02000 e1a0c001 e1c406d0 e5842058 e3a02001 e0900002 e3a03000 e0a11003
[ 358.966369]
[ 358.966369] SP: 0xc5031ca0:
[ 358.966827] 1ca0 c006e248 c006e1d4 c50f02c0 c03ee160 cea01000 914f1a84 ffffffff c5031d0c
[ 358.969329] 1cc0 cb9a86d0 00000001 c5031d3c c5031cd8 c00259ac c0025200 c03ee198 cb9a86f0
[ 358.971588] 1ce0 0000001c 00000000 00040cf1 cb9a86f0 cb9a86d0 00000001 c50f052c c02edb50
[ 358.974060] 1d00 00000000 c5031d3c c5031d40 c5031d20 c0049bd4 c0189dd8 20000093 ffffffff
[ 358.976531] 1d20 cb9a86d0 c03ee198 cb9a86d0 00000001 c5031d5c c5031d40 c0049bd4 c0189d08
[ 358.978820] 1d40 c03ee198 cb9a86d0 00000000 000003f8 c5031d7c c5031d60 c0049dd8 c0049be4
[ 358.981079] 1d60 c50f02c0 c03ee160 c5030000 000003f8 c5031dc4 c5031d80 c02e92bc c0049d54
[ 358.983581] 1d80 002ec000 00000000 c5031dc4 c50f052c c5031e40 00000000 c5031e60 00000000
[ 358.986083]
[ 358.986083] IP: 0xc5031cc0:
[ 358.986541] 1cc0 cb9a86d0 00000001 c5031d3c c5031cd8 c00259ac c0025200 c03ee198 cb9a86f0
[ 358.989044] 1ce0 0000001c 00000000 00040cf1 cb9a86f0 cb9a86d0 00000001 c50f052c c02edb50
[ 358.991333] 1d00 00000000 c5031d3c c5031d40 c5031d20 c0049bd4 c0189dd8 20000093 ffffffff
[ 358.993591] 1d20 cb9a86d0 c03ee198 cb9a86d0 00000001 c5031d5c c5031d40 c0049bd4 c0189d08
[ 358.996063] 1d40 c03ee198 cb9a86d0 00000000 000003f8 c5031d7c c5031d60 c0049dd8 c0049be4
[ 358.998565] 1d60 c50f02c0 c03ee160 c5030000 000003f8 c5031dc4 c5031d80 c02e92bc c0049d54
[ 359.001068] 1d80 002ec000 00000000 c5031dc4 c50f052c c5031e40 00000000 c5031e60 00000000
[ 359.003326] 1da0 c5031e4c c5030000 00000000 c5031e60 c041d7a0 002ec86c c5031ebc c5031dc8
[ 359.005828]
[ 359.005828] FP: 0xc5031cbc:
[ 359.006286] 1cbc c5031d0c cb9a86d0 00000001 c5031d3c c5031cd8 c00259ac c0025200 c03ee198
[ 359.008758] 1cdc cb9a86f0 0000001c 00000000 00040cf1 cb9a86f0 cb9a86d0 00000001 c50f052c
[ 359.011230] 1cfc c02edb50 00000000 c5031d3c c5031d40 c5031d20 c0049bd4 c0189dd8 20000093
[ 359.013732] 1d1c ffffffff cb9a86d0 c03ee198 cb9a86d0 00000001 c5031d5c c5031d40 c0049bd4
[ 359.015991] 1d3c c0189d08 c03ee198 cb9a86d0 00000000 000003f8 c5031d7c c5031d60 c0049dd8
[ 359.018493] 1d5c c0049be4 c50f02c0 c03ee160 c5030000 000003f8 c5031dc4 c5031d80 c02e92bc
[ 359.020965] 1d7c c0049d54 002ec000 00000000 c5031dc4 c50f052c c5031e40 00000000 c5031e60
[ 359.023254] 1d9c 00000000 c5031e4c c5030000 00000000 c5031e60 c041d7a0 002ec86c c5031ebc
[ 359.025726]
[ 359.025726] R0: 0xc03ee118:
[ 359.026397] e118 c03c7a58 c03c7a64 c03c7a70 c03c7a7c c03c7a88 c03c7a94 00003a98 e0131b08
[ 359.028686] e138 00000000 00000000 00000000 00000000 00000000 00000000 00000000 cc44c000
[ 359.031188] e158 cc46ebc0 00000000 0000008d 000030c4 00003d4a 00006848 00006322 00006709
[ 359.033691] e178 00000000 00000000 00000000 00040cf1 00000000 00004015 00af3216 00000000
[ 359.035949] e198 00040cf1 00000000 0000001c 00000000 784ca882 0000001b 8ebd0837 0000002e
[ 359.038421] e1b8 cb79efd8 cb9a86d8 c53e2744 cc582c64 00000000 00000000 00000000 cc582c50
[ 359.040924] e1d8 0000080a c03ee160 c03ee538 cba19188 c03eea58 00000000 00000000 00000000
[ 359.043365] e1f8 00000000 00000010 c03ee200 c03ee200 c03ee208 c03ee208 c03ee210 c03ee210
[ 359.045654]
[ 359.045654] R1: 0xcb9a8670:
[ 359.046325] 8670 00000002 ffffffff 00000000 00000001 ffffffff 00000000 00000000 00000000
[ 359.048583] 8690 00000000 00000000 00000000 00000000 00000000 cb9f0000 00000004 00400140
[ 359.051086] 86b0 00000000 ffffffff 00000078 00000078 00000078 00000000 c02edb50 00000000
[ 359.053558] 86d0 00000400 00400000 c6e0f2b9 c6e39298 00000000 cb806544 c6e392a4 00000001
[ 359.056030] 86f0 8f83f628 00040cf0 a1018b11 00000000 8e2471b7 0000002e a1018b11 00000000
[ 359.058319] 8710 00000000 00000000 00003629 00000000 00000000 00000000 074a5ed5 00000000
[ 359.060821] 8730 00004006 00000000 c2fbde43 00000001 00000000 00000000 eab7f810 00000025
[ 359.063293] 8750 e923f5af 00000047 00000000 00000000 1c7b530e 00000000 009933db 00000000
[ 359.065765]
[ 359.065795] R5: 0xcb9a8670:
[ 359.066253] 8670 00000002 ffffffff 00000000 00000001 ffffffff 00000000 00000000 00000000
[ 359.068695] 8690 00000000 00000000 00000000 00000000 00000000 cb9f0000 00000004 00400140
[ 359.070953] 86b0 00000000 ffffffff 00000078 00000078 00000078 00000000 c02edb50 00000000
[ 359.073455] 86d0 00000400 00400000 c6e0f2b9 c6e39298 00000000 cb806544 c6e392a4 00000001
[ 359.075958] 86f0 8f83f628 00040cf0 a1018b11 00000000 8e2471b7 0000002e a1018b11 00000000
[ 359.078430] 8710 00000000 00000000 00003629 00000000 00000000 00000000 074a5ed5 00000000
[ 359.080718] 8730 00004006 00000000 c2fbde43 00000001 00000000 00000000 eab7f810 00000025
[ 359.083007] 8750 e923f5af 00000047 00000000 00000000 1c7b530e 00000000 009933db 00000000
[ 359.085510]
[ 359.085510] R6: 0xcb9a8650:
[ 359.085968] 8650 00000000 00000000 00000000 00000000 cb9a2640 c6e06680 000006a0 cb9a86a0
[ 359.088439] 8670 00000002 ffffffff 00000000 00000001 ffffffff 00000000 00000000 00000000
[ 359.090942] 8690 00000000 00000000 00000000 00000000 00000000 cb9f0000 00000004 00400140
[ 359.093231] 86b0 00000000 ffffffff 00000078 00000078 00000078 00000000 c02edb50 00000000
[ 359.095489] 86d0 00000400 00400000 c6e0f2b9 c6e39298 00000000 cb806544 c6e392a4 00000001
[ 359.097961] 86f0 8f83f628 00040cf0 a1018b11 00000000 8e2471b7 0000002e a1018b11 00000000
[ 359.100219] 8710 00000000 00000000 00003629 00000000 00000000 00000000 074a5ed5 00000000
[ 359.102722] 8730 00004006 00000000 c2fbde43 00000001 00000000 00000000 eab7f810 00000025
[ 359.105194]
[ 359.105194] R8: 0xc50f04ac:
[ 359.105651] 04ac cbd222a0 cbd222a0 c50f04b4 c50f04b4 c535e49c c535f01c cb9a3200 c50f04c8
[ 359.107910] 04cc c50f04c8 c50f04d0 c50f04d0 00000000 c6d5ede8 c6d5ede0 cb729144 cb9a88c4
[ 359.110412] 04ec cc5e99e0 cb987410 cb9a88d0 c03ca990 cb9a343c c6d70dfc 00000000 00000000
[ 359.112640] 050c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 359.114685] 052c 00000157 00000007 00000033 2c419d66 00000033 2c419d66 00000002 00000000
[ 359.117126] 054c 00000000 00000000 00000000 00000000 00000000 c50f0560 c50f0560 c50f0568
[ 359.119598] 056c c50f0568 c50f0570 c50f0570 cbceb1a0 cbceb1a0 00000001 c50f0584 c50f0584
[ 359.121887] 058c 206b7453 20707041 76726553 00656369 00000000 00000000 00000000 00000000
[ 359.124145]
[ 359.124145] R9: 0xc02edad0:
[ 359.124816] dad0 0004624c 00057ff5 0006dd25 000899bc 000abe5d 000d5d21 0010c73e 0014ff97
[ 359.127136] daf0 001a3434 0020ea87 00295252 003351fe 00400000 004fec05 00640e12 007c97d9
[ 359.129608] db10 009aee73 00c3a13e 00f0f0f1 0130d190 017d05f4 01de5d6e 0253c825 02f14990
[ 359.132080] db30 03a83a84 04924924 05b05b05 071c71c7 08d3dcb0 0b21642c 0e38e38e 11111111
[ 359.134368] db50 c02ed8c8 c004b210 c004af90 c004ac44 c004aa18 c0049d48 c004a950 c0049d18
[ 359.136657] db70 c004a88c c004b24c 00000000 c0048720 c00486c0 c004a85c c02edb50 c004f868
[ 359.139160] db90 c004c630 c0048768 c00487c4 c0049960 c004c60c c00488a4 c004c508 00000000
[ 359.141632] dbb0 00000000 c0048804 c004884c 00000000 54445352 00585a74 00000000 00000000
[ 359.143920] Process Stk App Service (pid: 292, stack limit = 0xc5030260)
[ 359.144378] Stack: (0xc5031d20 to 0xc5032000)
[ 359.144622] 1d20: cb9a86d0 c03ee198 cb9a86d0 00000001 c5031d5c c5031d40 c0049bd4 c0189d08
[ 359.147094] 1d40: c03ee198 cb9a86d0 00000000 000003f8 c5031d7c c5031d60 c0049dd8 c0049be4
[ 359.149353] 1d60: c50f02c0 c03ee160 c5030000 000003f8 c5031dc4 c5031d80 c02e92bc c0049d54
[ 359.151824] 1d80: 002ec000 00000000 c5031dc4 c50f052c c5031e40 00000000 c5031e60 00000000
[ 359.154113] 1da0: c5031e4c c5030000 00000000 c5031e60 c041d7a0 002ec86c c5031ebc c5031dc8
[ 359.156616] 1dc0: c007596c c02e9138 c004ad40 c004a654 c50f02f0 c5031e54 ffffffff 00000001
[ 359.159088] 1de0: c03ee198 cb9a86d8 c2a452ea 00000001 c5031e14 c5031e00 c5030000 c50f02c0
[ 359.161560] 1e00: 00000015 000003f8 c50f052c cb9a86a0 c5031e3c c5031e20 c006e1fc c006dbbc
[ 359.163848] 1e20: 00000000 000003f8 cb9f001c c50f02c0 c5031e54 c5031e40 c006e248 c006e1d4
[ 359.166107] 1e40: 00000064 c041d7a0 c041d7a0 c041d7a8 c041d7a8 c5031e84 c5031e84 c041d7a0
[ 359.168609] 1e60: 002ec000 cb614820 0000086e 00000000 c50f02c0 ffffffff 00000000 c50f02c0
[ 359.171112] 1e80: c004bd80 c5031e54 c5031e54 ffffffff c5031ebc 00000000 002ec86c 002ec868
[ 359.173400] 1ea0: 000000f0 c0025f24 ffffffff 00000001 c5031f44 c5031ec0 c00771ac c007570c
[ 359.175872] 1ec0: ffffffff 00000000 c5031f4c c50f05e0 c023190c 45a4fd60 c0186201 c0025f24
[ 359.178344] 1ee0: c5030000 42638f08 c5031f14 c5031ef8 c00c0998 c0231918 45a4fd60 cb7eaaa0
[ 359.180633] 1f00: c0186201 00000014 c5031f7c c5031f18 c00c1004 c00c0970 ffffffff 00000000
[ 359.183105] 1f20: 00000000 00000000 000000f0 c0025f24 c5030000 002ec86c c5031fa4 c5031f48
[ 359.185607] 1f40: c0077c80 c0077110 002ec868 00000000 ffffffff c0057744 cb7eaaa0 ffffffff
[ 359.188049] 1f60: c0186201 00000014 c0025f24 c5030000 c5031fa4 002ec868 002ec86c 002ec868
[ 359.190368] 1f80: 002ec86c 00000000 000000f0 c0025f24 c5030000 42638ed4 00000000 c5031fa8
[ 359.192840] 1fa0: c0025da0 c0077b54 002ec868 002ec86c 002ec86c 00000000 ffffffff 00000000
[ 359.195343] 1fc0: 002ec868 002ec86c 00000000 000000f0 ad00f380 002ebf20 42638ed4 002ebf20
[ 359.197875] 1fe0: ad080248 45a4fd08 afe0f5d4 afe0dc44 60000010 002ec86c 00000000 00000000
[ 359.200164] Backtrace:
[ 359.200836] [<c0189cfc>] (rb_erase+0x0/0x360) from [<c0049bd4>] (__dequeue_entity+0x38/0x3c)
[ 359.201812] r7:00000001 r6:cb9a86d0 r5:c03ee198 r4:cb9a86d0
[ 359.203155] [<c0049bd8>] (set_next_entity+0x0/0x140) from [<c0049dd8>] (pick_next_task_fair+0x90/0xa4)
[ 359.204315] r7:000003f8 r6:00000000 r5:cb9a86d0 r4:c03ee198
[ 359.205474] [<c0049d48>] (pick_next_task_fair+0x0/0xa4) from [<c02e92bc>] (schedule+0x190/0x444)
[ 359.206634] r7:000003f8 r6:c5030000 r5:c03ee160 r4:c50f02c0
[ 359.207763] [<c02e912c>] (schedule+0x0/0x444) from [<c007596c>] (futex_wait+0x26c/0x510)
[ 359.208923] [<c0075700>] (futex_wait+0x0/0x510) from [<c00771ac>] (do_futex+0xa8/0xa44)
[ 359.210083] [<c0077104>] (do_futex+0x0/0xa44) from [<c0077c80>] (sys_futex+0x138/0x14c)
[ 359.211212] [<c0077b48>] (sys_futex+0x0/0x14c) from [<c0025da0>] (ret_fast_syscall+0x0/0x2c)
[ 359.212188] Code: 15813000 ea00000e e3520000 e5904000 (15923000)
[ 359.214141] Kernel panic - not syncing: Fatal exception
[ 359.214508] apanic_writeflashpage: No panic_write available
[ 359.214965] apanic: Flash write failed (0)