Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16544 - valgrind and glibc compiled with pentium4 support can't run any app
Summary: valgrind and glibc compiled with pentium4 support can't run any app
Status: RESOLVED DUPLICATE of bug 24640
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-28 05:03 UTC by Matze Braun
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matze Braun 2003-02-28 05:03:57 UTC
I'm using a pentium optimized (stable x86) gentoo system (CFLAGS:
-march=pentium4 -O3 -pipe). I tried valgrind 1.0.4 and valgrind 1.9.3 but they
always fail. 

Reproducible: Always
Steps to Reproduce:
1. Install valgrind on a pentium4 compiled system
2. do "valgrind /usr/bin/ls"
Actual Results:  
[matze@taylor] ~ > valgrind /usr/bin/ls
==28516== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==28516== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==28516== Using valgrind-1.9.3, a program instrumentation system for x86-linux.
==28516== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==28516== Estimated CPU clock rate is 2704 MHz
==28516== For more details, rerun with: -v
==28516==
==28516==
==28516== Valgrind detected that your program requires
==28516== the following unimplemented functionality:
==28516==    x86 segment override (SEG=CS) prefix
==28516== This may be because the functionality is hard to implement,
==28516== or because no reasonable program would behave this way,
==28516== or because nobody has yet needed it.  In any case, let me know
==28516== (jseward@acm.org) and/or try to work around the problem, if you can.
==28516==
==28516== Valgrind has to exit now.  Sorry.  Bye!
==28516==
 
sched status:
 
Thread 1: status = Runnable, associated_mx = 0x0, associated_cv = 0x0
==28516==    at 0x4000A66D: call_init (in /lib/ld-2.3.1.so)
==28516==    by 0x4000A862: _dl_init_internal (in /lib/ld-2.3.1.so)
==28516==    by 0x40000ABC: (within /lib/ld-2.3.1.so)
 

Expected Results:  
starting and running ls without any error

USE="X gtk gnome gnome2 gtk2 cups java mysql -postgres -gpm xmms truetype -3dnow
sse sse2 mmx -svga dvd esd acpi dvd dga -directfb oggvorbis readline sdl xv pam"

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentiumpro -O2 -pipe"

glibc version 2.3.1-r2
Comment 1 SpanKY gentoo-dev 2003-02-28 05:17:51 UTC
what version of gcc ?
some versions are known to cause issues with 'arch=pentium4' with relation to
glibc and other packages
Comment 2 Matze Braun 2003-02-28 06:22:30 UTC
gcc 3.2.1-r6
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-28 10:05:59 UTC
Right, check the latest make.conf.  Known issue with gcc developers, you will
just have to learn to live with -march=pentium3.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-06 16:17:25 UTC
This needs to be fixed gcc side :(
Comment 5 witr 2003-08-06 08:35:30 UTC
Please be advised that the ebuild in bug 24640 resolves this issue.  I have these flags:  -O2 -march=pentium3 -mcpu=pentium4 -mfpmath=sse -finline-functions -fomit-frame-pointer -pipe, and I'm using gcc-3.2.3-r1 and glibc-2.3.2-r1.  With the valgrind-1.9.6 version I get the reported error.  With the valgrind-20030716 version everything seems to run correctly.
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-10-15 09:44:07 UTC

*** This bug has been marked as a duplicate of 24640 ***