[LLVMbugs] [Bug 23999] New: Clang trunk segfault when compiling sdl2_gfx

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 30 16:15:21 PDT 2015


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

            Bug ID: 23999
           Summary: Clang trunk segfault when compiling sdl2_gfx
           Product: clang
           Version: trunk
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: amdmi3 at amdmi3.ru
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

On FreeBSD 11, while compiling sdl2_gfx package
(http://www.ferzkopp.net/Software/SDL_gfx-2.0/) with MMX support enabled
(CFLAGS=-DMMX):

---
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (trunk)
Target: x86_64-portbld-freebsd11.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
libtool: compile:  clang-devel -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL2_gfx\" -DVERSION=\"1.0.1\"
-DSIZEOF_LONG=8 -I. -O2 -pipe -DUSE_MMX -fstack-protector -fno-strict-aliasing
-O -DUSE_MMX -I/usr/local/include/SDL2 -I/usr/local/include -D_REENTRANT
-D_THREAD_SAFE -MT SDL2_gfxPrimitives.lo -MD -MP -MF
.deps/SDL2_gfxPrimitives.Tpo -c SDL2_gfxPrimitives.c -o SDL2_gfxPrimitives.o
>/dev/null 2>&1
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/SDL2_imageFilter-12485b.c
clang: note: diagnostic msg: /tmp/SDL2_imageFilter-12485b.sh
clang: note: diagnostic msg: 

********************
Makefile:426: recipe for target 'SDL2_imageFilter.lo' failed
---

Happens both with system clang 3.6.1:

FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525
Target: x86_64-unknown-freebsd11.0
Thread model: posix

and clang 3.7 (r236894) from ports:

clang version 3.7.0 (trunk)
Target: x86_64-portbld-freebsd11.0
Thread model: posix

Mentioned files attached.

For the note, the problem does not show itself if -march=nocona is added to
compiler flags.

-- 
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/20150630/905d8f33/attachment.html>


More information about the llvm-bugs mailing list