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

            Bug ID: 27178
           Summary: optimization generates a segfault or bus error
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: pavel.sa...@gmail.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

- Optimized binary with -O1 or -O2 generates a segfault or bus error on two
different installations (opensuse Leap 42.1 and 13.2), but not on opensuse 13.1
- Non-optimized binary runs cleanly
- Linking with -ldmalloc finds no memory issues
- Compiled with gcc, either optimized or not, the binary runs cleanly

Platform:

pavel@sparse{gridutils}uname -a
Linux sparse 4.4.1-2.gddc5d70-default #1 SMP PREEMPT Tue Feb 2 16:31:39 UTC
2016 (ddc5d70) x86_64 x86_64 x86_64 GNU/Linux
pavel@sparse{gridutils}clang --version
clang version 3.7.0 (tags/RELEASE_370/final 246586)
Target: x86_64-suse-linux
Thread model: posix

How to reproduce:

1. svn checkout https://github.com/sakov/gridutils-c
2. cd gridutils-c/trunk/gridutils
3. ./configure
4. make
5. cd test
6. ../getnodes gridpoints_DD-raw.txt -i DD -o DD -v > gridpoints_DD.txt
7. ../getnodes gridpoints_DD.txt -i DD -o CO > gridpoints_CO.txt
8. ../getnodes gridpoints_CO.txt -i CO -o CE > gridpoints_CE.txt
9. ../getnodes gridpoints_CE.txt -i CE -o CO > gridpoints_CO2.txt

gets: Segmentation fault

Cheers,
Pavel Sakov

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to