From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26392 invoked by alias); 13 Jun 2012 16:11:52 -0000 Received: (qmail 26373 invoked by uid 22791); 13 Jun 2012 16:11:50 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Jun 2012 16:11:36 +0000 From: "vapier at gentoo dot org" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/14229] New: strtok_r() doesn't work with x32 Date: Wed, 13 Jun 2012 16:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vapier at gentoo dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: hjl.tools at gmail dot com X-Bugzilla-Target-Milestone: 2.16 X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00072.txt.bz2 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 #include 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.