You are not logged in.

#1 2012-06-17 12:06:28

Revelation60
Member
From: The Netherlands
Registered: 2009-03-19
Posts: 158
Website

Kernel not booting with "alloc magic is broken"

When I booted my PC for the second time today I suddenly got the following error:

loading linux vmlinuz26
alloc magic is broken at 0xcf6fe180

My first boot was totally fine. I have changed no settings, but I have probably installed some updates. Both the normal arch and the fallback fail to boot. My Windows however does succeed to boot without issues. Does anyone know what causes this?

Offline

#2 2012-06-17 12:26:34

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Kernel not booting with "alloc magic is broken"

Which packages were upgraded exactly? Also, which kernel are you running (not the default Arch kernel I assume by looking at the output you posted)?


Burninate!

Offline

#3 2012-06-17 12:44:10

Revelation60
Member
From: The Netherlands
Registered: 2009-03-19
Posts: 158
Website

Re: Kernel not booting with "alloc magic is broken"

I can't check right now which packages were updated, but I am using the default kernel.

Offline

#4 2012-06-17 12:57:39

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Kernel not booting with "alloc magic is broken"

When you're back at your system, check and post the following (boot from an Arch livecd or another one you have):

- Which packages were upgraded (/var/log/pacman.log).
- Your bootloader config.
- The output of "lsinitcpio -a /boot/<initramfsimage>"


Burninate!

Offline

#5 2012-06-17 13:14:35

Revelation60
Member
From: The Netherlands
Registered: 2009-03-19
Posts: 158
Website

Re: Kernel not booting with "alloc magic is broken"

Here it is!

Pacman log:

[2012-06-17 10:06] Running 'pacman -Syu'
[2012-06-17 10:06] synchronizing package lists
[2012-06-17 10:07] starting full system upgrade
[2012-06-17 10:10] upgraded khrplatform-devel (8.0.3-2 -> 8.0.3-3)
[2012-06-17 10:10] upgraded lib32-freetype2 (2.4.9-1 -> 2.4.10-1)
[2012-06-17 10:10] upgraded lib32-krb5 (1.10.1-2 -> 1.10.2-1)
[2012-06-17 10:10] upgraded libpng (1.5.10-1 -> 1.5.11-1)
[2012-06-17 10:10] upgraded lib32-libpng (1.5.10-2 -> 1.5.11-1)
[2012-06-17 10:10] upgraded nvidia-utils (295.59-1 -> 302.17-1)
[2012-06-17 10:10] upgraded lib32-nvidia-utils (295.59-1 -> 302.17-1)
[2012-06-17 10:10] upgraded mesa (8.0.3-2 -> 8.0.3-3)
[2012-06-17 10:10] upgraded lib32-mesa (8.0.3-3.1 -> 8.0.3-3.2)
[2012-06-17 10:10] upgraded lib32-pango (1.30.0-1 -> 1.30.1-1)
[2012-06-17 10:10] upgraded libdrm (2.4.33-1 -> 2.4.35-1)
[2012-06-17 10:10] upgraded libglapi (8.0.3-2 -> 8.0.3-3)
[2012-06-17 10:10] upgraded libegl (8.0.3-2 -> 8.0.3-3)
[2012-06-17 10:10] upgraded nvidia (295.59-1 -> 302.17-1)
[2012-06-17 10:10] upgraded opencl-nvidia (295.59-1 -> 302.17-1)

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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="2"
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 menu_color_normal=light-blue/black
set menu_color_highlight=light-cyan/blue

insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 5c130a7b-3c93-4d68-9497-dd0e91351f72
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos3)'
  search --no-floppy --fs-uuid --set=root 5c130a7b-3c93-4d68-9497-dd0e91351f72
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux vmlinuz26' --class archlinux --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos3)'
	search --no-floppy --fs-uuid --set=root 5c130a7b-3c93-4d68-9497-dd0e91351f72
	echo	'Loading Linux vmlinuz26 ...'
	linux	/boot/vmlinuz26 root=/dev/disk/by-uuid/5c130a7b-3c93-4d68-9497-dd0e91351f72 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/kernel26.img
}
menuentry 'Arch Linux, with Linux vmlinuz26 Fallback' --class archlinux --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos3)'
	search --no-floppy --fs-uuid --set=root 5c130a7b-3c93-4d68-9497-dd0e91351f72
	echo	'Loading Linux vmlinuz26 ...'
	linux	/boot/vmlinuz26 root=/dev/disk/by-uuid/5c130a7b-3c93-4d68-9497-dd0e91351f72 ro  quiet init=/bin/systemd
	echo	'Loading initial ramdisk ...'
	initrd	/boot/kernel26-fallback.img
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/40_custom.pacsave ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry "Windows 7" {
set root=(hd0,1)
chainloader (hd0,1)+1
}
### END /etc/grub.d/40_custom.pacsave ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

initramimage:

==> Image: /boot/initramfs-linux.img 
==> Created with mkinitcpio 0.9.2
==> Kernel: 3.4.2-2-ARCH
==> Size: 2.12 MiB
==> Compressed with: gzip
  -> Uncompressed size: 5.54 MiB (.382 ratio)
  -> Estimated extraction time: 0.085s

==> Included modules:
  ahci		  ext4		  libata	  sd_mod
  cdrom		  jbd2		  mbcache	  sr_mod
  crc16		  libahci	  scsi_mod

==> Included binaries:

==> Early hook run order:
  udev

==> Hook run order:
  udev
  resume

==> Cleanup hook run order:
  udev

Offline

#6 2012-06-17 14:01:54

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Kernel not booting with "alloc magic is broken"

I'm a bit confused. The following output from your bootloader config would mean that you're not actually trying to boot the stock ARCH kernel (and initramfs), but rather what I assume to be a 2.6.x kernel.

linux	/boot/vmlinuz26 root=/dev/disk/by-uuid/5c130a7b-3c93-4d68-9497-dd0e91351f72 ro  quiet
echo	'Loading initial ramdisk ...'
initrd	/boot/kernel26.img

Burninate!

Offline

#7 2012-06-17 14:50:20

Revelation60
Member
From: The Netherlands
Registered: 2009-03-19
Posts: 158
Website

Re: Kernel not booting with "alloc magic is broken"

I see what you mean, I generated a new grub.cfg, and rebooted the system (vmlinuz26 must have been a symlink, because I checked my kernel version regularly and that was fine). I am guessing a forced fsck is the culprit and deleted some files this morning. Anyway, now I get all kinds of file not found errors. It seems like my partition is messed up beyond help and a reinstall is in order sad

Last edited by Revelation60 (2012-06-17 14:53:20)

Offline

#8 2012-06-17 17:12:49

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Kernel not booting with "alloc magic is broken"

A reinstall is a bit drastic (assuming that the rest of your Arch install is still intact). Simply try booting from an Arch livecd, chroot into your existing install and reinstall the kernel and bootloader (and fix the bootloader config obviously).

Last edited by Gcool (2012-06-17 17:14:37)


Burninate!

Offline

#9 2012-06-18 06:43:05

Revelation60
Member
From: The Netherlands
Registered: 2009-03-19
Posts: 158
Website

Re: Kernel not booting with "alloc magic is broken"

You're probably right. I see now that my grub2 is kind of messed up. When I reinstalled grub2, I still see one "file not found /boot/something" that flashes before I get to the menu. It disappears too quickly for me to read the entire error, but of course I want to know what it says. Have you got any idea where grub stores logs or how I can freeze grub pre-menu?

edit: never mind, the error had to do with this harmless bug: https://bugs.archlinux.org/task/29043

Last edited by Revelation60 (2012-06-18 13:34:55)

Offline

Board footer

Powered by FluxBB