[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#685625: kfreebsd-image-9.0-2-amd64: segfaults when upgrading



Steven Chamberlain <steven@pyro.eu.org> writes:

> Oh, and you would probably get more useful info by running:
>
> sh -x $(which grub-mkconfig)

Useful. Attached at the end.

> That shouldn't change your GRUB config either, as it will just print
> it to standard output if you don't use the -o flag as update-grub2
> does.

On inspection, the /boot/grub/grub.cfg file has not been replaced. I was
more worried about the files from the kernel package, though.

> I would guess that when this failure happened, it wouldn't have
> replaced your GRUB config yet, so I would *hope* your system is still
> bootable (assuming the old kernel image is still there).

The /boot/kfreebsd-9.0-2-amd64.gz is dated Jul 30, I would guess that to
be the previous version. Feel safer now. :)


,----[ output from: sh -x $(which grub-mkconfig) ]
| root@discordia:/var/log# sh -x $(which grub-mkconfig)
| + set -e
| + transform=s,x,x,
| + prefix=/usr
| + exec_prefix=/usr
| + datarootdir=/usr/share
| + prefix=/usr
| + exec_prefix=/usr
| + sbindir=/usr/sbin
| + bindir=/usr/bin
| + sysconfdir=/etc
| + PACKAGE_NAME=GRUB
| + PACKAGE_VERSION=1.99-22.1
| + host_os=kfreebsd-gnu
| + datadir=/usr/share
| + echo grub
| + sed s,x,x,
| + pkgdatadir=/usr/share/grub
| + grub_cfg=
| + grub_mkconfig_dir=/etc/grub.d
| + basename /usr/sbin/grub-mkconfig
| + self=grub-mkconfig
| + echo grub-mkdevicemap
| + sed s,x,x,
| + grub_mkdevicemap=/usr/sbin/grub-mkdevicemap
| + echo grub-probe
| + sed s,x,x,
| + grub_probe=/usr/sbin/grub-probe
| + echo grub-script-check
| + sed s,x,x,
| + grub_script_check=/usr/bin/grub-script-check
| + echo /boot/grub
| + sed s,//*,/,g
| + GRUB_PREFIX=/boot/grub
| + test 0 -gt 0
| + . /usr/share/grub/grub-mkconfig_lib
| + transform=s,x,x,
| + prefix=/usr
| + exec_prefix=/usr
| + datarootdir=/usr/share
| + datadir=/usr/share
| + bindir=/usr/bin
| + sbindir=/usr/sbin
| + echo grub
| + sed s,x,x,
| + pkgdatadir=/usr/share/grub
| + test x/usr/sbin/grub-probe = x
| + test x = x
| + echo grub-mkrelpath
| + sed s,x,x,
| + grub_mkrelpath=/usr/bin/grub-mkrelpath
| + which gettext
| + 
| + gettext=gettext
| + [ x = x ]
| + id -u
| + EUID=0
| + [ 0 != 0 ]
| + set /usr/sbin/grub-mkdevicemap dummy
| + test -f /usr/sbin/grub-mkdevicemap
| + :
| + set /usr/sbin/grub-probe dummy
| + test -f /usr/sbin/grub-probe
| + :
| + mkdir -p /boot/grub
| + test -e /boot/grub/device.map
| + :
| + /usr/sbin/grub-probe --target=device /
| + GRUB_DEVICE=/dev/ada1s1
| + /usr/sbin/grub-probe --device /dev/ada1s1 --target=fs_uuid
| Segmentation fault
| + GRUB_DEVICE_UUID=
| + true
| + /usr/sbin/grub-probe --target=device /boot
| + GRUB_DEVICE_BOOT=/dev/ada1s1
| + /usr/sbin/grub-probe --device /dev/ada1s1 --target=fs_uuid
| Segmentation fault
| + GRUB_DEVICE_BOOT_UUID=
| + true
| + /usr/sbin/grub-probe --device /dev/ada1s1 --target=fs
| + echo unknown
| + GRUB_FS=unknown
| + test -f /etc/default/grub
| + . /etc/default/grub
| + GRUB_DEFAULT=0
| + GRUB_TIMEOUT=5
| + lsb_release -i -s
| + GRUB_DISTRIBUTOR=Debian
| + GRUB_CMDLINE_LINUX_DEFAULT=quiet
| + GRUB_CMDLINE_LINUX=
| + [ x != x ]
| + termoutdefault=0
| + [ x = x ]
| + GRUB_TERMINAL_OUTPUT=gfxterm
| + termoutdefault=1
| + [ xgfxterm = xgfxterm ]
| + [ -n  ]
| + path=/usr/share/grub/unicode.pf2
| + is_path_readable_by_grub /usr/share/grub/unicode.pf2
| + path=/usr/share/grub/unicode.pf2
| + test -e /usr/share/grub/unicode.pf2
| + :
| + /usr/sbin/grub-probe -t fs /usr/share/grub/unicode.pf2
| + return 1
| + continue
| + path=/usr/share/grub/unifont.pf2
| + is_path_readable_by_grub /usr/share/grub/unifont.pf2
| + path=/usr/share/grub/unifont.pf2
| + test -e /usr/share/grub/unifont.pf2
| + return 1
| + continue
| + path=/usr/share/grub/ascii.pf2
| + is_path_readable_by_grub /usr/share/grub/ascii.pf2
| + path=/usr/share/grub/ascii.pf2
| + test -e /usr/share/grub/ascii.pf2
| + :
| + /usr/sbin/grub-probe -t fs /usr/share/grub/ascii.pf2
| + return 1
| + continue
| + path=/boot/grub/unicode.pf2
| + is_path_readable_by_grub /boot/grub/unicode.pf2
| + path=/boot/grub/unicode.pf2
| + test -e /boot/grub/unicode.pf2
| + return 1
| + continue
| + path=/boot/grub/unifont.pf2
| + is_path_readable_by_grub /boot/grub/unifont.pf2
| + path=/boot/grub/unifont.pf2
| + test -e /boot/grub/unifont.pf2
| + return 1
| + continue
| + path=/boot/grub/ascii.pf2
| + is_path_readable_by_grub /boot/grub/ascii.pf2
| + path=/boot/grub/ascii.pf2
| + test -e /boot/grub/ascii.pf2
| + return 1
| + continue
| + path=/usr/share/grub/unicode.pf2
| + is_path_readable_by_grub /usr/share/grub/unicode.pf2
| + path=/usr/share/grub/unicode.pf2
| + test -e /usr/share/grub/unicode.pf2
| + :
| + /usr/sbin/grub-probe -t fs /usr/share/grub/unicode.pf2
| + return 1
| + continue
| + path=/usr/share/grub/unifont.pf2
| + is_path_readable_by_grub /usr/share/grub/unifont.pf2
| + path=/usr/share/grub/unifont.pf2
| + test -e /usr/share/grub/unifont.pf2
| + return 1
| + continue
| + path=/usr/share/grub/ascii.pf2
| + is_path_readable_by_grub /usr/share/grub/ascii.pf2
| + path=/usr/share/grub/ascii.pf2
| + test -e /usr/share/grub/ascii.pf2
| + :
| + /usr/sbin/grub-probe -t fs /usr/share/grub/ascii.pf2
| + return 1
| + continue
| + [ -z  ]
| + [ x1 != x1 ]
| + GRUB_TERMINAL_OUTPUT=
| + export GRUB_DEVICE GRUB_DEVICE_UUID GRUB_DEVICE_BOOT GRUB_DEVICE_BOOT_UUID GRUB_FS GRUB_FONT_PATH GRUB_PRELOAD_MODULES GRUB_PREFIX
| + export GRUB_DEFAULT GRUB_HIDDEN_TIMEOUT GRUB_HIDDEN_TIMEOUT_QUIET GRUB_TIMEOUT GRUB_DEFAULT_BUTTON GRUB_HIDDEN_TIMEOUT_BUTTON GRUB_TIMEOUT_BUTTON GRUB_BUTTON_CMOS_ADDRESS GRUB_BUTTON_CMOS_CLEAN GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_CMDLINE_XEN GRUB_CMDLINE_XEN_DEFAULT GRUB_CMDLINE_LINUX_XEN_REPLACE GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT GRUB_CMDLINE_NETBSD GRUB_CMDLINE_NETBSD_DEFAULT GRUB_CMDLINE_GNUMACH GRUB_TERMINAL_INPUT GRUB_TERMINAL_OUTPUT GRUB_SERIAL_COMMAND GRUB_DISABLE_LINUX_UUID GRUB_DISABLE_RECOVERY GRUB_VIDEO_BACKEND GRUB_GFXMODE GRUB_BACKGROUND GRUB_THEME GRUB_GFXPAYLOAD_LINUX GRUB_DISABLE_OS_PROBER GRUB_INIT_TUNE GRUB_SAVEDEFAULT GRUB_BADRAM
| + test x != x
| + echo Generating grub.cfg ...
| Generating grub.cfg ...
| + cat
| #
| # DO NOT EDIT THIS FILE
| #
| # It is automatically generated by grub-mkconfig using templates
| # from /etc/grub.d and settings from /etc/default/grub
| #
| + grub_file_is_not_garbage /etc/grub.d/00_header
| + test -f /etc/grub.d/00_header
| + return 0
| + test -x /etc/grub.d/00_header
| + echo
| 
| + echo ### BEGIN /etc/grub.d/00_header ###
| ### BEGIN /etc/grub.d/00_header ###
| + /etc/grub.d/00_header
| if [ -s $prefix/grubenv ]; then
|   load_env
| fi
| set default="0"
| 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 {
|   insmod vbe
|   insmod vga
|   insmod video_bochs
|   insmod video_cirrus
| }
| 
| set timeout=5
| + echo ### END /etc/grub.d/00_header ###
| ### END /etc/grub.d/00_header ###
| + grub_file_is_not_garbage /etc/grub.d/05_debian_theme
| + test -f /etc/grub.d/05_debian_theme
| + return 0
| + test -x /etc/grub.d/05_debian_theme
| + echo
| 
| + echo ### BEGIN /etc/grub.d/05_debian_theme ###
| ### BEGIN /etc/grub.d/05_debian_theme ###
| + /etc/grub.d/05_debian_theme
| set menu_color_normal=cyan/blue
| set menu_color_highlight=white/blue
| + echo ### END /etc/grub.d/05_debian_theme ###
| ### END /etc/grub.d/05_debian_theme ###
| + grub_file_is_not_garbage /etc/grub.d/10_kfreebsd
| + test -f /etc/grub.d/10_kfreebsd
| + return 0
| + test -x /etc/grub.d/10_kfreebsd
| + echo
| 
| + echo ### BEGIN /etc/grub.d/10_kfreebsd ###
| ### BEGIN /etc/grub.d/10_kfreebsd ###
| + /etc/grub.d/10_kfreebsd
| Found kernel of FreeBSD: /boot/kfreebsd-9.0-2-amd64.gz
| Found kernel module directory: /lib/modules/9.0-2-amd64
| menuentry 'Debian GNU/kFreeBSD, with kFreeBSD 9.0-2-amd64' --class debian --class gnu-kfreebsd --class gnu --class os {
| Segmentation fault
| 
| 	echo			'Loading kernel of FreeBSD 9.0-2-amd64 ...'
| 	kfreebsd		/root/@/boot/kfreebsd-9.0-2-amd64.gz 
| Segmentation fault
| Segmentation fault
| ls: cannot access /lib/modules/9.0-2-amd64/unknown.ko: No such file or directory
`----


,----[ output from: zpool status ]
| root@discordia:~# zpool status
|   pool: rpool
|  state: ONLINE
|  scan: scrub repaired 0 in 0h0m with 0 errors on Sun Aug  5 00:57:50 2012
| config:
| 
| 	NAME        STATE     READ WRITE CKSUM
| 	rpool       ONLINE       0     0     0
| 	  ada1s1    ONLINE       0     0     0
| 
| errors: No known data errors
| 
|   pool: tank
|  state: ONLINE
|  scan: scrub repaired 0 in 0h23m with 0 errors on Sun Aug  5 01:21:00 2012
| config:
| 
| 	NAME        STATE     READ WRITE CKSUM
| 	tank        ONLINE       0     0     0
| 	  -0        ONLINE       0     0     0
| 	    ada0    ONLINE       0     0     0
| 	    ada2    ONLINE       0     0     0
| 	    ada3    ONLINE       0     0     0
| 	    ada4    ONLINE       0     0     0
| 
| errors: No known data errors
`----


-- 
Stig Sandbeck Mathisen


Reply to: