Wind River Support Network

HomeDefectsLIN8-2760
Fixed

LIN8-2760 : segfault after shutdown command

Created: Feb 15, 2016    Updated: Jul 17, 2017
Resolved Date: Mar 29, 2016
Found In Version: 8.0.0.1
Fix Version: 8.0.0.5
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: unknown

Description

Observed Behaviour( intel_x86-64 ) 
===========================
root@qemu0:~# shutdown
systemd-logind[397]: segfault at 564ead000000 ip 00007f5a3fd4010a sp 00007ffe64a15fd8 error 4 in libc-2.22.so[7f5a3fcbf000+19a000]
Failed to set wall message, ignoring: Message did not receive a reply (timeout by message bus)
Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: Message did not receive a reply (timeout by message bus)
[  OK  ] Stopped target Timers.
         Starting Store Sound Card State...
.....
[  OK  ] Reached target Shutdown.

Observed Behaviour (fsl-ls20xx)
========================
root@128:~# shutdown
systemd-logind[202]: unhandled level 2 translation fault (11) at 0xaaaab0000000, esr 0x92000006
pgd = ffff80834cc36000
[aaaab0000000] *pgd=00000083cc4fa003, *pud=00000083cc62d003, *pmd=0000000000000000

CPU: 2 PID: 202 Comm: systemd-logind Not tainted 4.1.16-WR8.0.0.1_standard #1
Hardware name: Freescale Layerscape 2085a RDB Board (DT)
task: ffff80834ce7ac00 ti: ffff80834cfc4000 task.ti: ffff80834cfc4000
PC is at 0xffffa63c32d0
LR is at 0xffffa63c2fbc
pc : [<0000ffffa63c32d0>] lr : [<0000ffffa63c2fbc>] pstate: 80000000
sp : 0000ffffde66a5a0
x29: 0000ffffde66a5a0 x28: 0000aaaab0891580 
x27: 0000ffffde66a888 x26: 0000aaaab0894e78 
x25: 0000000000000000 x24: 0000ffffde66a738 
x23: 0000aaaab088fbd0 x22: 0000ffffde66a718 
x21: 0000aaaab0000000 x20: 0000aaaab0000000 
x19: 0000aaaab088b168 x18: 0000000000000001 
x17: 0000ffffa63c2fa8 x16: 0000aaaab0889b70 
x15: 003b9aca00000000 x14: 0027411a00000000 
x13: ffffffffa93e6c2e x12: 0000000000000018 
x11: 0000000000000020 x10: 0000aaaab0893b30 
x9 : 0000ffffa6490510 x8 : 0101010101010101 
x7 : 0000000000000000 x6 : 0000000000000000 
x5 : 0000ffffa648e9c0 x4 : 0000000000000000 
x3 : 0000000000000000 x2 : 0000000000000001 
x1 : 0000aaaab0000000 x0 : 0000aaaab0000000 

Failed to set wall message, ignoring: Message did not receive a reply (timeout by message bus)
Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: Message did not receive a reply (timeout by message bus)
[  OK[  OK  ] Stopped Session c1 of user root.
         Stopping User Manager for UID 0...
[  OK  ] Stopped target Timers.
...
[  OK  ] Reached target Shutdown.

Workaround

no errors for "poweroff"/"halt"/"systemctl poweroff"/"sytemctl halt" commands

Steps to Reproduce

intel_x86-64
==========
configure --enable-board=intel_x86-64 --enable-kernel=standard --enable-rootfs=glibc_std  --with-rcpl-version=0001

boot

run shutdown command 

fsl-ls20xx 
=======
configure --enable-board=fsl-ls20xx --enable-kernel=standard --enable-rootfs=glibc-std --with-rcpl-version=0001

boot

run shutdown command 
Live chat
Online