[llvm-bugs] [Bug 27178] New: optimization generates a segfault or bus error

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 1 05:11:32 PDT 2016


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: unassignedclangbugs at nondot.org
          Reporter: pavel.sakov at gmail.com
                CC: llvm-bugs at 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 at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160401/d0f71e5e/attachment.html>


More information about the llvm-bugs mailing list