<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64415>64415</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang++] Segmentation fault (core dumped)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dsokoloski
</td>
</tr>
</table>
<pre>
```
0 libLLVM-3.4.so 0x00007f323e7dc122 llvm::sys::PrintStackTrace(_IO_FILE*) + 50
1 libLLVM-3.4.so 0x00007f323e7dbee4
2 libpthread.so.0 0x00007f323d79c630
3 clang 0x0000000001109a50 clang::Decl::castFromDeclContext(clang::DeclContext const*) + 0
4 clang 0x000000000086ea39
5 clang 0x00000000008bc4ae clang::CodeGen::CodeGenFunction::GetVTTParameter(clang::GlobalDecl, bool, bool) + 62
6 clang 0x00000000008bcad1 clang::CodeGen::CodeGenFunction::EmitCXXDestructorCall(clang::CXXDestructorDecl const*, clang::CXXDtorType, bool, bool, llvm::Value*) + 49
7 clang 0x00000000008cbe26 clang::CodeGen::CodeGenFunction::emitDestroy(llvm::Value*, clang::QualType, void (*)(clang::CodeGen::CodeGenFunction&, llvm::Value*, clang::QualType), bool) + 598
8 clang 0x00000000008c366f
9 clang 0x00000000008c4392 clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool) + 1762
10 clang 0x00000000008c4e82 clang::CodeGen::CodeGenFunction::PopCleanupBlocks(clang::CodeGen::EHScopeStack::stable_iterator) + 34
11 clang 0x00000000008c4ebe clang::CodeGen::CodeGenFunction::PopCleanupBlocks(clang::CodeGen::EHScopeStack::stable_iterator, unsigned long) + 30
12 clang 0x00000000008c0e97 clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&) + 231
13 clang 0x000000000084e2af clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1759
14 clang 0x00000000008a92ff clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 191
15 clang 0x000000000085c831 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 417
16 clang 0x000000000085f19c clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1404
17 clang 0x000000000086eb08
18 clang 0x000000000085f8a0 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 320
19 clang 0x0000000000808213
20 clang 0x0000000000807555
21 clang 0x000000000097487f clang::ParseAST(clang::Sema&, bool, bool) + 607
22 clang 0x0000000000806bd2 clang::CodeGenAction::ExecuteAction() + 50
23 clang 0x000000000069e4f9 clang::FrontendAction::Execute() + 169
24 clang 0x000000000067cf65 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 309
25 clang 0x000000000066553a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1770
26 clang 0x000000000065f4c0 cc1_main(char const**, char const**, char const*, void*) + 1184
27 clang 0x000000000065dd0e main + 8814
28 libc.so.6 0x00007f323c58b555 __libc_start_main + 245
29 clang 0x000000000065e38f
```
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-redhat-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -main-file-name nd-flow.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.27 -momit-leaf-frame-pointer -g -coverage-file /home/dsokoloski/netify/netify-agent-master/src/.libs/nd-flow.o -resource-dir /usr/bin/../lib/clang/3.4.2 -dependency-file .deps/nd-flow.Tpo -sys-header-deps -MP -MT nd-flow.lo -D HAVE_CONFIG_H -D _GNU_SOURCE -D ND_DATADIR="/usr/share/netifyd" -D ND_PID_FILE_NAME="/var/run/netifyd/netifyd.pid" -D ND_CONF_FILE_NAME="/etc/netifyd.conf" -D ND_PERSISTENT_STATEDIR="/etc/netifyd" -D ND_VOLATILE_STATEDIR="/var/run/netifyd" -D PIC -I . -I .. -I ../include -I ../libs/ndpi/src/include -I ../libs/inih/cpp -I /usr/local/include -internal-isystem /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5 -internal-isystem /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/x86_64-redhat-linux -internal-isystem /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/backward -internal-isystem /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/x86_64-redhat-linux/c++/4.8.5 -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.4.2/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O1 -Wall -std=gnu++11 -fdeprecated-macro -fdebug-compilation-dir /home/dsokoloski/netify/netify-agent-master/src -ferror-limit 19 -fmessage-length 136 -fsanitize=address,init-order,use-after-return -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -o .libs/nd-flow.o -x c++ nd-flow.cpp
1. nd-flow.cpp:115:1: current parser token 'ndFlow'
2. nd-flow.cpp:85:9: LLVM IR generation of declaration 'ndFlow::ndFlow'
3. nd-flow.cpp:85:9: Generating code for declaration 'ndFlow::ndFlow'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
[nd-flow-3dc45c.tar.gz](https://github.com/llvm/llvm-project/files/12260293/nd-flow-3dc45c.tar.gz)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEWV1T47jS_jXmRqWULX_EvuAik5BZqpgZ3iE7796lZLntaJEllyQzsL_-lPyROBCSZfbUWYoKttTqfrql7n5EqDG8kgDXX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