Phones reboot with Syncthing 1.30 under LineageOS 16 on HTC m8

I did a clear install of LineageOS 16 on an HTC m8 and Syncthing 1.2.2. Everythings run fine. Yesterday, Google Play Store updates Syncthing to 1.30. After few minutes later my phone reboots by itself. After it came up again and maybe 30 seconds later, the phone did reboot again. This happend until I managed to disable Syncthing. Also the phone got hot.

I have another HTC m8 to install and did also a clear install of LineageOs 16. I also installed Syncthing 1.30 from Play Store. A few seconds after starting Syncthing and granted all necessary rights, Syncthing began to create its key and the phone rebooted by itself.

Maybe with release of version 1.30, there seems to be somethong wrong. Two working and clean installed phones get in boot loop after Syncthing 1.3 was installed. Version 1.2.2 works fine on it.

No app should be able to force a phone to reboot. Sure, syncthing probably does some scanning which uses a lot of cpu which makes the phone hot, but that should not be enough to force the phone to reboot.

Sadly nothing important changed in syncthing for this to happen, best I can suggest is to see if the logs (both phone and syncthing) have any hints.

I am having the same issue on my OnePlus One running custom DirtyUnicorns 12 ROM based on Android Oreo. Opening the Syncthing app reboots the phone to bootlogo. I can confirm that it was working well before the last update. Is it somehow related to this: https://github.com/syncthing/syncthing-android/issues/1001 ? Unfortunately I don’t have access to my phone now. Will post the logs as soon as I get my phone back.

After putting one of the phones into the fridge for an hour, I tried to start Syncthing with deleted data and cache. There seems to be no overheating, cause the phone rebooted after nearly the same time. A resart of Syncthing leads me directly to the log. The syncthing log is empty. The Android log shows: --------- beginning of main 10-02 20:34:30.287 E/libEGL ( 7525): error mmaping cache file: Invalid argument (22) 10-02 20:34:30.309 I/SyncthingService( 7525): shouldRun decision changed to true according to configured run conditions. 10-02 20:34:30.310 I/SyncthingService( 7525): Shutting down background service 10-02 20:34:30.334 W/ConfigXml( 7525): Cannot read ‘/data/user/0/com.nutomic.syncthingandroid/files/config.xml’ 10-02 20:34:30.334 W/ConfigXml( 7525): org.xml.sax.SAXParseException: Unexpected end of document 10-02 20:34:30.334 W/ConfigXml( 7525): at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:125) 10-02 20:34:30.334 W/ConfigXml( 7525): at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:183) 10-02 20:34:30.334 W/ConfigXml( 7525): at com.nutomic.syncthingandroid.util.ConfigXml.readConfig(ConfigXml.java:100) 10-02 20:34:30.334 W/ConfigXml( 7525): at com.nutomic.syncthingandroid.util.ConfigXml.(ConfigXml.java:72) 10-02 20:34:30.334 W/ConfigXml( 7525): at com.nutomic.syncthingandroid.service.SyncthingService$StartupTask.doInBackground(SyncthingService.java:354) 10-02 20:34:30.334 W/ConfigXml( 7525): at com.nutomic.syncthingandroid.service.SyncthingService$StartupTask.doInBackground(SyncthingService.java:339) 10-02 20:34:30.334 W/ConfigXml( 7525): at android.os.AsyncTask$2.call(AsyncTask.java:333) 10-02 20:34:30.334 W/ConfigXml( 7525): at java.util.concurrent.FutureTask.run(FutureTask.java:266) 10-02 20:34:30.334 W/ConfigXml( 7525): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 10-02 20:34:30.334 W/ConfigXml( 7525): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 10-02 20:34:30.334 W/ConfigXml( 7525): at java.lang.Thread.run(Thread.java:764) 10-02 20:34:30.365 I/Adreno-EGL( 7525): <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8974_LA.BF.1.1.3_RB1__release_AU (I741a3d36ca) 10-02 20:34:30.365 I/Adreno-EGL( 7525): OpenGL ES Shader Compiler Version: E031.29.00.00 10-02 20:34:30.365 I/Adreno-EGL( 7525): Build Date: 04/04/16 Mon 10-02 20:34:30.365 I/Adreno-EGL( 7525): Local Branch: mybranch19053788 10-02 20:34:30.365 I/Adreno-EGL( 7525): Remote Branch: quic/LA.BF.1.1.3_rb1.12 10-02 20:34:30.365 I/Adreno-EGL( 7525): Local Patches: NONE 10-02 20:34:30.365 I/Adreno-EGL( 7525): Reconstruct Branch: NOTHING 10-02 20:34:30.373 I/ConfigStore( 7525): android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 10-02 20:34:30.373 I/ConfigStore( 7525): android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0 10-02 20:34:30.373 I/OpenGLRenderer( 7525): Initialized EGL, version 1.4 10-02 20:34:30.380 W/Adreno-EGL( 7525): <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE 10-02 20:34:30.389 W/Adreno-EGL( 7525): <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE 10-02 20:34:30.476 E/libEGL ( 7525): error mmaping cache file: Invalid argument (22) 10-02 20:34:38.842 W/ActivityThread( 7525): handleWindowVisibility: no activity for token android.os.BinderProxy@1c384a1 10-02 20:34:38.926 W/Adreno-EGL( 7525): <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE 10-02 20:34:40.992 W/Adreno-EGL( 7525): <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE

That still shouldn’t reboot the phone.

I am also clueless what causes a reboot here … :-/

Clean install of LineageOS 16, several clean install of Syncthing 1.30 (also with cleared data and cache), also update from running 1.2.2 or clean install of Syncthing 1.3 with imported config; all the same behavior: both phones(!) reboot. No problem with 1.2.2. Was there a change in libraries or version of software components from 1.2.2 to 1.30? I’m clueless.

It’s a great work from the maintainer. I love the tool. It would be a pain not to use it anymore.

Nothing has changed in that area. We are building with new go that could cause this I guess.

that’s the changes. You can try doing a git bisect, to figure out which commit causes it.

1 Like

Quic was there before 1.3

Just to say, I have the same with Zuk Z1 on Lineageos 16.0. I opened an issue on github, but Audrius closed it and pointed me here.

How do you downgrade? An attempt to downgrade with f-droid gives “unknown error”.

Don’t want to reinstall the app, because then I need to configure everything again.

How do I disable the nat checkbox? I start syncthing and the phone reboots, I can’t do anything.

@Catfriend1 Is there a way to disable NAT, without running the synchronization?

I didn’t downgrade. Fortunately one day before, I did a clean install of one of the phones. So I made a backup of the settings, installed the phone, installed Synchting 1.2.2 and all went well. The next day, I wanted to hand over the new installed phone and I saw an information about an update to syncthing 1.30. After the update, well, you know the story.

So I uninstalled 1.30, installed 1.2.2.4 from F-Droid and was able to restore my backup. If you rooted your phone, you may try to get your config from /data/data/com.nutomic.syncthingandroid/

With root access to your phone you can edit /data/data/com.nutomic.syncthingandroid/files/config.xml. Under you will find true. Replace true with false, save the config.xml and restart syncthing or better reboot your phone.

I think it is caused by a kernel bug:

$ adb logcat -b all
[...]
10-09 15:06:57.981  3773  3773 V ApiRequest: Performing request to https://127.0.0.1:8384
10-09 15:06:58.032   239   264 D Sensors : LightSensor readEvents x = 10.000000, raw = 10
10-09 15:06:58.061  3773  6539 I SyncthingNativeCode: [JXF74] INFO: quic://0.0.0.0:22000 detected NAT type: Full cone NAT
10-09 15:06:58.064  3773  6539 I SyncthingNativeCode: [JXF74] INFO: quic://0.0.0.0:22000 resolved external address quic://188.228.105.216:22311 (via stun.syncthing.net:3478)
10-09 15:06:58.128  3773  3773 V ApiRequest: Performing request to https://127.0.0.1:8384
10-09 15:06:58.285   239   264 D Sensors : LightSensor readEvents x = 8.000000, raw = 8
10-09 15:06:58.295  3773  3773 V ApiRequest: Performing request to https://127.0.0.1:8384
10-09 15:06:58.420  3773  3773 V ApiRequest: Performing request to https://127.0.0.1:8384
10-09 15:06:58.461  3773  3784 I yncthingandroi: Background concurrent copying GC freed 32047(1819KB) AllocSpace objects, 10(264KB) LOS objects, 49% free, 4MB/8MB, paused 183us total 396.429ms
10-09 15:06:58.539   239   264 D Sensors : LightSensor readEvents x = 8.000000, raw = 8
10-09 15:06:58.609  3773  6539 I SyncthingNativeCode: [JXF74] INFO: GUI and API listening on 127.0.0.1:8384
10-09 15:06:58.611  3773  6539 I SyncthingNativeCode: [JXF74] INFO: Access the GUI via the following URL: https://127.0.0.1:8384/
10-09 15:06:58.623  3773  3773 V ApiRequest: Performing request to https://127.0.0.1:8384
10-09 15:06:58.640  3773  6539 I SyncthingNativeCode: [JXF74] INFO: My name is "GT-I9195"
10-09 15:06:58.644  3773  6539 I SyncthingNativeCode: [JXF74] INFO: Device ZPRDERQ-xxxx is "foo" at [dynamic]
10-09 15:06:58.128     0     0 F         : Unable to handle kernel NULL pointer dereference at virtual address 000001f8
10-09 15:06:58.142     0     0 F         : pgd = d4afc000
10-09 15:06:58.149     0     0 F         : [000001f8] *pgd=00000000
10-09 15:06:58.784   239   264 D Sensors : LightSensor readEvents x = 8.000000, raw = 8
10-09 15:06:59.752   260   286 W SurfaceFlinger: Timed out waiting for hw vsync; faking it
10-09 15:06:59.854   260   285 W SurfaceFlinger: Timed out waiting for hw vsync; faking it
10-09 15:06:59.854   239   264 D Sensors : LightSensor readEvents x = 8.000000, raw = 8
10-09 15:06:59.854   239   264 D Sensors : LightSensor readEvents x = 8.000000, raw = 8
10-09 15:06:59.854   239   264 D Sensors : LightSensor readEvents x = 10.000000, raw = 10
10-09 15:06:59.854   239   264 D Sensors : LightSensor readEvents x = 8.000000, raw = 8

What kernel version are you on? I’m on 3.4.113-gbf6ef2d36c86-23771-g229e51d88b88 on my Samsung S4 mini.

1 Like

I am on 3.4.113-lineageos-g42d61bd

I managed to get a bit more information

$ while true; do dmesg -c; done
[  700.276911] Unable to handle kernel NULL pointer dereference at virtual address 000001f8
[  700.288783] pgd = c81e8000
[  700.297604] [000001f8] *pgd=00000000
[  700.302975] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[  700.307431] Modules linked in: adsprpc wlan(C)
[  700.311765] CPU: 0    Tainted: G        WC    (3.4.113-gbf6ef2d36c86-23805-g4526a855e63a #1)
[  700.320250] PC is at rt_fill_info.constprop.6+0x22c/0x388
[  700.325560] LR is at rtnetlink_put_metrics+0xb0/0xd0
[  700.330566] pc : [<c0766078>]    lr : [<c071b27c>]    psr: 60000013
[  700.330596] sp : c65edba8  ip : d93710ec  fp : 00002785
[  700.342041] r10: 00000000  r9 : 00000000  r8 : c65edbbc
[  700.347169] r7 : 00000000  r6 : d93710a4  r5 : cf4f8780  r4 : cea7fd80
[  700.353761] r3 : 00000000  r2 : 00000000  r1 : d93710e8  r0 : 00000000
[  700.360201] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  700.367373] Control: 10c5787d  Table: 8ebe806a  DAC: 00000015
[  700.373050] 
[  700.373050] PC: 0xc0765ff8:
[  700.377292] 5ff8  ebef327a e3500000 ba000069 e595307c e5952064 e1520003 0a000007 e58d3014
[  700.385441] 6018  e1a00004 e3a01005 e3a02004 e1a03008 ebef326e e3500000 ba00005d e5951014
[  700.393621] 6038  e1a00004 e3c11001 ebfed461 e3500000 ba000057 e5953078 e3530000 0a000007
[  700.401770] 6058  e58d3014 e1a00004 e3a01010 e3a02004 e1a03008 ebef325d e3500000 ba00004c
[  700.409949] 6078  e59721f8 e3720001 1a000006 e3590000 e1d5a3f4 01a07009 01a0b007 01a09007
[  700.426247] 60b8  e3500000
[  700.428444] mdp4_dsi_video_wait4vsync timeout ret=0 1a00003a eaffffef e5953088 e5933094 e3530000 ca00000a e59f70ec
[  700.439279] 60d8  e08f7007 e5d73000 e3530000 1a000005 e59f00dc e3a0106d e08f0000 ebe49a3e
[  700.447428] 
[  700.447428] LR: 0xc071b1fc:
[  700.451670] b1fc  1a000024 e2488004 e3a07001 e1a04000 e28d9004 e5b83004 e3530000 0a00000e
[  700.459850] b21c  e58d3004 e1a00005 e1a01007 e3a02004 e1a03009 ebf05dec e3500000 e2844001
[  700.467999] b23c  aa000005 e59510ac e1a00005 e0611006 ebffa05d e3e00059 ea00000e e2877001
[  700.476148] b25c  e357000f 1affffea e3540000 1a000005 e59510ac e1a00005 e0611006 ebffa052
[  700.484327] b27c  e1a00004 ea000003 e59530a0 e0663003 e1c630b0 e5950050 e28dd00c e8bd83f0
[  700.492476] b29c  e92d43f0 e24dd024 e1a04001 e1a09002 e59d6044 e3a01000 e3a02020 e1a07000
[  700.500656] b2bc  e1a0000d e1a08003 e1a0500d ebeff53c e59f206c e5943040 e79f2002 e58d3000
[  700.508805] b2dc  e5943048 e5920000 e0630000 ebe5dcfe e59d3048 e3560000 e58d0004 e58d9014
[  700.516953] 
[  700.516953] SP: 0xc65edb28:
[  700.521287] db28  00000000 c0f451c0 c0cb9368 0001d513 00000000 c0c82100 00000004 c0766078
[  700.529375] db48  60000013 ffffffff c65edb94 c65edbbc 00000000 c000d9d8 00000000 d93710e8
[  700.537524] db68  00000000 00000000 cea7fd80 cf4f8780 d93710a4 00000000 c65edbbc 00000000
[  700.545704] db88  00000000 00002785 d93710ec c65edba8 c071b27c c0766078 60000013 ffffffff
[  700.553853] dba8  0000000c 00000000 00000000 c0d7f940 cea7f780 010aa8c0 00000000 08080808
[  700.562002] dbc8  cea7fd80 c828a200 cea7f780 c0d7f940 00000000 00000000 00002785 c0768174
[  700.570181] dbe8  c0955574 c0cefa3d 00000001 c65edbfc 00400000 00000017 00000001 00000000
[  700.578330] dc08  00000000 00000000 00002785 6b0aa8c0 08080808 00000000 00000000 c828a21c
[  700.586479] 
[  700.586479] IP: 0xd937106c:
[  700.590752] 106c  00000001 01f6d877 000000a3 00006d95 00000000 00000000 00000000 00000000
[  700.598901] 108c  00000000 00000000 00000000 00000000 00000000 00000000 0000001c 00000018
[  700.607050] 10ac  5d9de682 00001d74 00002002 010000fe 00000200 000f0008 000000fe 00010008
[  700.615229] 10cc  08080808 00040008 00000017 00070008 6b0aa8c0 00050008 010aa8c0 00080004
[  700.623378] 10ec  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  700.631557] 110c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  700.639706] 112c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  700.647855] 114c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  700.656035] 
[  700.656035] R1: 0xd9371068:
[  700.660277] 1068  00000000 00000001 01f6d877 000000a3 00006d95 00000000 00000000 00000000
[  700.668426] 1088  00000000 00000000 00000000 00000000 00000000 00000000 00000000 0000001c
[  700.676606] 10a8  00000018 5d9de682 00001d74 00002002 010000fe 00000200 000f0008 000000fe
[  700.684754] 10c8  00010008 08080808 00040008 00000017 00070008 6b0aa8c0 00050008 010aa8c0
[  700.692903] 10e8  00080004 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  700.729803] fd00  00000000 00000000 c685cb00 00000000 00000000 00000000 00000000 00000020
[  700.737952] fd20  00000000 00000000 ffffffff ffffffff 00000000 00000000 cfc047c0 00000000
[  700.746131] fd40  cea7fd40 cea7fd40 cea7fd48 cea7fd48 d8950160 00000000 00000000 00000000
[  700.754280] fd60  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  700.762429] fd80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  700.770608] fda0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  700.778757] fdc0  00000000 00000000 cf4f8780 00000000 00000044 00000000 00000000 00000000
[  700.786937] fde0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  700.795086] 
[  700.795086] R5: 0xcf4f8700:
[  700.799328] 8700  00000000 00000000 cf884b80 00000000 00000060 00000020 00000020 00000020
[  700.807507] 8720  00000000 00000000 ffffffff ffffffff 00000000 00000000 c6228e00 00000000
[  700.815656] 8740  cf4f8740 cf4f8740 cf4f8748 cf4f8748 d7b1fbd8 00000000 00000000 00000000
[  700.823805] 8760  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  700.831985] 8780  00000000 c015a8bc 00000000 cffc0000 c0d81180 c0f42fe1 00000000 cf4f8780
[  700.840134] 87a0  c65b6800 00000000 c071589c c076f5c4 00000001 ffff0000 00000000 00000000
[  700.848283] 87c0  00000001 00000000 0001d513 00000000 08080808 00000000 40c45010 00000000
[  700.856462] 87e0  00000001 08080808 6b0aa8c0 00000000 00000017 00000000 00000000 010aa8c0
[  700.864611] 
[  700.864611] R6: 0xd9371024:
[  700.868914] 1024  732e746e 6854006f 75616665 705f746c 3a706f72 ae003073 00006767 00006770
[  700.877033] 1044  00000000 00000000 735f7773 00636e79 00000000 00000000 00000000 00000000
[  700.885182] 1064  00000000 00000000 00000001 01f6d877 000000a3 00006d95 00000000 00000000
[  700.893331] 1084  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  700.946558] db5c  c000d9d8 00000000 d93710e8 00000000 00000000 cea7fd80 cf4f8780 d93710a4
[  700.954707] db7c  00000000 c65edbbc 00000000 00000000 00002785 d93710ec c65edba8 c071b27c
[  700.962887] db9c  c0766078 60000013 ffffffff 0000000c 00000000 00000000 c0d7f940 cea7f780
[  700.971036] dbbc  010aa8c0 00000000 08080808 cea7fd80 c828a200 cea7f780 c0d7f940 00000000
[  700.979185] dbdc  00000000 00002785 c0768174 c0955574 c0cefa3d 00000001 c65edbfc 00400000
[  700.987364] dbfc  00000017 00000001 00000000 00000000 00000000 00002785 6b0aa8c0 08080808
[  700.995513] dc1c  00000000 00000000 c828a21c 00000000 00000000 00000000 00000000 00000000
[  701.003662] Process ip (pid: 7540, stack limit = 0xc65ec2f0)
[  701.009339] Stack: (0xc65edba8 to 0xc65ee000)
[  701.013673] dba0:                   0000000c 00000000 00000000 c0d7f940 cea7f780 010aa8c0
[  701.021883] dbc0: 00000000 08080808 cea7fd80 c828a200 cea7f780 c0d7f940 00000000 00000000
[  701.030031] dbe0: 00002785 c0768174 c0955574 c0cefa3d 00000001 c65edbfc 00400000 00000017
[  701.038211] dc00: 00000001 00000000 00000000 00000000 00002785 6b0aa8c0 08080808 00000000
[  701.046299] dc20: 00000000 c828a21c 00000000 00000000 00000000 00000000 00000000 00000000
[  701.054509] dc40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  701.062688] dc60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  701.070776] dc80: 00000000 00000000 00000000 c828a224 c828a200 cea7f780 00000078 e0465c00
[  701.079017] dca0: 00000002 c65edd70 00000000 c071d06c 00000000 00000000 00000000 00000000
[  701.087166] dcc0: 00000000 00000000 00000000 c828a200 cea7f780 c071cdc0 c65edd04 00000000
[  701.095315] dce0: 00000024 c07367d0 cea7f780 00000024 cea7f780 c071c2ac e0207400 c0736208
[  701.103402] dd00: ceec8c00 7fffffff 00000000 00000000 cea7f780 c65edf74 ceec8c00 c07365fc
[  701.111643] dd20: 00000000 00000000 00000000 d20007c0 d4605900 00000000 00001d74 00002785
[  701.152449] ddc0: ffffffff 00000000 00000000 00000000 00000000 00000000 c6585200 cad05420
[  701.160537] dde0: 00000000 00000000 be93f000 cad05420 c65edd70 c0141204 0000000f 00000028
[  701.168747] de00: 00000000 00000028 0000013f c65edebc c65ec000 c0cb3808 00000000 c65ede5c
[  701.176926] de20: c65edebc c0cb3808 00000000 c65ede5c 00000000 c2d5e000 c65ede9c 00000024
[  701.185075] de40: 00000000 00000000 c65edf74 c06fc164 00000008 c0cb3808 be93f000 be94651c
[  701.193163] de60: 00000000 c031f8dc c65edfb0 be93f000 00000000 c001a7c8 00000200 c001a7c8
[  701.201403] de80: c65ede90 00000000 00000000 c0eab868 00000000 c0eab868 00000000 00000000
[  701.209552] dea0: c65ede88 00000000 ceec8c00 00000000 00000000 00000000 00000000 00000010
[  701.217701] dec0: 00000000 00000000 be946928 aee62008 0000000c 00000000 0000000c c06fb498
[  701.225820] dee0: c0cb3808 00000817 c0d63c94 00000007 c0d63c24 be93f000 c65edfb0 aee545ba
[  701.234030] df00: be9464f8 c0008480 aee545b6 c000852c 00001d74 00000000 c65edf24 00000000
[  701.242209] df20: c65edf08 00000000 ceec8c00 00000000 c0cf43c0 00000001 c27bd388 ef815a51
[  701.250297] df40: 00000000 c2d5e000 c65edf74 00000000 be93e354 c000dfe4 c65ec000 00200000
[  701.258507] df60: be9464f8 c06fd1fc 00000000 00000000 fffffff7 c65edebc 0000000c c65ede5c
[  701.266656] df80: 00000001 00000000 00000000 00000000 aee62004 aee62004 be9464f8 be93e388
[  701.274835] dfa0: 00000128 c000dfc8 aee62004 be9464f8 00000003 be93e354 00000000 be946388
[  701.282923] dfc0: aee62004 be9464f8 be93e388 00000128 0000041c 5d9de682 aee545ba be9464f8
[  701.291133] dfe0: be93e350 be93e340 aeb5a567 aeadbe6c 600d0010 00000003 00000000 00000000
[  701.299313] [<c0766078>] (rt_fill_info.constprop.6+0x22c/0x388) from [<c0768174>] (inet_rtm_getroute+0x214/0x250)
[  701.309568] [<c0768174>] (inet_rtm_getroute+0x214/0x250) from [<c071d06c>] (rtnetlink_rcv_msg+0x2ac/0x2e8)
[  701.319212] [<c071d06c>] (rtnetlink_rcv_msg+0x2ac/0x2e8) from [<c07367d0>] (netlink_rcv_skb+0x58/0xb4)
1 Like

Setting sysctl kernel.panic_on_oops=0 prevents the device from panicking, but it is definitely some kind of kernel bug.

Full trace:

[  267.441171] Unable to handle kernel NULL pointer dereference at virtual address 000001f8
[  267.497146] pgd = c3180000
[  267.499130] [000001f8] *pgd=00000000
[  267.508805] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[  267.513169] Modules linked in: wlan(C) adsprpc
[  267.517564] CPU: 0    Tainted: G        WC    (3.4.113-gbf6ef2d36c86-23805-g4526a855e63a #1)
[  267.526049] PC is at rt_fill_info.constprop.6+0x22c/0x388
[  267.531451] LR is at rtnetlink_put_metrics+0xb0/0xd0
[  267.536334] pc : [<c0766078>]    lr : [<c071b27c>]    psr: 60000013
[  267.536334] sp : d1dedba8  ip : c35970ec  fp : 00002785
[  267.547779] r10: 00000000  r9 : 00000000  r8 : d1dedbbc
[  267.553059] r7 : 00000000  r6 : c35970a4  r5 : c53f30c0  r4 : cfe6ed80
[  267.559499] r3 : 00000000  r2 : 00000000  r1 : c35970e8  r0 : 00000000
[  267.566061] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  267.573111] Control: 10c5787d  Table: 8338006a  DAC: 00000015
[  267.578940] 
[  267.578940] PC: 0xc0765ff8:
[  267.583122] 5ff8  ebef327a e3500000 ba000069 e595307c e5952064 e1520003 0a000007 e58d3014
[  267.591271] 6018  e1a00004 e3a01005 e3a02004 e1a03008 ebef326e e3500000 ba00005d e5951014
[  267.599420] 6038  e1a00004 e3c11001 ebfed461 e3500000 ba000057 e5953078 e3530000 0a000007
[  267.607599] 6058  e58d3014 e1a00004 e3a01010 e3a02004 e1a03008 ebef325d e3500000 ba00004c
[  267.615748] 6078  e59721f8 e3720001 1a000006 e3590000 e1d5a3f4 01a07009 01a0b007 01a09007
[  267.623897] 6098  1a000009 ea00002a e28d3018 e1a00004 e3a01019 e5232008 e3a02004 ebef324b
[  267.632076] 60b8  e3500000 1a00003a eaffffef e5953088 e5933094 e3530000 ca00000a e59f70ec
[  267.640225] 60d8  e08f7007 e5d73000 e3530000 1a000005 e59f00dc e3a0106d e08f0000 ebe49a3e
[  267.648374] 
[  267.648374] LR: 0xc071b1fc:
[  267.652647] b1fc  1a000024 e2488004 e3a07001 e1a04000 e28d9004 e5b83004 e3530000 0a00000e
[  267.660796] b21c  e58d3004 e1a00005 e1a01007 e3a02004 e1a03009 ebf05dec e3500000 e2844001
[  267.668945] b23c  aa000005 e59510ac e1a00005 e0611006 ebffa05d e3e00059 ea00000e e2877001
[  267.677124] b25c  e357000f 1affffea e3540000 1a000005 e59510ac e1a00005 e0611006 ebffa052
[  267.685273] b27c  e1a00004 ea000003 e59530a0 e0663003 e1c630b0 e5950050 e28dd00c e8bd83f0
[  267.693422] b29c  e92d43f0 e24dd024 e1a04001 e1a09002 e59d6044 e3a01000 e3a02020 e1a07000
[  267.701602] b2bc  e1a0000d e1a08003 e1a0500d ebeff53c e59f206c e5943040 e79f2002 e58d3000
[  267.709751] b2dc  e5943048 e5920000 e0630000 ebe5dcfe e59d3048 e3560000 e58d0004 e58d9014
[  267.717900] 
[  267.717900] SP: 0xd1dedb28:
[  267.722234] db28  e049eba4 c0f451c0 c0cb9368 ffffd9d8 00000000 c0c82100 00000004 c0766078
[  267.730321] db48  60000013 ffffffff d1dedb94 d1dedbbc 00000000 c000d9d8 00000000 c35970e8
[  267.738501] db68  00000000 00000000 cfe6ed80 c53f30c0 c35970a4 00000000 d1dedbbc 00000000
[  267.746650] db88  00000000 00002785 c35970ec d1dedba8 c071b27c c0766078 60000013 ffffffff
[  267.754799] dba8  0000000c 00000000 00000000 c0d7f940 d5eb8840 010aa8c0 00000000 08080808
[  267.762978] dbc8  cfe6ed80 d6da1200 d5eb8840 c0d7f940 00000000 00000000 00002785 c0768174
[  267.771127] dbe8  c0955574 c00f080c c27c0540 d1dedbfc 00400000 00000018 00000001 00000000
[  267.779276] dc08  00000000 00000000 00002785 6b0aa8c0 08080808 00000000 00000000 d6da121c
[  267.787456] 
[  267.787456] IP: 0xc359706c:
[  267.791698] 706c  00000001 437ef21f 0000003e 00000000 00000000 00000000 00000000 00000000
[  267.799847] 708c  00000000 00000000 00000000 00000000 00000000 00000000 0000001c 00000018
[  267.808026] 70ac  5d9de85d 00001923 00002002 010000fe 00000200 000f0008 000000fe 00010008
[  267.816175] 70cc  08080808 00040008 00000018 00070008 6b0aa8c0 00050008 010aa8c0 00080004
[  267.824324] 70ec  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.832504] 710c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.840653] 712c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.848802] 714c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.856981] 
[  267.856981] R1: 0xc3597068:
[  267.861223] 7068  00000000 00000001 437ef21f 0000003e 00000000 00000000 00000000 00000000
[  267.869403] 7088  00000000 00000000 00000000 00000000 00000000 00000000 00000000 0000001c
[  267.877552] 70a8  00000018 5d9de85d 00001923 00002002 010000fe 00000200 000f0008 000000fe
[  267.885701] 70c8  00010008 08080808 00040008 00000018 00070008 6b0aa8c0 00050008 010aa8c0
[  267.893880] 70e8  00080004 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.902029] 7108  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.910178] 7128  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.918357] 7148  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.926506] 
[  267.926506] R4: 0xcfe6ed00:
[  267.930749] ed00  00000000 00000000 d8fbc300 00000000 00000000 00000000 00000000 00000000
[  267.938928] ed20  00000000 00000000 00000000 00000000 00000000 00000000 d599cd80 d599c3c0
[  267.947077] ed40  cfe6ed40 cfe6ed40 cfe6ed48 cfe6ed48 e00427e0 00000000 00000000 00000000
[  267.955226] ed60  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.963406] ed80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.971554] eda0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.979703] edc0  00000000 00000000 c53f30c0 00000000 00000044 00000000 00000000 00000000
[  267.987883] ede0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  267.996032] 
[  267.996032] R5: 0xc53f3040:
[  268.000274] 3040  00000000 00000000 d6230e80 00000000 00000000 00000000 00000000 00000000
[  268.008454] 3060  00000000 00000000 00000000 00000000 00000000 00000000 c9eff5c0 00000000
[  268.016603] 3080  c53f3080 c53f3080 c53f3088 c53f3088 d01b1e10 00000000 00000000 00000000
[  268.024782] 30a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  268.032931] 30c0  00000000 c015a8bc 00000000 c31d8000 c0d81180 c0f42fe1 00000000 c53f30c0
[  268.041080] 30e0  d649da00 00000000 c071589c c076f5c4 00000001 ffff0000 00000000 00000000
[  268.049259] 3100  00000001 00000000 ffffd9d8 c3916780 08080808 00000000 9e4f1577 00000000
[  268.057408] 3120  00000001 08080808 6b0aa8c0 00000000 00000018 00000000 00000000 010aa8c0
[  268.065557] 
[  268.065557] R6: 0xc3597024:
[  268.069891] 7024  732e746e 6854006f 75616665 705f746c 3a706f72 b0003073 00000000 00000000
[  268.077979] 7044  00000000 00000000 6c73676b 6d69742d 6e696c65 00000065 00000000 00000000
[  268.086128] 7064  00000000 00000000 00000001 437ef21f 0000003e 00000000 00000000 00000000
[  268.094307] 7084  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  268.102456] 70a4  0000001c 00000018 5d9de85d 00001923 00002002 010000fe 00000200 000f0008
[  268.110605] 70c4  000000fe 00010008 08080808 00040008 00000018 00070008 6b0aa8c0 00050008
[  268.118785] 70e4  010aa8c0 00080004 00000000 00000000 00000000 00000000 00000000 00000000
[  268.126934] 7104  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  268.135083] 
[  268.135113] R8: 0xd1dedb3c:
[  268.139417] db3c  c0c82100 00000004 c0766078 60000013 ffffffff d1dedb94 d1dedbbc 00000000
[  268.147504] db5c  c000d9d8 00000000 c35970e8 00000000 00000000 cfe6ed80 c53f30c0 c35970a4
[  268.155684] db7c  00000000 d1dedbbc 00000000 00000000 00002785 c35970ec d1dedba8 c071b27c
[  268.163833] db9c  c0766078 60000013 ffffffff 0000000c 00000000 00000000 c0d7f940 d5eb8840
[  268.171982] dbbc  010aa8c0 00000000 08080808 cfe6ed80 d6da1200 d5eb8840 c0d7f940 00000000
[  268.180161] dbdc  00000000 00002785 c0768174 c0955574 c00f080c c27c0540 d1dedbfc 00400000
[  268.188310] dbfc  00000018 00000001 00000000 00000000 00000000 00002785 6b0aa8c0 08080808
[  268.196459] dc1c  00000000 00000000 d6da121c 00000000 00000000 00000000 00000000 00000000
[  268.204639] Process ip (pid: 6435, stack limit = 0xd1dec2f0)
[  268.210285] Stack: (0xd1dedba8 to 0xd1dee000)
[  268.214619] dba0:                   0000000c 00000000 00000000 c0d7f940 d5eb8840 010aa8c0
[  268.222829] dbc0: 00000000 08080808 cfe6ed80 d6da1200 d5eb8840 c0d7f940 00000000 00000000
[  268.231008] dbe0: 00002785 c0768174 c0955574 c00f080c c27c0540 d1dedbfc 00400000 00000018
[  268.239157] dc00: 00000001 00000000 00000000 00000000 00002785 6b0aa8c0 08080808 00000000
[  268.247245] dc20: 00000000 d6da121c 00000000 00000000 00000000 00000000 00000000 00000000
[  268.255486] dc40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  268.263634] dc60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  268.271783] dc80: 00000000 00000000 00000000 d6da1224 d6da1200 d5eb8840 00000078 e0471c00
[  268.279902] dca0: 00000002 d1dedd70 00000000 c071d06c 00000000 00000000 00000000 00000000
[  268.288112] dcc0: 00000000 00000000 00000000 d6da1200 d5eb8840 c071cdc0 d1dedd04 00000000
[  268.296261] dce0: 00000024 c07367d0 d5eb8840 00000024 d5eb8840 c071c2ac e0207400 c0736208
[  268.304379] dd00: d1adac00 7fffffff 00000000 00000000 d5eb8840 d1dedf74 d1adac00 c07365fc
[  268.312589] dd20: 00000000 00000000 00000000 d1caf140 d58d3680 00000000 00001923 00002785
[  268.320738] dd40: 00002785 00000000 00000002 00000000 d33e7a40 d1dedd70 00000024 d1dedf74
[  268.328918] dd60: d1dede5c 00000000 00000000 c06fac50 c0008180 d7dcf8f0 c0ceaa84 00000024
[  268.337005] dd80: d33e7a40 00000028 d1dedd2c d1dedf74 00000000 c001b250 c0cb467c 00000000
[  268.345215] dda0: 00000000 c013e274 b0a35000 c52bafc0 c0fae87c c2fc30d4 00000000 00000001
[  268.353395] ddc0: ffffffff 00000000 00000000 00000000 00000000 00000000 d1d47a80 d7d07d68
[  268.361483] dde0: 00000000 00000000 be8c8000 d7d07d68 d1dedd70 c0141204 0000000f 00000028
[  268.369632] de00: 00000000 00000028 000000c8 d1dedebc d1dec000 c0cb3808 00000000 d1dede5c
[  268.377872] de20: d1dedebc c0cb3808 00000000 d1dede5c 00000000 d33e7a40 d1dede9c 00000024
[  268.386021] de40: 00000000 00000000 d1dedf74 c06fc164 00000008 c0cb3808 be8c8000 be8cf51c
[  268.394140] de60: 00000000 c031f8dc d1dedfb0 be8c8000 00000000 c001a7c8 00000200 c001a7c8
[  268.402350] de80: d1dede90 00000000 00000000 c0eab868 00000000 c0eab868 00000000 00000000
[  268.410498] dea0: d1dede88 00000000 d1adac00 00000000 00000000 00000000 00000000 00000010
[  268.418647] dec0: 00000000 00000000 be8cf928 b0d95008 0000000c 00000000 0000000c c06fb498
[  268.426766] dee0: c0cb3808 00000817 c0d63c94 00000007 c0d63c24 be8c8000 d1dedfb0 b0d875ba
[  268.434976] df00: be8cf4f8 c0008480 b0d875b6 c000852c 00001923 00000000 d1dedf24 00000000
[  268.443155] df20: d1dedf08 00000000 d1adac00 00000000 c0cf43c0 00000001 c27bd388 72efb332
[  268.451243] df40: 00000000 d33e7a40 d1dedf74 00000000 be8c7354 c000dfe4 d1dec000 00200000
[  268.459453] df60: be8cf4f8 c06fd1fc 00000000 00000000 fffffff7 d1dedebc 0000000c d1dede5c
[  268.467633] df80: 00000001 00000000 00000000 00000000 b0d95004 b0d95004 be8cf4f8 be8c7388
[  268.475782] dfa0: 00000128 c000dfc8 b0d95004 be8cf4f8 00000003 be8c7354 00000000 be8cf388
[  268.483869] dfc0: b0d95004 be8cf4f8 be8c7388 00000128 0000041c 5d9de85d b0d875ba be8cf4f8
[  268.492110] dfe0: be8c7350 be8c7340 b0a2e567 b0b1de6c 600d0010 00000003 20746f6e 6e206562
[  268.500259] [<c0766078>] (rt_fill_info.constprop.6+0x22c/0x388) from [<c0768174>] (inet_rtm_getroute+0x214/0x250)
[  268.510514] [<c0768174>] (inet_rtm_getroute+0x214/0x250) from [<c071d06c>] (rtnetlink_rcv_msg+0x2ac/0x2e8)
[  268.520158] [<c071d06c>] (rtnetlink_rcv_msg+0x2ac/0x2e8) from [<c07367d0>] (netlink_rcv_skb+0x58/0xb4)
[  268.529375] [<c07367d0>] (netlink_rcv_skb+0x58/0xb4) from [<c071c2ac>] (rtnetlink_rcv+0x1c/0x28)
[  268.538226] [<c071c2ac>] (rtnetlink_rcv+0x1c/0x28) from [<c0736208>] (netlink_unicast+0x154/0x1f0)
[  268.547138] [<c0736208>] (netlink_unicast+0x154/0x1f0) from [<c07365fc>] (netlink_sendmsg+0x2a4/0x324)
[  268.556447] [<c07365fc>] (netlink_sendmsg+0x2a4/0x324) from [<c06fac50>] (sock_sendmsg+0xb0/0xd8)
[  268.565298] [<c06fac50>] (sock_sendmsg+0xb0/0xd8) from [<c06fc164>] (___sys_sendmsg.part.6+0x19c/0x244)
[  268.574607] [<c06fc164>] (___sys_sendmsg.part.6+0x19c/0x244) from [<c06fd1fc>] (__sys_sendmsg+0x50/0x74)
[  268.584129] [<c06fd1fc>] (__sys_sendmsg+0x50/0x74) from [<c000dfc8>] (__sys_trace_return+0x0/0x18)
[  268.593071] Code: e1a03008 ebef325d e3500000 ba00004c (e59721f8) 
[  268.599725] [sched_delayed] sched: RT throttling activated
[  268.646268] ---[ end trace 60c4914c671b4ae5 ]---
1 Like

The flash storage in my ageing HTC One M7 was quite badly worn and sometimes, when Syncthing’ing or copying a lot of data, the phone would spontaneously reboot. After setting the rate limits to 4.5MBps (incl. on LAN) the reboots ceased. I figured this was a hardware watchdog of some sort. It was reliably only happening when I synced / copied 200MB+ of data continuously. Just thought I’d chime in with a data point.