When installing this version of grub it compiles fine, but when moving files from /var/tmp/portage/grub-0.95.20040823/image/ to the real destination I get a segmentation fault output og emerge grub >>> Completed installing into /var/tmp/portage/grub-0.95.20040823/image/ >>> Merging sys-boot/grub-0.95.20040823 to / * * Your boot partition was not mounted as /boot, but portage * was able to mount it without additional intervention. * Files will be installed there for grub to function correctly. * --- /bin/ >>> /bin/mbchk --- /lib/ --- /lib/grub/ --- /lib/grub/i386-pc/ >>> /lib/grub/i386-pc/e2fs_stage1_5 >>> /lib/grub/i386-pc/stage2_eltorito >>> /lib/grub/i386-pc/ufs2_stage1_5 >>> /lib/grub/i386-pc/iso9660_stage1_5 >>> /lib/grub/i386-pc/jfs_stage1_5 >>> /lib/grub/i386-pc/xfs_stage1_5 >>> /lib/grub/i386-pc/minix_stage1_5 >>> /lib/grub/i386-pc/fat_stage1_5 >>> /lib/grub/i386-pc/vstafs_stage1_5 >>> /lib/grub/i386-pc/stage1 >>> /lib/grub/i386-pc/stage2 >>> /lib/grub/i386-pc/reiserfs_stage1_5 >>> /lib/grub/i386-pc/ffs_stage1_5 --- /usr/ --- /usr/lib/ --- /usr/lib/grub/ >>> /usr/lib/grub/pxegrub >>> /usr/lib/grub/stage2.netboot >>> /usr/lib/grub/nbgrub >>> /usr/lib/grub/stage2 --- /usr/share/ --- /usr/share/doc/ --- /usr/share/doc/grub-0.95.20040823/ >>> /usr/share/doc/grub-0.95.20040823/grub.conf.sample.gz >>> /usr/share/doc/grub-0.95.20040823/README.gz >>> /usr/share/doc/grub-0.95.20040823/THANKS.gz >>> /usr/share/doc/grub-0.95.20040823/TODO.gz >>> /usr/share/doc/grub-0.95.20040823/NEWS.gz >>> /usr/share/doc/grub-0.95.20040823/COPYING.gz >>> /usr/share/doc/grub-0.95.20040823/AUTHORS.gz >>> /usr/share/doc/grub-0.95.20040823/BUGS.gz >>> /usr/share/doc/grub-0.95.20040823/ChangeLog.gz --- /usr/share/man/ --- /usr/share/man/man1/ >>> /usr/share/man/man1/mbchk.1.gz --- /usr/share/man/man8/ >>> /usr/share/man/man8/grub-install.8.gz >>> /usr/share/man/man8/grub-md5-crypt.8.gz >>> /usr/share/man/man8/grub.8.gz >>> /usr/share/man/man8/grub-terminfo.8.gz --- /usr/share/info/ >>> /usr/share/info/multiboot.info.gz >>> /usr/share/info/grub.info.gz --- /boot/ --- /boot/grub/ Segmentation fault Assertion failure in journal_start() at transaction.c:251: "handle->h_transaction->t_journal == journal" kernel BUG at transaction.c:251! invalid operand: 0000 CPU: 1 EIP: 0010:[<c02477a3>] Tainted: P EFLAGS: 00010282 eax: 0000006c ebx: c38f0880 ecx: c014fd1c edx: 00000001 esi: c03d9064 edi: d3b61e00 ebp: c38f0880 esp: dc3b1ecc ds: 0018 es: 0018 ss: 0018 Process emerge (pid: 24001, stackpage=dc3b1000) Stack: c03d7890 c03d4558 c03d4afd 000000fb c03d9064 fffffff3 000081b6 c38f0910 c0242d92 d3b61e00 00000021 000001f0 fffffff3 000081b6 c38f0910 c38f0880 c0218125 c38f0880 c392ae00 000081b6 dc3b0000 c392ae00 00008242 c392af00 Call Trace: [<c0242d92>] [<c0218125>] [<c021883c>] [<c0208cde>] [<c020911b>] [<c01c6683>] Code: 0f 0b fb 00 fd 4a 3d c0 ff 43 0c 89 d8 8b 5c 24 14 8b 74 24 Reproducible: Always Steps to Reproduce: 1.emerge grub 2. 3. Actual Results: it compiled fine, but failing when moving files from var/tmp/portage/grub-0.95.20040823/image/ to the real destination Expected Results: should not segfault when moving files Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.4.25-lck1) ================================================================= System uname: 2.4.25-lck1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.gentoo.skynet.be/pub/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acl acpi adns alsa apache2 apm avi berkdb bindist bonobo caps cdr crypt cscope cups curl dedicated dga directfb divx doc dvb dvd dvdr emacs emacs-w3 encode esd ethereal evo faad fam fbcon firebird flac flash foomaticdb freetds gb gd gdbm ggi gif gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml imap imlib innodb ipv6 jabber jack java jikes joystick jpeg kerberos ladcca lcms ldap leim libg++ libgda libwww lirc mad maildir matroska mbox mcal memlimit mikmod mmx motif mozilla mpeg msn mule mysql nas ncurses nls oci8 odbc oggvorbis opengl oscar oss pam pda pdflib perl pic plotutils png postgres ppds python quicktime readline ruby samba sasl scanner sdl slang slp socks5 speex spell sqlite sse ssl svga tcltk tcpd tetex theora tiff truetype unicode usb videos wmf wxwindows x86 xface xinerama xml xml2 xmms xosd xv xvid zlib"
hmm, it works for me. I have a few suggestions for what to do: upgrade linux-headers and recompile glibc, and try again. upgrade to a newer kernel. This reason for this is that it says: "kernel BUG at transaction.c:251!"
Thanks I will try these things. I have googled a bit around. It seems that it is a more general problem, not grub specific, so I guess this bug report can be closed.
Closing as INVALID due to use of an unsupported kernel with a fairly nasty bug - I'd suggest instead gentoo-sources, perhaps. If that fixes things for you, you might want to tell whoever is in charge of that kernel patchset that their transaction.c patch is bad.
I think it was more likely caused by a corruption of the journal. I have removed the journal from my boot device and now it works. I will try to create a new journal again. But it has worked flawlessly for years(and also since I changed to 2.4.25-lck). Right now I am trying to convert a promise fakeraid to use dmraid so I can use a 2.6.x kernel.