[LLVMbugs] [Bug 24000] New: clang 3.6.1 crashes when building codeblocks on FreeBSD

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 30 20:14:02 PDT 2015


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

            Bug ID: 24000
           Summary: clang 3.6.1 crashes when building codeblocks on
                    FreeBSD
           Product: clang
           Version: 3.6
          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

FreeBSD current, clang from base system:

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

Trying to compile codeblocks (http://www.codeblocks.org/)

---
/bin/sh ../../libtool --tag=CXX    --mode=compile c++ -DHAVE_CONFIG_H -I.
-I../../src/include   -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-pthread -D_THREAD_SAFE  -I../../src/include 
-I../../src/sdk/wxscintilla/include  -I../../src/sdk/wxpropgrid/include 
-I../../src/include/tinyxml  -I../../src/include/scripting/include 
-I../../src/include/scripting/bindings  -I../../src/include/scripting/sqplus 
-I../../src/include/mozilla_chardet  -I../../src/include/mozilla_chardet/mfbt 
-I../../src/include/mozilla_chardet/nsprpub/pr/include 
-I../../src/include/mozilla_chardet/xpcom 
-I../../src/include/mozilla_chardet/xpcom/base 
-I../../src/include/mozilla_chardet/xpcom/glue -I/usr/local/include -ansi
-DTIXML_USE_STL  -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe -march=nocona 
-fstack-protector -fno-strict-aliasing  -std=c++11  -fPIC -DPIC -fexceptions
-MT cbthreadpool.lo -MD -MP -MF .deps/cbthreadpool.Tpo -c -o cbthreadpool.lo
cbthreadpool.cpp
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../../src/include
-I/usr/local/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-pthread -D_THREAD_SAFE -I../../src/include -I../../src/sdk/wxscintilla/include
-I../../src/sdk/wxpropgrid/include -I../../src/include/tinyxml
-I../../src/include/scripting/include -I../../src/include/scripting/bindings
-I../../src/include/scripting/sqplus -I../../src/include/mozilla_chardet
-I../../src/include/mozilla_chardet/mfbt
-I../../src/include/mozilla_chardet/nsprpub/pr/include
-I../../src/include/mozilla_chardet/xpcom
-I../../src/include/mozilla_chardet/xpcom/base
-I../../src/include/mozilla_chardet/xpcom/glue -I/usr/local/include -ansi
-DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe -march=nocona
-fstack-protector -fno-strict-aliasing -std=c++11 -fPIC -DPIC -fexceptions -MT
cbthreadpool.lo -MD -MP -MF .deps/cbthreadpool.Tpo -c cbthreadpool.cpp  -fPIC
-DPIC -o .libs/cbthreadpool.o
Assertion failed: (EST == EST_Dynamic && "EST case not considered earlier."),
function CalledDecl, file
/usr/src/lib/clang/libclangsema/../../../contrib/llvm/tools/clang/lib/Sema/SemaDeclCXX.cpp,
line 210.
Stack dump:
0.    Program arguments: /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd11.0
-emit-obj -disable-free -main-file-name cbthreadpool.cpp -mrelocation-model pic
-pic-level 2 -mthread-model posix -mdisable-fp-elim -relaxed-aliasing
-menable-no-infs -menable-no-nans -menable-unsafe-fp-math -ffp-contract=fast
-ffast-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu
nocona -dwarf-column-info -coverage-file
/ssd/batchports-mem/devel/codeblocks/work/codeblocks-13.12/src/sdk/.libs/cbthreadpool.o
-resource-dir /usr/bin/../lib/clang/3.6.1 -dependency-file
.deps/cbthreadpool.Tpo -sys-header-deps -MP -MT cbthreadpool.lo -D
HAVE_CONFIG_H -D _FILE_OFFSET_BITS=64 -D _LARGE_FILES -D __WXGTK__ -D
_THREAD_SAFE -D TIXML_USE_STL -D CB_AUTOCONF -D PIC -D PIC -I . -I
../../src/include -I /usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I
/usr/local/include/wx-2.8 -I ../../src/include -I
../../src/sdk/wxscintilla/include -I ../../src/sdk/wxpropgrid/include -I
../../src/include/tinyxml -I ../../src/include/scripting/include -I
../../src/include/scripting/bindings -I ../../src/include/scripting/sqplus -I
../../src/include/mozilla_chardet -I ../../src/include/mozilla_chardet/mfbt -I
../../src/include/mozilla_chardet/nsprpub/pr/include -I
../../src/include/mozilla_chardet/xpcom -I
../../src/include/mozilla_chardet/xpcom/base -I
../../src/include/mozilla_chardet/xpcom/glue -I /usr/local/include
-internal-isystem /usr/include/c++/v1 -O2 -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir
/ssd/batchports-mem/devel/codeblocks/work/codeblocks-13.12/src/sdk
-ferror-limit 19 -fmessage-length 0 -pthread -stack-protector 1 -mstackrealign
-fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-vectorize-loops -vectorize-slp -o .libs/cbthreadpool.o -x c++ cbthreadpool.cpp 
1.    ../../src/include/cbthreadpool.h:180:33: current parser token ';'
2.    ../../src/include/cbthreadpool.h:19:1: parsing struct/union/class body
'cbThreadPool'
c++: error: unable to execute command: Abort trap
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525
Target: x86_64-unknown-freebsd11.0
Thread model: posix
c++: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed
source, and associated run script.
c++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/cbthreadpool-737e5c.cpp
c++: note: diagnostic msg: /tmp/cbthreadpool-737e5c.sh
c++: note: diagnostic msg: 

********************
*** Error code 1

Stop.
---

https://people.freebsd.org/~amdmi3/cbthreadpool-737e5c.cpp
https://people.freebsd.org/~amdmi3/cbthreadpool-737e5c.sh

clang head, however, doesn't have this problem, just reporting c++ error
(below), so I guess the bug may already be fixed, but reporting anyway just to
be safe.

---
/bin/sh ../../libtool --tag=CXX    --mode=compile clang++-devel -DHAVE_CONFIG_H
-I. -I../../src/include   -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-pthread -D_THREAD_SAFE  -I../../src/include 
-I../../src/sdk/wxscintilla/include  -I../../src/sdk/wxpropgrid/include 
-I../../src/include/tinyxml  -I../../src/include/scripting/include 
-I../../src/include/scripting/bindings  -I../../src/include/scripting/sqplus 
-I../../src/include/mozilla_chardet  -I../../src/include/mozilla_chardet/mfbt 
-I../../src/include/mozilla_chardet/nsprpub/pr/include 
-I../../src/include/mozilla_chardet/xpcom 
-I../../src/include/mozilla_chardet/xpcom/base 
-I../../src/include/mozilla_chardet/xpcom/glue -I/usr/local/include -ansi
-DTIXML_USE_STL  -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe  -fstack-protector
-fno-strict-aliasing  -std=c++11  -fPIC -DPIC -fexceptions -MT cbthreadpool.lo
-MD -MP -MF .deps/cbthreadpool.Tpo -c -o cbthreadpool.lo cbthreadpool.cpp
libtool: compile:  clang++-devel -DHAVE_CONFIG_H -I. -I../../src/include
-I/usr/local/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-pthread -D_THREAD_SAFE -I../../src/include -I../../src/sdk/wxscintilla/include
-I../../src/sdk/wxpropgrid/include -I../../src/include/tinyxml
-I../../src/include/scripting/include -I../../src/include/scripting/bindings
-I../../src/include/scripting/sqplus -I../../src/include/mozilla_chardet
-I../../src/include/mozilla_chardet/mfbt
-I../../src/include/mozilla_chardet/nsprpub/pr/include
-I../../src/include/mozilla_chardet/xpcom
-I../../src/include/mozilla_chardet/xpcom/base
-I../../src/include/mozilla_chardet/xpcom/glue -I/usr/local/include -ansi
-DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe -fstack-protector
-fno-strict-aliasing -std=c++11 -fPIC -DPIC -fexceptions -MT cbthreadpool.lo
-MD -MP -MF .deps/cbthreadpool.Tpo -c cbthreadpool.cpp  -fPIC -DPIC -o
.libs/cbthreadpool.o
In file included from cbthreadpool.cpp:18:
../../src/include/cbthreadpool.h:112:11: error: exception specification of
overriding function is more lax than base version
    class cbWorkerThread : public wxThread
          ^
/usr/include/c++/v1/memory:1409:22: note: in instantiation of template class
'std::__1::allocator<cbThreadPool::cbWorkerThread *>' requested here
    typedef typename allocator_type::value_type value_type;
                     ^
/usr/include/c++/v1/vector:337:22: note: in instantiation of template class
'std::__1::allocator_traits<std::__1::allocator<cbThreadPool::cbWorkerThread *>
>' requested here
    typedef typename __alloc_traits::size_type       size_type;
                     ^
/usr/include/c++/v1/vector:478:15: note: in instantiation of template class
'std::__1::__vector_base<cbThreadPool::cbWorkerThread *,
std::__1::allocator<cbThreadPool::cbWorkerThread *> >' requested
      here
    : private __vector_base<_Tp, _Allocator>
              ^
../../src/include/cbthreadpool.h:180:24: note: in instantiation of template
class 'std::__1::vector<cbThreadPool::cbWorkerThread *,
std::__1::allocator<cbThreadPool::cbWorkerThread *> >' requested here
    WorkerThreadsArray m_threads; // the working threads are stored here
                       ^
/usr/local/include/wx-2.8/wx/thread.h:563:13: note: overridden virtual function
is here
    virtual ~wxThread();
            ^
In file included from cbthreadpool.cpp:18:
../../src/include/cbthreadpool.h:188:29: error: exception specification is not
available until end of class definition
    CountedPtr<wxSemaphore> m_semaphore; // used to synchronise the Worker
Threads
                            ^
../../src/include/cbthreadpool.h:188:29: error: exception specification is not
available until end of class definition
../../src/include/cbthreadpool.h:98:9: error: exception specification is not
available until end of class definition
        ~CountedPtr() throw();
        ^
../../src/include/cbthreadpool.h:223:22: note: in instantiation of member
function 'cbThreadPool::CountedPtr<wxSemaphore>::~CountedPtr' requested here
inline cbThreadPool::cbThreadPool(wxEvtHandler *owner, int id, int
concurrentThreads, unsigned int stackSize)
                     ^
4 errors generated.
---

-- 
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/20150701/9f233541/attachment.html>


More information about the llvm-bugs mailing list