[LLVMbugs] [Bug 12756] New: clang++ segfault building wxwigets

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 7 10:43:46 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12756

             Bug #: 12756
           Summary: clang++ segfault building wxwigets
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hackish at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


clang -v
FreeBSD clang version 3.0 (branches/release_30 142614) 20111021
Target: x86_64-unknown-freebsd9.0
Thread model: posix

uname -a
FreeBSD cl-t153-284cl 9.0-RELEASE-p1 FreeBSD 9.0-RELEASE-p1 #0: Sat May  5
20:40:48 UTC 2012     root at cl-t153-284cl:/usr/obj/usr/src/sys/GENERIC  amd64

When I try to build the /usr/ports/x11-toolkits/wxgtk29 ports using clang as my
compiler it segfaults.

/usr/ports/x11-toolkits/wxgtk29/work/wxWidgets-2.9.2/bk-deps clang++ -c -o
coredll_filectrl.o -I./.pch/wxprec_coredll -D__WXGTK__      -DWXBUILDING     
-I./src/regex  -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -Wall
-Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual
-D_FILE_OFFSET_BITS=64
-I/usr/ports/x11-toolkits/wxgtk29/work/wxWidgets-2.9.2/lib/wx/include/gtk2-unicode-2.9
-I./include -D_THREAD_SAFE -D_REENTRANT -I/usr/local/include/gtk-2.0
-I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0
-I/usr/local/include/cairo -I/usr/local/include/gdk-pixbuf-2.0
-I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0/
-I/usr/local/include -I/usr/local/include/glib-2.0
-I/usr/local/include/pixman-1 -I/usr/local/include/freetype2
-I/usr/local/include/libpng -I/usr/local/include/drm -DG_DISABLE_CAST_CHECKS
-I/usr/local/include -DWX_PRECOMP -pthread -D_THREAD_SAFE -D_THREAD_SAFE
-D_REENTRANT -I/usr/local/include/gtk-unix-print-2.0
-I/usr/local/include/gtk-2.0 -I/usr/local/include/atk-1.0
-I/usr/local/include/cairo -I/usr/local/include/gdk-pixbuf-2.0
-I/usr/local/include/pango-1.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/gio-unix-2.0/ -I/usr/local/include
-I/usr/local/include/glib-2.0 -I/usr/local/include/pixman-1
-I/usr/local/include/freetype2 -I/usr/local/include/libpng
-I/usr/local/include/drm -O2 -pipe -fno-strict-aliasing -fvisibility=hidden
-fvisibility-inlines-hidden ./src/gtk/filectrl.cpp
Stack dump:
0.      Program arguments: /usr/bin/clang++ -cc1 -triple
x86_64-unknown-freebsd9.0 -emit-obj -disable-free -main-file-name filectrl.cpp
-pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-momit-leaf-frame-pointer -coverage-file coredll_filectrl.o -resource-dir
/usr/bin/../lib/clang/3.0 -dependency-file coredll_filectrl.d -MT
coredll_filectrl.o -D __WXGTK__ -D WXBUILDING -D WXUSINGDLL -D WXMAKINGDLL_CORE
-D wxUSE_BASE=0 -D PIC -D _FILE_OFFSET_BITS=64 -D _THREAD_SAFE -D _REENTRANT -D
G_DISABLE_CAST_CHECKS -D WX_PRECOMP -D _THREAD_SAFE -D _THREAD_SAFE -D
_REENTRANT -I ./.pch/wxprec_coredll -I ./src/regex -I
/usr/ports/x11-toolkits/wxgtk29/work/wxWidgets-2.9.2/lib/wx/include/gtk2-unicode-2.9
-I ./include -I /usr/local/include/gtk-2.0 -I /usr/local/lib/gtk-2.0/include -I
/usr/local/include/atk-1.0 -I /usr/local/include/cairo -I
/usr/local/include/gdk-pixbuf-2.0 -I /usr/local/include/pango-1.0 -I
/usr/local/include/gio-unix-2.0/ -I /usr/local/include -I
/usr/local/include/glib-2.0 -I /usr/local/include/pixman-1 -I
/usr/local/include/freetype2 -I /usr/local/include/libpng -I
/usr/local/include/drm -I /usr/local/include -I
/usr/local/include/gtk-unix-print-2.0 -I /usr/local/include/gtk-2.0 -I
/usr/local/include/atk-1.0 -I /usr/local/include/cairo -I
/usr/local/include/gdk-pixbuf-2.0 -I /usr/local/include/pango-1.0 -I
/usr/local/lib/gtk-2.0/include -I /usr/local/include/gio-unix-2.0/ -I
/usr/local/include -I /usr/local/include/glib-2.0 -I
/usr/local/include/pixman-1 -I /usr/local/include/freetype2 -I
/usr/local/include/libpng -I /usr/local/include/drm -fmodule-cache-path
/var/tmp/clang-module-cache -O2 -Wall -Wundef -Wunused-parameter
-Wno-ctor-dtor-privacy -Woverloaded-virtual -fdeprecated-macro -ferror-limit 19
-fmessage-length 132 -fvisibility hidden -fvisibility-inlines-hidden -pthread
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
coredll_filectrl.o -x c++ ./src/gtk/filectrl.cpp 
1.      ./src/gtk/filectrl.cpp:171:1: current parser token 'void'
2.      ./src/gtk/filectrl.cpp:111:1: parsing function body 'SetWildcard'
clang++: error: unable to execute command: Segmentation fault: 11 (core dumped)
clang++: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang++: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang++: note: diagnostic msg: Preprocessed source(s) are located at:
clang++: note: diagnostic msg: /tmp/filectrl-ANgPlH.ii
gmake: *** [coredll_filectrl.o] Error 254
*** Error code 1

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list