Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623884 - sys-libs/glibc-2.23 cacheinfo.c handle_intel() errors out on 486/586 processors
Summary: sys-libs/glibc-2.23 cacheinfo.c handle_intel() errors out on 486/586 processors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.25
  Show dependency tree
 
Reported: 2017-07-05 16:35 UTC by tedheadster
Modified: 2017-10-19 19:27 UTC (History)
0 users

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


Attachments
Patch to glibc-2.23/sysdeps/x86_64/cacheinfo.c (cacheinfo.patch,427 bytes, patch)
2017-07-05 16:35 UTC, tedheadster
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tedheadster 2017-07-05 16:35:53 UTC
Created attachment 480844 [details, diff]
Patch to glibc-2.23/sysdeps/x86_64/cacheinfo.c

This bug presumes we support ancient 32 bit i486/i586 processors.

The problem has been fixed in upstream glibc-2.25 (https://sourceware.org/bugzilla/show_bug.cgi?id=20647#attach_9539). Backporting the trivial patch is requested.

In sysdeps/x86_64/cacheinfo.c (called from 32bit i386 systems, oddly) it calls handle_intel(). It immediately does an "assert(maxidx >= 2)". This fails on i486 and i586 processors.

Unfortunately, Gentoo /sbin/init uses /lib/libc.so.6, so the system panics when init gets a general protection fault and dies on the assert(). The patched version returns -1 instead of calling assert().
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2017-09-11 10:03:04 UTC
We'll stabilize 2.25 soon, so this makes no sense anymore. Just use the newest 2.25 in the meantime.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2017-10-19 19:27:00 UTC
Fixed in 2.25