Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 320104 Details for
Bug 345873
dev-util/valgrind-3.5.0 aborts on AMD Thunderbird-like (i686, cpuid=1) processors
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for glibc
glibc-2.11.3-valgrind_on_cpuid1.patch (text/plain), 842 bytes, created by
Petr Pisar
on 2012-08-02 18:03:37 UTC
(
hide
)
Description:
Fix for glibc
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2012-08-02 18:03:37 UTC
Size:
842 bytes
patch
obsolete
>Remove cpuid assert because of valigrind > >Stolen from Debian eglibc_2.11.3-3.diff.gz. > ><https://bugs.gentoo.org/show_bug.cgi?id=345873> > >diff --git a/sysdeps/x86_64/cacheinfo.c b/sysdeps/x86_64/cacheinfo.c >index 5422037..1debf12 100644 >--- a/sysdeps/x86_64/cacheinfo.c >+++ b/sysdeps/x86_64/cacheinfo.c >@@ -254,7 +254,13 @@ intel_check_word (int name, unsigned int value, bool *has_level_2, > static long int __attribute__ ((noinline)) > handle_intel (int name, unsigned int maxidx) > { >- assert (maxidx >= 2); >+ if (maxidx < 2) >+ { >+ /* This should never happen as all Intel i686 CPU support a CPUID >+ level of 2 minimum. However valgrind sometimes load the i686 >+ library with a P55C CPUID. Return 0 in that case. */ >+ return 0; >+ } > > /* OK, we can use the CPUID instruction to get all info about the > caches. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 345873
: 320104