Bug#898553: grub-legacy 0.97-73 segfaults

Eugene B. Berdnikov bd4 at protva.ru
Sun May 13 14:31:10 BST 2018


Package: grub-legacy
Version: 0.97-73
Severity: important
Justification: critical

 In grub-legacy 0.97-73 binary /usr/sbin/grub segfaults on start.
 Binary from 0.97-72 works as expected.

# ldd /usr/sbin/grub
        linux-gate.so.1 (0xb7fc4000)
        libncurses.so.6 => /lib/i386-linux-gnu/libncurses.so.6 (0xb7f8c000)
        libtinfo.so.6 => /lib/i386-linux-gnu/libtinfo.so.6 (0xb7f65000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7d8c000)
        libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7d87000)
        /lib/ld-linux.so.2 (0xb7fc6000)
#

 Part of strace follows:
------------------------------------------------------------------------
execve("/usr/sbin/grub", ["/usr/sbin/grub"], 0xbfdb6388 /* 25 vars */) = 0
brk(NULL)                               = 0x8a11000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f7e000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)

...

stat64("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/etc/terminfo/x/xterm", R_OK)   = -1 ENOENT (No such file or directory)
access("/lib/terminfo/x/xterm", R_OK)   = 0
openat(AT_FDCWD, "/lib/terminfo/x/xterm", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=3455, ...}) = 0
read(3, "\32\1)\0&\0\17\0\235\1\270\5xterm|xterm-debian|X"..., 32768) = 3455
read(3, "", 28672)                      = 0
close(3)                                = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=38, ws_col=125, ws_xpixel=1269, ws_ypixel=764}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=38, ws_col=125, ws_xpixel=1269, ws_ypixel=764}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
rt_sigaction(SIGTSTP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTSTP, {sa_handler=0xb7f61f10, sa_mask=[], sa_flags=SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0xb7f61e10, sa_mask=[], sa_flags=SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0xb7f61e10, sa_mask=[], sa_flags=SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGWINCH, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGWINCH, {sa_handler=0xb7f61df0, sa_mask=[], sa_flags=0}, NULL, 8) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
write(1, "\33[?1049h\33[22;0;0t\33[1;38r\33(B\33[m\33["..., 46) = 46
rt_sigaction(SIGWINCH, {sa_handler=SIG_IGN, sa_mask=[WINCH], sa_flags=SA_RESTART}, {sa_handler=0xb7f61df0, sa_mask=[], sa_flags=0}, 8) = 0
sync()                                  = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xee8} ---
+++ killed by SIGSEGV +++
------------------------------------------------------------------------


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.15.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R), LANGUAGE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages grub-legacy depends on:
ii  grub-common  2.02+dfsg1-4
ii  libc6        2.27-3
ii  libncurses5  6.1+20180210-2
ii  libtinfo5    6.1+20180210-2

grub-legacy recommends no packages.

Versions of packages grub-legacy suggests:
ii  grub-legacy-doc  0.97-72
pn  mdadm            <none>
ii  multiboot        0.6.96+20101113-2

-- no debconf information



More information about the Pkg-grub-devel mailing list