<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Segmentation fault when building mariadb"
   href="https://llvm.org/bugs/show_bug.cgi?id=28626">28626</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segmentation fault when building mariadb
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>krejzi@email.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16774" name="attach_16774" title="clang diagnostic files">attachment 16774</a> <a href="attachment.cgi?id=16774&action=edit" title="clang diagnostic files">[details]</a></span>
clang diagnostic files

When building mariadb-1.0.16 on Linux, clang version 3.9.0 (branches/release_39
276108) crashes with the following output:

#0 0x00007f7af3c6f288 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/lib/libLLVM-3.9.so+0x4e0288)
#1 0x00007f7af3c6f876 (/usr/lib/libLLVM-3.9.so+0x4e0876)
#2 0x00007f7af5596410 (/lib/libpthread.so.0+0x11410)
#3 0x00007f7af4350ad8 (/usr/lib/libLLVM-3.9.so+0xbc1ad8)
#4 0x00007f7af42ea56a (/usr/lib/libLLVM-3.9.so+0xb5b56a)
#5 0x00007f7af42eb5b6 (/usr/lib/libLLVM-3.9.so+0xb5c5b6)
#6 0x00007f7af42eb933
llvm::InstructionCombiningPass::runOnFunction(llvm::Function&)
(/usr/lib/libLLVM-3.9.so+0xb5c933)
#7 0x00007f7af3d2fa5f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/lib/libLLVM-3.9.so+0x5a0a5f)
#8 0x00007f7af45762e4 (/usr/lib/libLLVM-3.9.so+0xde72e4)
#9 0x00007f7af3d300a1 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/lib/libLLVM-3.9.so+0x5a10a1)
#10 0x00000000006187a7 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
std::__1::unique_ptr<llvm::raw_pwrite_stream,
std::__1::default_delete<llvm::raw_pwrite_stream> >)
(/usr/bin/clang-3.9+0x6187a7)
#11 0x0000000000a0daea (/usr/bin/clang-3.9+0xa0daea)
#12 0x0000000000c00ee6 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/bin/clang-3.9+0xc00ee6)
#13 0x000000000090eedd clang::FrontendAction::Execute()
(/usr/bin/clang-3.9+0x90eedd)
#14 0x00000000008dc0c8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/bin/clang-3.9+0x8dc0c8)
#15 0x0000000000987d7c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/bin/clang-3.9+0x987d7c)
#16 0x00000000005da604 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/bin/clang-3.9+0x5da604)
#17 0x00000000005d927c main (/usr/bin/clang-3.9+0x5d927c)
#18 0x00007f7af29c67c1 __libc_start_main
/sources/src/csu/../csu/libc-start.c:323:0
#19 0x00000000005d68b9 _start (/usr/bin/clang-3.9+0x5d68b9)
Stack dump:
0.      Program arguments: /usr/bin/clang-3.9 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name com.c -mrelocation-model pic -pic-level 2
-mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu skylake
-momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb
-coverage-file
/home/armin/src/mariadb-build/storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/com.c.o
-resource-dir /usr/bin/../lib/clang/3.9.0 -D GRN_DAT_EXPORT -D GRN_EMBEDDED -D
HAVE_CONFIG_H -D HAVE_SYSTEMD -D ONIG_EXTERN=extern -I
/home/armin/src/mariadb-10.1.16/storage/mroonga/vendor/groonga/lib -I
/home/armin/src/mariadb-10.1.16/storage/mroonga/vendor/groonga/include -I
/home/armin/src/mariadb-build/storage/mroonga/vendor/groonga -I
/home/armin/src/mariadb-build/include -I
/home/armin/src/mariadb-10.1.16/include -I /home/armin/src/mariadb-10.1.16/sql
-I /home/armin/src/mariadb-10.1.16/storage/mroonga/vendor/groonga/lib/dat -D
BIG_JOINS=1 -D WITH_INNODB_DISALLOW_WRITES -D NDEBUG -D DBUG_OFF
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.9.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Wall -Wextra -Wno-unused-parameter
-Wno-sign-compare -Wno-pointer-sign -Wno-missing-field-initializers -Wformat=2
-Wstrict-aliasing=2 -Wdisabled-optimization -Wfloat-equal -Wpointer-arith
-Wdeclaration-after-statement -Wbad-function-cast -Wcast-align -Wwrite-strings
-fconst-strings -fdebug-compilation-dir
/home/armin/src/mariadb-build/storage/mroonga/vendor/groonga/lib -ferror-limit
19 -fmessage-length 176 -fobjc-runtime=gcc -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o CMakeFiles/libgroonga.dir/com.c.o -x c
/home/armin/src/mariadb-10.1.16/storage/mroonga/vendor/groonga/lib/com.c 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module
'/home/armin/src/mariadb-10.1.16/storage/mroonga/vendor/groonga/lib/com.c'.
4.      Running pass 'Combine redundant instructions' on function
'@grn_com_send'
clang-3.9: error: unable to execute command: Segmentation fault (core dumped)
clang-3.9: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0 (branches/release_39 276108)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-3.9: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.9: note: diagnostic msg: 
********************

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

********************

Mentioned files are in attachment.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>