balena-os / balena-ts

Balena support for TS boards
Apache License 2.0
3 stars 1 forks source link

Shutdown (at least after provisioning), triggers a kernel exception #18

Closed floion closed 8 years ago

floion commented 8 years ago

Observed on ts4900

root@ts-imx6:~# [ 277.259848] systemd-shutdown[1]: Sending SIGTERM to remaining processes... [ 277.295439] systemd-journald[188]: Received SIGTERM from PID 1 (systemd-shutdow). [ 277.393068] systemd-shutdown[1]: Sending SIGKILL to remaining processes... [ 277.422638] systemd-shutdown[1]: Unmounting file systems. [ 277.429379] systemd-shutdown[1]: Unmounting /boot. [ 277.587993] systemd-shutdown[1]: All filesystems unmounted. [ 277.593639] systemd-shutdown[1]: Deactivating swaps. [ 277.598817] systemd-shutdown[1]: All swaps deactivated. [ 277.604092] systemd-shutdown[1]: Detaching loop devices. [ 277.618502] systemd-shutdown[1]: All loop devices detached. [ 277.624372] systemd-shutdown[1]: Detaching DM devices. [ 277.629897] systemd-shutdown[1]: All DM devices detached. [ 277.639620] systemd-shutdown[1]: Powering off. [ 277.661757] reboot: Power down [ 277.666491] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000 [ 277.666491] [ 277.982569] ------------[ cut here ]------------ [ 277.987216] WARNING: CPU: 0 PID: 1 at /var/lib/jenkins/workspace/yocto-ts4900/build/tmp/work-shared/ts4900/kernel-source/kernel/time/tick-broadcast.c:604 tick_handle_oneshot_broadcast+0x140/0x1d4() [ 278.004777] Modules linked in: xt_connmark iptable_mangle wl12xx wlcore mac80211 cfg80211 wlcore_sdio [ 278.014164] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 3.14.52-1.1.0-technologic+g2d6f96d #1 [ 278.023072] <80014f58> from <80011454> [ 278.030838] <80011454> from <80717950> [ 278.038082] <80717950> from <800305cc> [ 278.046189] <800305cc> from <80030680> [ 278.054988] <80030680> from <8007fd7c> [ 278.064748] <8007fd7c> from <8001d298> [ 278.074422] <8001d298> from <8006db7c> [ 278.083660] <8006db7c> from <8006dcf8> [ 278.092548] <8006dcf8> from <80070928> [ 278.100999] <80070928> from <8006d3d8> [ 278.109627] <8006d3d8> from <8000eca4> [ 278.117558] <8000eca4> from <800084c4> [ 278.125143] <800084c4> from <80011ec0> [ 278.132633] Exception stack(0xd8095cf0 to 0xd8095d38) [ 278.137698] 5ce0: 00000000 00000000 80b148c0 00000000 [ 278.145887] 5d00: 80a8c0c0 00000002 d8094038 80b148c0 04404104 80aad4a4 0000000a 4321fedc [ 278.154074] 5d20: 00000000 d8095d38 80034148 80034158 200f0113 ffffffff [ 278.160707] <80011ec0> from <80034158> [ 278.168117] <80034158> from <80034560> [ 278.175353] <80034560> from <8000eca8> [ 278.182415] <8000eca8> from <800084c4> [ 278.189996] <800084c4> from <80011ec0> [ 278.197485] Exception stack(0xd8095db0 to 0xd8095df8) [ 278.202545] 5da0: d8095e04 00000000 ffac8100 8001d174 [ 278.210733] 5dc0: d8095e04 00000bb7 0000012c 00000190 0000005e 80aad4a4 d8620ff8 4321fedc [ 278.218919] 5de0: 80b189b0 d8095df8 802e4d14 8001d174 a00f0013 ffffffff [ 278.225548] <80011ec0> from <8001d174> [ 278.233657] <8001d174> from <802e4d14> [ 278.242630] <802e4d14> from <802e4d50> [ 278.250821] <802e4d50> from <807148b4> [ 278.258061] <807148b4> from <80032878> [ 278.264779] <80032878> from <8004e564> [ 278.271930] <8004e564> from <8000e3a0> [ 278.279593] ---[ end trace b89f2192f3bc8dec ]---

agherzan commented 8 years ago

@floion is this only at shutdown? Does it block reboot?

floion commented 8 years ago

I have seen this only at shutdown, and specifically so far at the shutdown step at the end of provisioning a device. What do you mean about reboot?

floion commented 8 years ago

Have also stumbled upon it a normal shutdown also:

root@ts-imx6:~# shutdown -h now [ 1425.152482] net_ratelimit: 6 callbacks suppressed [ 1425.157234] brcmfmac: brcmf_cfg80211_del_key: invalid key index (4) [ 1425.167649] brcmfmac: brcmf_cfg80211_del_key: invalid key index (5) [ 1425.197780] cfg80211: Calling CRDA to update world regulatory domain [ 1425.231293] cfg80211: World regulatory domain updated: [ 1425.236551] cfg80211: DFS Master region: unset [ 1425.236552] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 1425.236560] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm) [ 1425.236564] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm) [ 1425.236569] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm) [ 1425.236576] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm) [ 1425.236588] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm) [ 1425.236594] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm) [ 1425.236602] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm) [ 1425.236607] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm) [ 1455.344729] systemd-shutdown[1]: Sending SIGTERM to remaining processes... [ 1455.372358] systemd-journald[184]: Received SIGTERM from PID 1 (systemd-shutdow). [ 1455.468663] systemd-shutdown[1]: Sending SIGKILL to remaining processes... [ 1455.505007] systemd-shutdown[1]: Unmounting file systems. [ 1455.511014] systemd-shutdown[1]: Unmounting /boot. [ 1455.603654] systemd-shutdown[1]: All filesystems unmounted. [ 1455.609366] systemd-shutdown[1]: Deactivating swaps. [ 1455.614712] systemd-shutdown[1]: All swaps deactivated. [ 1455.620039] systemd-shutdown[1]: Detaching loop devices. [ 1455.637317] systemd-shutdown[1]: All loop devices detached. [ 1455.643030] systemd-shutdown[1]: Detaching DM devices. [ 1455.649103] systemd-shutdown[1]: All DM devices detached. [ 1455.658680] systemd-shutdown[1]: Powering off. [ 1455.672293] reboot: Power down [ 1455.677278] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000 [ 1455.677278] [ 1455.686689] ------------[ cut here ]------------ [ 1455.691340] WARNING: CPU: 0 PID: 1 at /var/lib/jenkins/workspace/yocto-ts4900/build/tmp/work-shared/ts4900/kernel-source/kernel/time/tick-broadcast.c:604 tick_handle_oneshot_broadcast+0x140/0x1d4() [ 1455.708902] Modules linked in: xt_connmark iptable_mangle wl12xx wlcore brcmfmac mac80211 brcmutil cfg80211 wlcore_sdio [ 1455.719902] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 3.14.52-1.1.0-technologic+g2d6f96d #1 [ 1455.728815] <80014f58> from <80011454> [ 1455.736584] <80011454> from <80717950> [ 1455.743833] <80717950> from <800305cc> [ 1455.751944] <800305cc> from <80030680> [ 1455.760750] <80030680> from <8007fd7c> [ 1455.770516] <8007fd7c> from <8001d298> [ 1455.780195] <8001d298> from <8006db7c> [ 1455.789435] <8006db7c> from <8006dcf8> [ 1455.798327] <8006dcf8> from <80070928> [ 1455.806782] <80070928> from <8006d3d8> [ 1455.815413] <8006d3d8> from <8000eca4> [ 1455.823347] <8000eca4> from <800084c4> [ 1455.830933] <800084c4> from <80011ec0> [ 1455.838427] Exception stack(0xd8095d10 to 0xd8095d58) [ 1455.843491] 5d00: 00000000 00000000 80b148c0 00000000 [ 1455.851682] 5d20: 80a8c0c0 00000202 d8094018 80b148c0 04404104 d8095e60 0000000a 4321fedc [ 1455.859873] 5d40: 00000001 d8095d58 80034148 80034158 200d0113 ffffffff [ 1455.866507] <80011ec0> from <80034158> [ 1455.873921] <80034158> from <80034560> [ 1455.881160] <80034560> from <8000eca8> [ 1455.888224] <8000eca8> from <800084c4> [ 1455.895810] <800084c4> from <80011ec0> [ 1455.903301] Exception stack(0xd8095dd0 to 0xd8095e18) [ 1455.908363] 5dc0: 00000001 00000000 00000001 00000000 [ 1455.916554] 5de0: 80b14430 00000000 d80a0000 00000000 00000001 d8095e60 d8636ff8 4321fedc [ 1455.924744] 5e00: 80b189b0 d8095e18 8006b900 80714874 600d0013 ffffffff [ 1455.931377] <80011ec0> from <80714874> [ 1455.938272] <80714874> from <80032878> [ 1455.944993] <80032878> from <8004e564> [ 1455.952147] <8004e564> from <8000e3a0> [ 1455.959817] ---[ end trace 4b300aff19b3eea2 ]---

agherzan commented 8 years ago

This issue was moved to resin-os/resinos#28