strstr broken for some inputs on pre-SSE4 machines
Bug #655463 reported by
Steve Atwell
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Release Notes for Ubuntu |
Won't Fix
|
Undecided
|
Unassigned | ||
eglibc |
Fix Released
|
Medium
|
|||
eglibc (Ubuntu) |
Fix Released
|
High
|
Matthias Klose | ||
Lucid |
Fix Released
|
High
|
Matthias Klose | ||
Maverick |
Fix Released
|
High
|
Matthias Klose |
Bug Description
# lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04
# apt-cache policy libc6
libc6:
Installed: 2.11.1-0ubuntu7.2
Candidate: 2.11.1-0ubuntu7.2
The strstr function is broken for certain classes of inputs. This has already been reported in upstream glibc at http://
I've verified that libc6 2.11.1-0ubuntu7.2 on Lucid exhibits this broken behavior on a pre-SSE4 machine (a Xeon L5335).
I'm attaching Paul Pluzhnikov's code snippet from the upstream bug that demonstrates the broken behavior.
Changed in eglibc (Ubuntu Maverick): | |
status: | New → Confirmed |
Changed in eglibc (Ubuntu Lucid): | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → lucid-updates |
Changed in eglibc (Ubuntu Maverick): | |
importance: | Undecided → High |
milestone: | none → maverick-updates |
Changed in eglibc (Ubuntu Lucid): | |
status: | Confirmed → In Progress |
Changed in eglibc (Ubuntu Maverick): | |
status: | Confirmed → In Progress |
Changed in eglibc (Ubuntu Lucid): | |
assignee: | nobody → Matthias Klose (doko) |
Changed in eglibc (Ubuntu Maverick): | |
assignee: | nobody → Matthias Klose (doko) |
Changed in ubuntu-release-notes: | |
status: | New → Won't Fix |
Changed in eglibc: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
To post a comment you must log in.
Created attachment 5035
what appears to be minimal test case
Attached test case fails with glibc-2.11.1 and with current git trunk; passes with glibc-2.7.
The failure I see on SSE2 and SSE3 machines is:
BUG: 55 vs. 115
The bug does *not* show up on SSE4_2 machines (either 32 or 64-bit mode).