This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/20647] GLIBC quitting every program - glibc on Pentium-S leads to assertion: "maxidx >= 2"
- From: "ralph at gauernet dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 30 Sep 2016 07:19:09 +0000
- Subject: [Bug libc/20647] GLIBC quitting every program - glibc on Pentium-S leads to assertion: "maxidx >= 2"
- Auto-submitted: auto-generated
- References: <bug-20647-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20647
--- Comment #5 from ralph at gauernet dot de ---
Looking at the snippet
...
if (!inclusive_cache)
{
if (threads_l2 > 0)
core /= threads_l2;
shared += core;
}
...
with both "core" and "shared" being initialized with the return value of
"handle_intel":
in case of return value of 0:
core = 0/xxx = 0
shared = 0+0 = 0
in case of return value -1
core = -1/xxx = yyy
shared = -1 + -1 = -2
because of the later use of these variables their value is indifferent
as long it is below or equal to zero.
So "0" as return value of "handle_intel" seems ok to me.
--
You are receiving this mail because:
You are on the CC list for the bug.