public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/14229] New: strtok_r() doesn't work with x32
@ 2012-06-13 16:11 vapier at gentoo dot org
  2012-06-13 17:41 ` [Bug libc/14229] " hjl.tools at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vapier at gentoo dot org @ 2012-06-13 16:11 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14229

             Bug #: 14229
           Summary: strtok_r() doesn't work with x32
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P1
         Component: libc
        AssignedTo: hjl.tools@gmail.com
        ReportedBy: vapier@gentoo.org
                CC: drepper.fsp@gmail.com
    Classification: Unclassified
            Target: x86_64-linux-gnux32


tested the patched glibc-2.15 as well as the latest git mainline

$ cat test.c
#include <stdio.h>
#include <string.h>
int main() {
    char line[] = "udf 75868 1 - Live 0xffffffffa0bfb000\n";
    char *saveptr, *tok = strtok_r(line, " \t", &saveptr);
    printf("tok: {%s}\nshould be: {udf}\n", tok);
    return 0;
}

$ gcc -Wall test.c -m64 && ./a.out
tok: {udf}
should be: {udf}

$ gcc -Wall test.c -m32 && ./a.out
tok: {udf}
should be: {udf}

$ gcc -Wall test.c -mx32 && ./a.out
tok: {}
should be: {udf}

-- 
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

end of thread, other threads:[~2014-06-19 14:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13 16:11 [Bug libc/14229] New: strtok_r() doesn't work with x32 vapier at gentoo dot org
2012-06-13 17:41 ` [Bug libc/14229] " hjl.tools at gmail dot com
2012-06-14 17:42 ` hjl.tools at gmail dot com
2012-06-14 18:31 ` vapier at gentoo dot org
2014-06-19 14:31 ` 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).