[llvm-bugs] [Bug 30843] New: clang -fsanitize breaks initial stdio stream orientation

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 31 03:46:00 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30843

            Bug ID: 30843
           Summary: clang -fsanitize breaks initial stdio stream
                    orientation
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Reported here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784222

richard at deodand:~/junk$ cat t.c
#include <stdio.h>
#include <wchar.h>

int main(void) {
  FILE *fp = fopen("/dev/null", "r");
  return printf("initial orientation: %d\n", fwide(fp, 0));
}
richard at deodand:~/junk$ clang-3.6 -fsanitize=address -o t t.c
richard at deodand:~/junk$ ./t
initial orientation: -1
richard at deodand:~/junk$ clang-3.6 -o t t.c
richard at deodand:~/junk$ ./t
initial orientation: 0
richard at deodand:~/junk$ gcc -o t t.c
richard at deodand:~/junk$ ./t
initial orientation: 0

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161031/cea0a73b/attachment.html>


More information about the llvm-bugs mailing list