Problem
/opt/VRTSvcs/bin/checkboot killed by SIGSEGV (core dumped)
Error Message
checkboot core dump when running "/opt/VRTSvcs/bin/checkboot /var/VRTSvcs/lock/.habootfile".
# /opt/VRTSvcs/bin/checkboot /var/VRTSvcs/lock/.habootfile
Segmentation fault
18694 11:23:09 [ f7526590] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
18694 11:23:09 [????????????????] +++ killed by SIGSEGV (core dumped) +++
Normal output should be:
# /opt/VRTSvcs/bin/checkboot /var/VRTSvcs/lock/.habootfile
File was modified after system boot,
boottime = <1366678337>, modifytime = <1366796662>
Cause
RCA: /var/run/utmp not exist.
On problem system, got the strace output of checkboot and found:
18694 11:23:09 [ ffffe410] access("/var/run/utmpx", F_OK) = -1 ENOENT (No such file or directory)
18694 11:23:09 [ ffffe410] open("/var/run/utmp", O_RDWR) = -1 ENOENT (No such file or directory)
18694 11:23:09 [ ffffe410] open("/var/run/utmp", O_RDONLY) = -1 ENOENT (No such file or directory)
18694 11:23:09 [ f7526590] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
18694 11:23:09 [????????????????] +++ killed by SIGSEGV (core dumped) +++
Then in lab reproduced the problem and confirmed the RCA:
# ls -l utmp
-rw-rw-r-- 1 root utmp 6144 Apr 25 14:29 utmp
# mv utmp utmp.bak
# /opt/VRTSvcs/bin/checkboot /var/VRTSvcs/lock/.habootfile
Segmentation fault
# mv utmp.bak utmp
# /opt/VRTSvcs/bin/checkboot /var/VRTSvcs/lock/.habootfile
File was modified after system boot,
boottime = <1366678337>, modifytime = <1366796662>
Solution
check & make sure /var/run/utmp exist
Applies To
Products and version:
VCS 5.1SP1GA
Operating System, version and architecture:
SLES 10 P2