Bug#871229: /usr/sbin/update-grub: running update-grub segment faults
On Wed, 28 Feb 2018 22:37:41 +0100 Martin Zobel-Helaswrote: > I get segfaults when running update-grub on my Lenovo Thinkpad x270 > running Debian unstable from today. I see the same on my Dell Precision 7520. > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > Core was generated by `/usr/sbin/grub-probe --device /dev/nvme0n1p1 > --target=hints_string'. > Program terminated with signal SIGSEGV, Segmentation fault. Interesting thing is: we both use a NVME-SSD on an AMD64 system. My other systems, one 32bit-on-AMD64 on normal SATA disks and one pure AMD64 on normal SATA disks works without segfault, only the NVME one shows problems. Grüße, Sven. signature.asc Description: OpenPGP digital signature
Bug#871229: /usr/sbin/update-grub: running update-grub segment faults
Package: grub-common Version: 2.02+dfsg1-2 Followup-For: Bug #871229 Dear Maintainer, today, when running a regular unstable->unstable upgrade i also experienced a segmentation fault. i do these updates regularly, e.g. the last update of grub-common (2.02-2 -> 2.02+dfsg1-1) happened on "Sun, Feb 18 2018 22:55:00 +0100". The last update related to the boot manager would be linux-image-amd64 (4.14+89 -> 4.15+90) on "Mon, Feb 26 2018 14:24:15 +0100". I didn't notice any problems with prior upgrades. Note that I haven't rebooted my machine after the linux-image upgrade 3 days ago. I'll attach the output of # sh -x /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg 2>&1 | tee /tmp/update-grub.log i'm slightly afraid of having bricked my machine on the next reboot and would be grateful if you could fix the problem asap. -- Package-specific info: *** BEGIN /proc/mounts /dev/nvme0n1p2 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0 /dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0 *** END /proc/mounts *** BEGIN /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="0" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } if [ x$feature_default_font_path = xy ] ; then font=unicode else insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 6bb42702-8f67-4600-806e-69c9309532af else search --no-floppy --fs-uuid --set=root 6bb42702-8f67-4600-806e-69c9309532af fi font="/usr/share/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=C insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ] ; then set timeout=30 else if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=5 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=5 fi fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 6bb42702-8f67-4600-806e-69c9309532af else search --no-floppy --fs-uuid --set=root 6bb42702-8f67-4600-806e-69c9309532af fi insmod png if background_image /usr/share/desktop-base/softwaves-theme/grub/grub-16x9.png; then set color_normal=white/black set color_highlight=black/white else set menu_color_normal=cyan/blue set menu_color_highlight=white/blue fi ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### function gfxmode { set gfxpayload="${1}" } set linux_gfx_mode= export linux_gfx_mode menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6bb42702-8f67-4600-806e-69c9309532af' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 6bb42702-8f67-4600-806e-69c9309532af else search --no-floppy --fs-uuid --set=root 6bb42702-8f67-4600-806e-69c9309532af fi echo'Loading Linux 4.15.0-1-amd64 ...' linux /boot/vmlinuz-4.15.0-1-amd64 root=UUID=6bb42702-8f67-4600-806e-69c9309532af ro quiet echo'Loading initial ramdisk ...' initrd /boot/initrd.img-4.15.0-1-amd64 } submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-6bb42702-8f67-4600-806e-69c9309532af' { menuentry 'Debian GNU/Linux, with Linux 4.15.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-advanced-6bb42702-8f67-4600-806e-69c9309532af' {
Bug#871229: /usr/sbin/update-grub: running update-grub segment faults
Sorry unable to capture an output I have tried to use pastebin but the case isnt being updated with the links. regards Steven From: Colin Watson <cjwat...@debian.org> Sent: Monday, 7 August 2017 8:28 p.m. To: steven.jo...@vuw.ac.nz; 871...@bugs.debian.org Subject: Re: Bug#871229: /usr/sbin/update-grub: running update-grub segment faults On Mon, Aug 07, 2017 at 02:15:46PM +1200, steven.jo...@vuw.ac.nz wrote: > *** Reporter, please consider answering these questions, where appropriate *** > >* What led up to the situation? >* What exactly did you do (or not do) that was effective (or > ineffective)? >* What was the outcome of this action? >* What outcome did you expect instead? > > *** End of the template - remove these template lines *** Neither your bug report nor any of your follow-ups includes the actual output from update-grub. Please run the following as root and post the *exact* output (there will be quite a lot of it): sh -x /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg -- Colin Watson [cjwat...@debian.org]
Bug#871229: /usr/sbin/update-grub: running update-grub segment faults
On Mon, Aug 07, 2017 at 02:15:46PM +1200, steven.jo...@vuw.ac.nz wrote: > *** Reporter, please consider answering these questions, where appropriate *** > >* What led up to the situation? >* What exactly did you do (or not do) that was effective (or > ineffective)? >* What was the outcome of this action? >* What outcome did you expect instead? > > *** End of the template - remove these template lines *** Neither your bug report nor any of your follow-ups includes the actual output from update-grub. Please run the following as root and post the *exact* output (there will be quite a lot of it): sh -x /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg -- Colin Watson [cjwat...@debian.org]
Bug#871229: /usr/sbin/update-grub: running update-grub segment faults
Package: grub2-common Version: 2.02~beta2-22+deb8u1 Severity: critical File: /usr/sbin/update-grub Justification: breaks the whole system Dear Maintainer, *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** -- Package-specific info: *** BEGIN /proc/mounts /dev/sda5 / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0 /dev/sda8 /usr ext3 rw,relatime,data=ordered 0 0 /dev/sda7 /var ext3 rw,relatime,data=ordered 0 0 /dev/sda10 /home ext3 rw,relatime,data=ordered 0 0 /dev/sda1 /boot ext3 rw,relatime,data=ordered 0 0 /dev/sda6 /tmp ext3 rw,relatime,data=ordered 0 0 /dev/sdb1 /var/www ext3 rw,relatime,data=ordered 0 0 *** END /proc/mounts *** BEGIN /boot/grub/device.map (hd0) /dev/sda (hd1) /dev/sdb *** END /boot/grub/device.map *** BEGIN /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="gnulinux-simple-f8ac0ddf-4a8d-41d1-b4b8-19825679b1e6" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } terminal_input console terminal_output console if [ "${recordfail}" = 1 ] ; then set timeout=-1 else if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=5 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=5 fi fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### function gfxmode { set gfxpayload="${1}" } set linux_gfx_mode= export linux_gfx_mode menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f8ac0ddf-4a8d-41d1-b4b8-19825679b1e6' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' d30aa8d1-b00a-41cf-b98f-b4ebc881da28 else search --no-floppy --fs-uuid --set=root d30aa8d1-b00a-41cf-b98f-b4ebc881da28 fi echo'Loading Linux 3.16.0-4-686-pae ...' linux /vmlinuz-3.16.0-4-686-pae root=UUID=f8ac0ddf-4a8d-41d1-b4b8-19825679b1e6 ro text quiet echo'Loading initial ramdisk ...' initrd /initrd.img-3.16.0-4-686-pae } submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-f8ac0ddf-4a8d-41d1-b4b8-19825679b1e6' { menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-686-pae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-686-pae-advanced-f8ac0ddf-4a8d-41d1-b4b8-19825679b1e6' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' d30aa8d1-b00a-41cf-b98f-b4ebc881da28 else search --no-floppy --fs-uuid --set=root d30aa8d1-b00a-41cf-b98f-b4ebc881da28 fi echo'Loading Linux 3.16.0-4-686-pae ...' linux /vmlinuz-3.16.0-4-686-pae