Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88109 - grub-0.95.20040823: Segmentation fault in a uclibc env (hardened) - patch included
Summary: grub-0.95.20040823: Segmentation fault in a uclibc env (hardened) - patch inc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Eric Edgar (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-05 18:37 UTC by Christian Zoffoli (RETIRED)
Modified: 2005-04-06 08:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
just a little fix (grub-0.95.20040823-hardened.patch,655 bytes, patch)
2005-04-05 18:39 UTC, Christian Zoffoli (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Zoffoli (RETIRED) gentoo-dev 2005-04-05 18:37:35 UTC
at the end of the ebuild process I've noticed some problems:

1)
....
strip: i386-pc-linux-uclibc-strip --strip-unneeded
strip: i386-pc-linux-uclibc-strip --strip-unneeded
   sbin/grub
        sbin/grub will contain runtime text relocations
Text relocations require a lot of extra work to be preformed by the
dynamic linker which will cause serious performance impact on IA-32
and might not function properly on other architectures hppa for example.
If you are a programmer please take a closer look at this package and
consider writing a patch which addresses this problem.
   bin/mbchk
>>> Completed installing grub-0.95.20040823 into /var/tmp/portage/grub-0.95.20040823/image/
....

2)
>>> original instance of package unmerged safely.
 * Linking from new grub.conf name to menu.lst
`/boot/grub/menu.lst': File exists
 * Copying files from /usr/lib/grub to /boot
cannot stat `/usr/lib/grub/*/*': No such file or directory
/usr/portage/sys-boot/grub/grub-0.95.20040823.ebuild: line 120: 15921 Segmentation fault      /sbin/grub --batch --device-map=/boot/grub/device.map </boot/grub/grub.conf >/dev/null 2>&1
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies ...
 *  Service 'firehol' already provided by 'firewall'!;

>>> Merging sys-boot/grub-0.95.20040823 to /


I've fixed the problem with a little patch



Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
segmentation fault  


Portage 2.0.51.19 (uclibc/x86/hardened, gcc-3.3.5, uclibc-0.9.27-r0, 
2.6.10-hardened-r1 i686) 
================================================================= 
System uname: 2.6.10-hardened-r1 i686 VIA Ezra 
Gentoo Base System version 1.6.9 
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr  5 2005, 
03:39:33)] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.4-r1 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.5, 1.6.3, 1.9.4, 1.8.5-r3, 1.7.9-r1, 1.4_p6 
sys-devel/binutils:  2.15.92.0.2-r7 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-Os -pipe" 
CHOST="i386-pc-linux-uclibc" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-Os -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig buildpkg ccache digest distlocks nodoc noinfo 
noman sandbox sfperms strict" 
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ 
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo 
ftp://mirror.switch.ch/mirror/gentoo/" 
MAKEOPTS="-j1" 
PKGDIR="/usr/portage/packages/x86/embedded" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://10.0.4.11/gentoo-portage" 
USE="apache2 apm berkdb crypt dhcp gdbm hardened hostap-noplx justify libwww 
make-busybox-symlinks multicall ncurses oggvorbis pcmcia pic pie png pnp 
postgres readline slang snmp speex ssl tcpd uclibc x86 zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Christian Zoffoli (RETIRED) gentoo-dev 2005-04-05 18:39:28 UTC
Created attachment 55417 [details, diff]
just a little fix
Comment 2 SpanKY gentoo-dev 2005-04-06 05:27:39 UTC
does 0.96-r1 work ?
Comment 3 Christian Zoffoli (RETIRED) gentoo-dev 2005-04-06 05:58:33 UTC
0.96-r1 works fine
Comment 4 SpanKY gentoo-dev 2005-04-06 08:43:44 UTC
ok then ...