public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ports/13718] New: noinl-tester and inl-tester tests fail to pass on alpha
@ 2012-02-21 6:25 aurelien at aurel32 dot net
2012-02-22 2:18 ` [Bug ports/13718] " jsm28 at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: aurelien at aurel32 dot net @ 2012-02-21 6:25 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13718
Bug #: 13718
Summary: noinl-tester and inl-tester tests fail to pass on
alpha
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: ports
AssignedTo: unassigned@sourceware.org
ReportedBy: aurelien@aurel32.net
CC: carlos@systemhalted.org, roland@gnu.org
Classification: Unclassified
Host: alphaev68-unknown-linux-gnu
Target: alphaev68-unknown-linux-gnu
Build: alphaev68-unknown-linux-gnu
noinl-tester and inl-tester tests fail to pass on alpha with the following type
of error:
strncat flunked test 14
n1=0, n2=0, n3=2, n4=0,
buf1=61,00,00,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62
Looking more in details, the __stnxcpy implementation does not work if the n
argument equals UINT_MAX or slightly less (i.e. strcat emulation), and if the
two strings are not co-aligned.
This is due to the following code in stnxcpy.S, adding a bias to the n value
(a2), which makes it overflow.
/* Are source and destination co-aligned? */
xor a0, a1, t1 # e0 :
and a0, 7, t0 # .. e1 : find dest misalignment
and t1, 7, t1 # e0 :
addq a2, t0, a2 # .. e1 : bias count by dest misalignment
subq a2, 1, a2 # e0 :
and a2, 7, t2 # e1 :
srl a2, 3, a2 # e0 : a2 = loop counter = (count - 1)/8
addq zero, 1, t10 # .. e1 :
sll t10, t2, t10 # e0 : t10 = bitmask of last count byte
bne t1, $unaligned # .. e1 :
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ports/13718] noinl-tester and inl-tester tests fail to pass on alpha
2012-02-21 6:25 [Bug ports/13718] New: noinl-tester and inl-tester tests fail to pass on alpha aurelien at aurel32 dot net
@ 2012-02-22 2:18 ` jsm28 at gcc dot gnu.org
2012-06-06 18:54 ` rth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-22 2:18 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13718
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at sourceware dot org
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ports/13718] noinl-tester and inl-tester tests fail to pass on alpha
2012-02-21 6:25 [Bug ports/13718] New: noinl-tester and inl-tester tests fail to pass on alpha aurelien at aurel32 dot net
2012-02-22 2:18 ` [Bug ports/13718] " jsm28 at gcc dot gnu.org
@ 2012-06-06 18:54 ` rth at gcc dot gnu.org
2012-06-07 15:49 ` rth at gcc dot gnu.org
2014-06-26 15:20 ` fweimer at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: rth at gcc dot gnu.org @ 2012-06-06 18:54 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13718
Richard Henderson <rth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu.org
AssignedTo|unassigned at sourceware |rth at gcc dot gnu.org
|dot org |
--- Comment #1 from Richard Henderson <rth at gcc dot gnu.org> 2012-06-06 18:54:29 UTC ---
Mine.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ports/13718] noinl-tester and inl-tester tests fail to pass on alpha
2012-02-21 6:25 [Bug ports/13718] New: noinl-tester and inl-tester tests fail to pass on alpha aurelien at aurel32 dot net
2012-02-22 2:18 ` [Bug ports/13718] " jsm28 at gcc dot gnu.org
2012-06-06 18:54 ` rth at gcc dot gnu.org
@ 2012-06-07 15:49 ` rth at gcc dot gnu.org
2014-06-26 15:20 ` fweimer at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: rth at gcc dot gnu.org @ 2012-06-07 15:49 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13718
Richard Henderson <rth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Richard Henderson <rth at gcc dot gnu.org> 2012-06-07 15:49:05 UTC ---
commit 8e2f4e971fa048f55428ca49c3a55fa5dc03bd52
Author: Richard Henderson <rth@twiddle.net>
Date: Wed Jun 6 14:45:45 2012 -0700
alpha: Fix [BZ #13718]
The routines expect to be able to bias the count by a small number.
If the count is near -1ull, the count will overflow. Since we cannot
use the whole 64-bit address space, bound the count to LONG_MAX.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug ports/13718] noinl-tester and inl-tester tests fail to pass on alpha
2012-02-21 6:25 [Bug ports/13718] New: noinl-tester and inl-tester tests fail to pass on alpha aurelien at aurel32 dot net
` (2 preceding siblings ...)
2012-06-07 15:49 ` rth at gcc dot gnu.org
@ 2014-06-26 15:20 ` fweimer at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-26 15:20 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=13718
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-26 15:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-21 6:25 [Bug ports/13718] New: noinl-tester and inl-tester tests fail to pass on alpha aurelien at aurel32 dot net
2012-02-22 2:18 ` [Bug ports/13718] " jsm28 at gcc dot gnu.org
2012-06-06 18:54 ` rth at gcc dot gnu.org
2012-06-07 15:49 ` rth at gcc dot gnu.org
2014-06-26 15:20 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).