Bug 1912

Summary: [Beagleboard C4]Segmentation fault when reboot the system with 3.0 kernel
Product: [Build System, Metadata & Runtime] BSPs Reporter: Yi Zhao <yi.zhao>
Component: bsps-configurationAssignee: Bruce Ashfield <bruce.ashfield>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bruce.ashfield, jiajun.xu, liang.li2, sgw, yi.zhao, yp.bsp.watcher, yp.watcher
Version: 1.2   
Target Milestone: 1.2.1   
Hardware: Beagleboard   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Yi Zhao 2012-01-17 22:50:32 UTC
Tree/branch: poky/1.2_M2
Commit: 0f4d99d207b224bb9ce23de00a48f795ae20b3a0
Image location:
http://autobuilder.pokylinux.org/nightly/20120111-3/machines/beagleboard/

u-boot environment setting:
###########
setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; bootm 0x80300000' 
setenv bootargs 'console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2
rootwait rootfstype=ext3 ro' 
mmc rescan 0
boot 
###########

kernel version:
###########
root@beagleboard:~# uname -a
Linux beagleboard 3.0.12-yocto-standard+ #1 PREEMPT Wed Jan 11 19:21:48 PST 2012 armv7l GNU/Linux
###########

When running reboot or shutdown, I get the following message:
###########
root@beagleboard:~# reboot

Broadcast message from root@beagleboard (ttyO2) (Thu Jan 12 04:42:34 2012):
The system is going down for reboot NOW!
INIT: Sending processes the TERM signal
INIT: Sending processeStopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 414)
dropbear.
Stopping advanced power management daemon: stopped /usr/sbin/apmd (pid 417)
apmd.
Stopping system message bus: dbus.
Stopping Distributed Compiler Daemon: distcc/etc/rc6.d/K20distcc: stop failed with error code 1
Error opening /dev/fb0: No such file or directory
Stopping syslogd/klogd: stopped syslogd (pid 431)
stopped klogd (pid 433)
done
Stopping tcf-agent: Bridge firewalling registered
OK
Stopping XServer
Stopping Connection Manager
Stopping Telephony daemon
Deconfiguring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
done.
Sending all processes the TERM signal...
Sending all processes the KILL signal...
Unmounting remote filesystems...
Stopping portmap daemon...
Deactivating swap...
Unmounting local filesystems...
Rebooting... Unhandled fault: external abort on non-linefetch (0x1028) at 0xfa0ab00a
Internal error: : 1028 [#1] PREEMPT
Modules linked in: bridge stp llc nls_iso8859_1 nls_cp437 ipv6
CPU: 0    Not tainted  (3.0.12-yocto-standard+ #1)
PC is at musb_generic_disable+0x2c/0x3c
LR is at musb_shutdown+0x5c/0xd4
pc : [<c032831c>]    lr : [<c0328724>]    psr: 60000093
sp : ce2fde08  ip : ce2fde18  fp : ce2fde14
r10: 00000000  r9 : ce2fc000  r8 : c005d828
r7 : c06e6aa8  r6 : ce2fc000  r5 : 40000013  r4 : cec120d8
r3 : fa0ab000  r2 : 00000000  r1 : 00000000  r0 : cec120d8
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 8e260019  DAC: 00000015
Process reboot (pid: 547, stack limit = 0xce2fc2f0)
Stack: (0xce2fde08 to 0xce2fe000)
de00:                   ce2fde2c ce2fde18 c0328724 c03282fc ceccb014 ceccb008
de20: ce2fde3c ce2fde30 c02b1154 c03286d4 ce2fde5c ce2fde40 c02add40 c02b113c
de40: 00000000 28121969 01234567 00000001 ce2fde6c ce2fde60 c00a4ecc c02adc9c
de60: ce2fde84 ce2fde70 c00a4ef8 c00a4ea0 01234567 c067e068 ce2fdfa4 ce2fde88
de80: c00a5048 c00a4ee8 c008505c c0240fd4 00000001 c067c100 ceee9d30 ceee9d30
dea0: ce2fdecc ce2fdeb0 c0085300 c0085018 00000001 ceee9d00 c067c0b8 c04826a4
dec0: ce2fdefc ce2fded0 c04826a4 c048725c 40000000 ce2fc000 ce98ee18 40000010
dee0: ce140908 00000000 cec0db40 c0154f64 ce2fdf1c ce2fdf00 c0154f64 c048725c
df00: ce140900 ce98ee18 40000010 ce140908 ce2fdf2c ce2fdf20 c015504c c0154f2c
df20: ce2fdf64 ce2fdf30 c013aa40 c0155028 00000000 00000000 ce2fdf64 ce140900
df40: 00000000 ce073300 00000006 c005d828 ce2fc000 00000000 ce2fdf84 ce2fdf68
df60: c01373e4 c013a858 00000000 00000003 ce073300 ce140900 ce2fdfa4 ce2fdf88
df80: c01374bc c0137370 00000001 00000003 00000000 00000058 00000000 ce2fdfa8
dfa0: c005d5c0 c00a4f60 00000001 00000003 fee1dead 28121969 01234567 00000001
dfc0: 00000001 00000003 00000000 00000058 00012584 0001257c 00000001 00000000
dfe0: 000124bc bea05c8c 00008f9c 4d4ff8a0 20000010 fee1dead 00000000 00000000
[<c032831c>] (musb_generic_disable+0x2c/0x3c) from [<c0328724>] (musb_shutdown+0x5c/0xd4)
[<c0328724>] (musb_shutdown+0x5c/0xd4) from [<c02b1154>] (platform_drv_shutdown+0x24/0x28)
[<c02b1154>] (platform_drv_shutdown+0x24/0x28) from [<c02add40>] (device_shutdown+0xb0/0x100)
[<c02add40>] (device_shutdown+0xb0/0x100) from [<c00a4ecc>] (kernel_restart_prepare+0x38/0x48)
[<c00a4ecc>] (kernel_restart_prepare+0x38/0x48) from [<c00a4ef8>] (kernel_restart+0x1c/0x58)
[<c00a4ef8>] (kernel_restart+0x1c/0x58) from [<c00a5048>] (sys_reboot+0xf4/0x1c4)
[<c00a5048>] (sys_reboot+0xf4/0x1c4) from [<c005d5c0>] (ret_fast_syscall+0x0/0x30)
Code: e5c3200b e1c320b6 e1c320b8 e5c32060 (e5d3200a) 
------------[ cut here ]------------
WARNING: at /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/work/beagleboard-poky-linux-gnueabi/linux-yocto-3.0.14+git1+6ae3d992cf546184010e87a0349810198f1d167c_1+6b4bf6173b0bd)
In-band Error seen by MPU  at address 0
Modules linked in: bridge stp llc nls_iso8859_1 nls_cp437 ipv6
[<c0063ae8>] (unwind_backtrace+0x0/0xec) from [<c047e40c>] (dump_stack+0x20/0x24)
[<c047e40c>] (dump_stack+0x20/0x24) from [<c008fb5c>] (warn_slowpath_common+0x5c/0x74)
[<c008fb5c>] (warn_slowpath_common+0x5c/0x74) from [<c008fc30>] (warn_slowpath_fmt+0x40/0x48)
[<c008fc30>] (warn_slowpath_fmt+0x40/0x48) from [<c0078400>] (omap3_l3_app_irq+0x114/0x160)
[<c0078400>] (omap3_l3_app_irq+0x114/0x160) from [<c00d6b1c>] (handle_irq_event_percpu+0xc4/0x2b4)
[<c00d6b1c>] (handle_irq_event_percpu+0xc4/0x2b4) from [<c00d6d70>] (handle_irq_event+0x64/0x84)
[<c00d6d70>] (handle_irq_event+0x64/0x84) from [<c00d8e3c>] (handle_level_irq+0xc4/0x110)
[<c00d8e3c>] (handle_level_irq+0xc4/0x110) from [<c00d6430>] (generic_handle_irq+0x40/0x54)
[<c00d6430>] (generic_handle_irq+0x40/0x54) from [<c0058310>] (asm_do_IRQ+0x70/0x94)
[<c0058310>] (asm_do_IRQ+0x70/0x94) from [<c0484c8c>] (__irq_svc+0x4c/0xe4)
Exception stack(0xce2fdc48 to 0xce2fdc90)
dc40:                   00000001 c06ad368 00000080 ce2fc000 00000001 c032831e
dc60: ce2fdcd2 00000000 c032831c 00000008 00000001 ce2fdd04 00000000 ce2fdc90
dc80: c008f978 c0061380 60000113 ffffffff
[<c0484c8c>] (__irq_svc+0x4c/0xe4) from [<c0061380>] (die+0x234/0x2d8)
[<c0061380>] (die+0x234/0x2d8) from [<c0061480>] (arm_notify_die+0x5c/0x60)
[<c0061480>] (arm_notify_die+0x5c/0x60) from [<c00581e0>] (do_DataAbort+0x94/0xa8)
[<c00581e0>] (do_DataAbort+0x94/0xa8) from [<c0484c2c>] (__dabt_svc+0x4c/0x60)
Exception stack(0xce2fddc0 to 0xce2fde08)
ddc0: cec120d8 00000000 00000000 fa0ab000 cec120d8 40000013 ce2fc000 c06e6aa8
dde0: c005d828 ce2fc000 00000000 ce2fde14 ce2fde18 ce2fde08 c0328724 c032831c
de00: 60000093 ffffffff
[<c0484c2c>] (__dabt_svc+0x4c/0x60) from [<c032831c>] (musb_generic_disable+0x2c/0x3c)
[<c032831c>] (musb_generic_disable+0x2c/0x3c) from [<c0328724>] (musb_shutdown+0x5c/0xd4)
[<c0328724>] (musb_shutdown+0x5c/0xd4) from [<c02b1154>] (platform_drv_shutdown+0x24/0x28)
[<c02b1154>] (platform_drv_shutdown+0x24/0x28) from [<c02add40>] (device_shutdown+0xb0/0x100)
[<c02add40>] (device_shutdown+0xb0/0x100) from [<c00a4ecc>] (kernel_restart_prepare+0x38/0x48)
[<c00a4ecc>] (kernel_restart_prepare+0x38/0x48) from [<c00a4ef8>] (kernel_restart+0x1c/0x58)
[<c00a4ef8>] (kernel_restart+0x1c/0x58) from [<c00a5048>] (sys_reboot+0xf4/0x1c4)
[<c00a5048>] (sys_reboot+0xf4/0x1c4) from [<c005d5c0>] (ret_fast_syscall+0x0/0x30)
---[ end trace 150feff0a5e77f06 ]---
---[ end trace 150feff0a5e77f07 ]---
note: reboot[547] exited with preempt_count 1
BUG: scheduling while atomic: reboot/547/0x40000002
Modules linked in: bridge stp llc nls_iso8859_1 nls_cp437 ipv6
[<c0063ae8>] (unwind_backtrace+0x0/0xec) from [<c047e40c>] (dump_stack+0x20/0x24)
[<c047e40c>] (dump_stack+0x20/0x24) from [<c047e5e4>] (__schedule_bug+0x60/0x6c)
[<c047e5e4>] (__schedule_bug+0x60/0x6c) from [<c0482288>] (__schedule+0x60/0x4b4)
[<c0482288>] (__schedule+0x60/0x4b4) from [<c008690c>] (__cond_resched+0x20/0x2c)
[<c008690c>] (__cond_resched+0x20/0x2c) from [<c048278c>] (_cond_resched+0x40/0x50)
[<c048278c>] (_cond_resched+0x40/0x50) from [<c011a54c>] (unmap_vmas+0x578/0x674)
[<c011a54c>] (unmap_vmas+0x578/0x674) from [<c011ef98>] (exit_mmap+0x138/0x2d4)
[<c011ef98>] (exit_mmap+0x138/0x2d4) from [<c008d3b4>] (mmput+0x44/0x110)
[<c008d3b4>] (mmput+0x44/0x110) from [<c0093614>] (exit_mm+0x17c/0x188)
[<c0093614>] (exit_mm+0x17c/0x188) from [<c009381c>] (do_exit+0x1fc/0x760)
[<c009381c>] (do_exit+0x1fc/0x760) from [<c00613e8>] (die+0x29c/0x2d8)
[<c00613e8>] (die+0x29c/0x2d8) from [<c0061480>] (arm_notify_die+0x5c/0x60)
[<c0061480>] (arm_notify_die+0x5c/0x60) from [<c00581e0>] (do_DataAbort+0x94/0xa8)
[<c00581e0>] (do_DataAbort+0x94/0xa8) from [<c0484c2c>] (__dabt_svc+0x4c/0x60)
Exception stack(0xce2fddc0 to 0xce2fde08)
ddc0: cec120d8 00000000 00000000 fa0ab000 cec120d8 40000013 ce2fc000 c06e6aa8
dde0: c005d828 ce2fc000 00000000 ce2fde14 ce2fde18 ce2fde08 c0328724 c032831c
de00: 60000093 ffffffff
[<c0484c2c>] (__dabt_svc+0x4c/0x60) from [<c032831c>] (musb_generic_disable+0x2c/0x3c)
[<c032831c>] (musb_generic_disable+0x2c/0x3c) from [<c0328724>] (musb_shutdown+0x5c/0xd4)
[<c0328724>] (musb_shutdown+0x5c/0xd4) from [<c02b1154>] (platform_drv_shutdown+0x24/0x28)
[<c02b1154>] (platform_drv_shutdown+0x24/0x28) from [<c02add40>] (device_shutdown+0xb0/0x100)
[<c02add40>] (device_shutdown+0xb0/0x100) from [<c00a4ecc>] (kernel_restart_prepare+0x38/0x48)
[<c00a4ecc>] (kernel_restart_prepare+0x38/0x48) from [<c00a4ef8>] (kernel_restart+0x1c/0x58)
[<c00a4ef8>] (kernel_restart+0x1c/0x58) from [<c00a5048>] (sys_reboot+0xf4/0x1c4)
[<c00a5048>] (sys_reboot+0xf4/0x1c4) from [<c005d5c0>] (ret_fast_syscall+0x0/0x30)
BUG: scheduling while atomic: reboot/547/0x40000002
Modules linked in: bridge stp llc nls_iso8859_1 nls_cp437 ipv6
[<c0063ae8>] (unwind_backtrace+0x0/0xec) from [<c047e40c>] (dump_stack+0x20/0x24)
[<c047e40c>] (dump_stack+0x20/0x24) from [<c047e5e4>] (__schedule_bug+0x60/0x6c)
[<c047e5e4>] (__schedule_bug+0x60/0x6c) from [<c0482288>] (__schedule+0x60/0x4b4)
[<c0482288>] (__schedule+0x60/0x4b4) from [<c008690c>] (__cond_resched+0x20/0x2c)
[<c008690c>] (__cond_resched+0x20/0x2c) from [<c048278c>] (_cond_resched+0x40/0x50)
[<c048278c>] (_cond_resched+0x40/0x50) from [<c0093174>] (put_files_struct+0x94/0xec)
[<c0093174>] (put_files_struct+0x94/0xec) from [<c0093288>] (exit_files+0x60/0x64)
[<c0093288>] (exit_files+0x60/0x64) from [<c00938c4>] (do_exit+0x2a4/0x760)
[<c00938c4>] (do_exit+0x2a4/0x760) from [<c00613e8>] (die+0x29c/0x2d8)
[<c00613e8>] (die+0x29c/0x2d8) from [<c0061480>] (arm_notify_die+0x5c/0x60)
[<c0061480>] (arm_notify_die+0x5c/0x60) from [<c00581e0>] (do_DataAbort+0x94/0xa8)
[<c00581e0>] (do_DataAbort+0x94/0xa8) from [<c0484c2c>] (__dabt_svc+0x4c/0x60)
Exception stack(0xce2fddc0 to 0xce2fde08)
ddc0: cec120d8 00000000 00000000 fa0ab000 cec120d8 40000013 ce2fc000 c06e6aa8
dde0: c005d828 ce2fc000 00000000 ce2fde14 ce2fde18 ce2fde08 c0328724 c032831c
de00: 60000093 ffffffff
[<c0484c2c>] (__dabt_svc+0x4c/0x60) from [<c032831c>] (musb_generic_disable+0x2c/0x3c)
[<c032831c>] (musb_generic_disable+0x2c/0x3c) from [<c0328724>] (musb_shutdown+0x5c/0xd4)
[<c0328724>] (musb_shutdown+0x5c/0xd4) from [<c02b1154>] (platform_drv_shutdown+0x24/0x28)
[<c02b1154>] (platform_drv_shutdown+0x24/0x28) from [<c02add40>] (device_shutdown+0xb0/0x100)
[<c02add40>] (device_shutdown+0xb0/0x100) from [<c00a4ecc>] (kernel_restart_prepare+0x38/0x48)
[<c00a4ecc>] (kernel_restart_prepare+0x38/0x48) from [<c00a4ef8>] (kernel_restart+0x1c/0x58)
[<c00a4ef8>] (kernel_restart+0x1c/0x58) from [<c00a5048>] (sys_reboot+0xf4/0x1c4)
[<c00a5048>] (sys_reboot+0xf4/0x1c4) from [<c005d5c0>] (ret_fast_syscall+0x0/0x30)
/etc/rc6.d/S90reboot: line 15:   547 Segmentation fault      reboot -d -f

Give root password for system maintenance
(or type Control-D for normal startup):
######################
Comment 1 Yi Zhao 2012-04-09 07:03:02 UTC
This issue doesn't happen on 1.2 M4 RC1 and RC2.

Tree/branch: poky/1.2_M4
Commit: 27aa5489fb40d99c58bb2a4bbf2311e2c502a091
Comment 2 Bruce Ashfield 2012-04-10 04:42:03 UTC
The stable updates appear to have fixed this. Since it isn't happening anymore, marking it as resolved.