Ubuntu: halt command throws error messages continuously and fails to shut down board

Bug #989757 reported by Abhishek Paliwal
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
IglooCommunity
New
Low
Unassigned

Bug Description

Description:
-------------

halt command throws error messages continuously and fails to shut down board

tescase reference: https://wiki.linaro.org/Platform/QA/TestCases/Ubuntu#Halt

Reproducible:
---------------
yes , 5/5

Steps to reproduce:
----------------------
Type halt on serial console after device is up and running.

Logs:
------
serial logs attached.
Snippet of logs below:

#halt
root@linaro-ubuntu-desktop:~# halt

Broadcast message from root@linaro-ubuntu-desktop
 (/dev/ttyAMA2) at 13:49 ...

The system is going down for halt NOW!
root@linaro-ubuntu-desktop:~# [ 44.619964] init: Failed to create pty - disabling logging for job
[ 44.630615] init: Failed to create pty - disabling logging for job
Checking for running unattended-upgrades:
[ 44.645660] init: Failed to create pty - disabling logging for job
[ 47.947418] Bluetooth: BTCG2900 NULL supplied for driver_data
nm-dispatcher.action: Caught signal 15, shutting down...
   ...done.
[ 47.971313] Bluetooth: BTCG2900 NULL supplied for info
nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/01ifupdown' exited abnormally.
[ 48.493194]
[ 48.493225] [4f9aa3ff:320f5024] CG2900_FM_Driver: cg2900_fm_switch_off: Invalid state of FM Driver = 0
[ 48.504425]
[ 48.504455] [4f9aa3ff:32bb245d] CG2900_FM_Driver: cg2900_fm_deinit: Already de-Initialized
[ 50.417236] System halted.
[ 50.420043] BUG: scheduling while atomic48>] (schedule_timeout+0x[ 50.470153] BUG: scheduling while atomic: swapper/1/0/0x00010002
[ 50.470581] bad: scheduling from the idle thread!
[ 50.471191] BUG: scheduling while atomic: swapper/1/0/0x00010002

Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
Anmar Oueja (anmar)
Changed in igloocommunity:
milestone: none → 2012.06
Changed in igloocommunity:
importance: Undecided → Medium
Revision history for this message
Botao (botao-sun) wrote :
Changed in igloocommunity:
milestone: 2012.06 → 2012.07
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :

halt fails on following images as well:

http://snapshots.linaro.org/precise/hwpacks/lt-snowball-x11-base/136/hwpack_linaro-lt-snowball-x11-base_20120617-136_armhf_supported.tar.gz
http://snapshots.linaro.org/precise/images/ubuntu-desktop/228/linaro-precise-ubuntu-desktop-20120617-228.tar.gz

Logs:
------
root@linaro-ubuntu-desktop:~# su - linaro
linaro@linaro-ubuntu-desktop:~$ sudo halt

Broadcast message from root@linaro-ubuntu-desktop
        (/dev/ttyAMA2) at 6:42 ...

The system is going down for halt NOW!
linaro@linaro-ubuntu-desktop:~$ Checking for running unattended-upgrades:
speech-dispatcher disabled; edit /etc/default/speech-dispatcher
[ 148.369354] Bluetooth: BTCG2900 NULL supplied for driver_data
[ 148.392028] Bluetooth: BTCG2900 NULL supplied for info
[ OK ]ing all remaining processes to terminate...
[ OK ] processes ended within 1 seconds....
[ 148.894836]
[ 148.894866] [4fe2c2ab:2c3c8fbb] CG2900_FM_Driver: cg2900_fm_switch_off: Invalid state of FM Driver = 0
[ 148.906921]
[ 148.906921] [4fe2c2ab:2cf4f69c] CG2900_FM_Driver: cg2900_fm_deinit: Already de-Initialized
nm-dispatcher.action: Caught signal 15, shutting down...
[ OK ]onfiguring network interfaces...
[ OK ]ctivating swap...
[ OK ]ounting local filesystems...
umount: /run/lock: not mounted
 * Will now halt
[ 155.999786] System halted.
[ 156.066375] BUG: scheduling while atomic: swapper/1/0/0x00010002
[ 156.105712] BUG: scheduling while atomic: swapper/1/0/0x00010002
[ 156.106109] bad: scheduling from the idle thread!
[ 156.106781] BUG: scheduling while atomic: swapper/1/0/0x00010002
[ 156.107177] bad: scheduling from the idle thread!
[ 156.107818] BUG: scheduling while atomic: swapper/1/0/0x00010002
[ 156.108245] bad: scheduling from the idle thread!
[ 156.108886] BUG: scheduling while atomic: swapper/1/0/0x00010002

Revision history for this message
Paul Larson (pwlars) wrote :

With http://snapshots.linaro.org/precise/images/ubuntu-desktop/247/linaro-precise-ubuntu-desktop-20120626-247.tar.gz
I get the familiar stream of errors, but then it eventually reboots if I wait for a few minutes!

The system is going down for halt NOW!
root@linaro-ubuntu-desktop:~# Checking for running unattended-upgrades:
speech-dispatcher disabled; edit /etc/default/speech-dispatcher
[ 1480.472167] Bluetooth: BTCG2900 NULL supplied for driver_data
[ 1480.482971] Bluetooth: BTCG2900 NULL supplied for info
 * Asking all remaining processes to terminate... [ OK ]
 * All processes ended within 1 seconds.... [ OK ]
[ 1480.984832]
[ 1480.984863] [4fe9d8b1:084e34ab] CG2900_FM_Driver: cg2900_fm_switch_off: Invalid state of FM Driver = 0
[ 1480.996582]
[ 1480.996582] [4fe9d8b1:09017c3f] CG2900_FM_Driver: cg2900_fm_deinit: Already de-Initialized
nm-dispatcher.action: Caught signal 15, shutting down...
modem-manager[1535]: <info> Caught signal 15, shutting down...

 * Deconfiguring network interfaces... [ OK ]
 * Deactivating swap... [ OK ]
 * Unmounting local filesystems... [ OK ]
umount: /run/lock: not mounted
 * Will now halt
[ 1487.429840] System halted.
[ 1487.432800] BUG: scheduling while atomic: swapper/0/0/0x00010002
[ 1487.435058] bad: scheduling from the idle thread!
[ 1487.438385] BUG: scheduling while atomic: swapper/0/0/0x00010002
[ 1487.631195] BUG: scheduling while atomic: swapper/0/0/0x00010002
[ 1487.633209] bad: scheduling from the idle thread!

Changed in igloocommunity:
milestone: 2012.07 → 2012.08
Changed in igloocommunity:
importance: Medium → Low
milestone: 2012.08 → none
Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
Amit Khare (amit-khare) wrote :

Also observed with snowball ubuntu build
http://snapshots.linaro.org/precise/pre-built/lt-snowball-x11-base/252/lt-snowball-x11-base-precise_ubuntu-desktop_20120812-252.img.gz

The system goes into halt throwing this error and auto reboots.

bad: scheduling from the idle thread
BUG: scheduling while atomic: swapper/0/0/0x00010002

Revision history for this message
Amit Khare (amit-khare) wrote :

Also observed with snowball ubuntu build
rootfs
http://snapshots.linaro.org/precise/images/ubuntu-desktop/352/linaro-precise-ubuntu-desktop-20120814-352.tar.gz
hwpack
http://snapshots.linaro.org/precise/pre-built/lt-snowball-x11-base/256/hwpack_linaro-lt-snowball-x11-base_20120814-256_armhf_supported.tar.gz

Seems to be working now but i can still the led lights on and blinking.

The system is going down for halt NOW!
Checking for running unattended-upgrades:
speech-dispatcher disabled; edit /etc/default/speech-dispatcher
[ 175.522216] Bluetooth: BTCG2900 NULL supplied for driver_data
[ 175.533721] Bluetooth: BTCG2900 NULL supplied for info
[ OK ]ing all remaining processes to terminate...
[ OK ] processes ended within 1 seconds....
[ 176.034851]
[ 176.034851] [50375cd3:0de44728] CG2900_FM_Driver: cg2900_fm_switc0
[ 176.046600]
[ 176.046630] [50375cd3:0e978ebc] CG2900_FM_Driver: cg2900_fm_deinid
nm-dispatcher.action: Caught signal 15, shutting down...
[ OK ]onfiguring network interfaces...
[ OK ]ctivating swap...
[ OK ]ounting local filesystems...
umount: /run/lock: not mounted
umount: /run/shm: not mounted
 * Will now halt
[ 184.898681] System halted.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.