Skip to content

Segmentation fault when asserts are used #1442

@MaxSagebaum

Description

@MaxSagebaum

Clad produces a segmentation fault for the program:

#include <cassert>
void calcViscFluxSide(int, bool) { assert(0); }
void a(bool c) { calcViscFluxSide(0, c); }
#include "clad/Differentiator/Differentiator.h"
void b() { clad::gradient(a); }

The output is:

test.cpp:2:36: warning: attempted to differentiate unsupported statement, no changes applied
    2 | void calcViscFluxSide(int, bool) { assert(0); }
      |                                    ^
/usr/include/assert.h:102:31: note: expanded from macro 'assert'
  102 |       : __assert_fail (#expr, __ASSERT_FILE, __ASSERT_LINE,             \
      |                               ^
/usr/include/assert.h:91:27: note: expanded from macro '__ASSERT_FILE'
   91 | #    define __ASSERT_FILE __builtin_FILE ()
      |                           ^
clang++: /home/msagebaum/Applications/llvm-project/install/include/clang/AST/Type.h:945: const ExtQualsTypeCommonBase *clang::QualType::getCommonPtr() const: Assertion `!isNull() && "Cannot retrieve a NULL type pointer"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /home/msagebaum/Applications/llvm-project/install/bin/clang++ -fplugin=/home/msagebaum/Applications/clad/inst_debug/lib/clad.so -I/home/msagebaum/Applications/clad/inst_debug/include -Xclang -plugin-arg-clad -Xclang -fgenerate-source-file -I/home/msagebaum/Kaiserslautern/mtu/Programms/trace_suite/trace/INCLUDE -I/home/msagebaum/Kaiserslautern/mtu/Programms/trace_suite/build_normal_opt/trace -I/home/msagebaum/Applications/build/include -I/usr/include/openmpi-x86_64/ -I/home/msagebaum/Kaiserslautern/mtu/Programms/trace_suite/trace/AD -I/home/msagebaum/Kaiserslautern/mtu/Programms/trace_suite/contrib/ad_dependencies/adToolbox/include test.cpp -c -o test.o
1.	<eof> parser at end of file
2.	Building code for '<void calcViscFluxSide(int, bool)>[name=calcViscFluxSide, order=1, mode=pullback, args=',', tbr]'
 #0 0x0000000003567f68 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x3567f68)
 #1 0x0000000003565567 SignalHandler(int) Signals.cpp:0:0
 #2 0x00007f7db4827c30 __restore_rt (/lib64/libc.so.6+0x19c30)
 #3 0x000000000700d5ce clang::Stmt::getBeginLoc() const (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x700d5ce)
 #4 0x00007f7db322ee66 clad::PrettyStackTraceDerivative::print(llvm::raw_ostream&) const /home/msagebaum/Applications/clad/lib/Differentiator/VisitorBase.cpp:1082:36
 #5 0x00000000034d2dc9 PrintCurStackTrace(llvm::raw_ostream&) PrettyStackTrace.cpp:0:0
 #6 0x0000000003565d44 llvm::sys::CleanupOnSignal(unsigned long) (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x3565d44)
 #7 0x00000000034a6398 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
 #8 0x00007f7db4827c30 __restore_rt (/lib64/libc.so.6+0x19c30)
 #9 0x00007f7db488111c __pthread_kill_implementation (/lib64/libc.so.6+0x7311c)
#10 0x00007f7db4827afe gsignal (/lib64/libc.so.6+0x19afe)
#11 0x00007f7db480f6d0 abort (/lib64/libc.so.6+0x16d0)
#12 0x00007f7db480f639 __assert_perror_fail (/lib64/libc.so.6+0x1639)
#13 0x00007f7db2e50436 clang::QualType::getCommonPtr() const /home/msagebaum/Applications/llvm-project/install/include/clang/AST/Type.h:0:5
#14 0x00007f7db2e503d5 clang::QualType::getTypePtr() const /home/msagebaum/Applications/llvm-project/install/include/clang/AST/Type.h:7938:26
#15 0x00007f7db2e503b5 llvm::simplify_type<clang::QualType>::getSimplifiedValue(clang::QualType) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/Type.h:1646:5
#16 0x00007f7db2e50330 bool llvm::detail::isPresent<clang::QualType>(clang::QualType const&) /home/msagebaum/Applications/llvm-project/install/include/llvm/Support/Casting.h:631:7
#17 0x00007f7db33d0585 decltype(auto) llvm::dyn_cast<clang::VariableArrayType, clang::QualType>(clang::QualType&) /home/msagebaum/Applications/llvm-project/install/include/llvm/Support/Casting.h:656:3
#18 0x00007f7db33cd1b1 clad::utils::ReferencesUpdater::updateType(clang::QualType) /home/msagebaum/Applications/clad/lib/Differentiator/StmtClone.cpp:578:19
#19 0x00007f7db33cd226 clad::utils::ReferencesUpdater::VisitStmt(clang::Stmt*) /home/msagebaum/Applications/clad/lib/Differentiator/StmtClone.cpp:574:3
#20 0x00007f7db326c665 clang::RecursiveASTVisitor<clad::utils::ReferencesUpdater>::WalkUpFromStmt(clang::Stmt*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/RecursiveASTVisitor.h:375:34
#21 0x00007f7db326c6bd clang::RecursiveASTVisitor<clad::utils::ReferencesUpdater>::WalkUpFromValueStmt(clang::ValueStmt*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:30:1
#22 0x00007f7db32a9cbd clang::RecursiveASTVisitor<clad::utils::ReferencesUpdater>::WalkUpFromExpr(clang::Expr*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:40:1
#23 0x00007f7db324939d clang::RecursiveASTVisitor<clad::utils::ReferencesUpdater>::WalkUpFromSourceLocExpr(clang::SourceLocExpr*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:98:1
#24 0x00007f7db3249215 clang::RecursiveASTVisitor<clad::utils::ReferencesUpdater>::TraverseSourceLocExpr(clang::SourceLocExpr*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*>>>>*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/RecursiveASTVisitor.h:2884:1
#25 0x00007f7db3245f99 clang::RecursiveASTVisitor<clad::utils::ReferencesUpdater>::dataTraverseNode(clang::Stmt*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*>>>>*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:98:1
#26 0x00007f7db322f455 clang::RecursiveASTVisitor<clad::utils::ReferencesUpdater>::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*>>>>*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/RecursiveASTVisitor.h:688:7
#27 0x00007f7db3229d6c clad::VisitorBase::updateReferencesOf(clang::Stmt*) /home/msagebaum/Applications/clad/lib/Differentiator/VisitorBase.cpp:163:3
#28 0x00007f7db322b1b2 clad::VisitorBase::Clone(clang::Stmt const*) /home/msagebaum/Applications/clad/lib/Differentiator/VisitorBase.cpp:408:12
#29 0x00007f7db307df02 clad::ReverseModeVisitor::VisitStmt(clang::Stmt const*) /home/msagebaum/Applications/clad/lib/Differentiator/ReverseModeVisitor.cpp:643:21
#30 0x00007f7db3077204 clang::StmtVisitorBase<llvm::make_const_ptr, clad::ReverseModeVisitor, clad::StmtDiff>::VisitValueStmt(clang::ValueStmt const*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:30:1
#31 0x00007f7db3077234 clang::StmtVisitorBase<llvm::make_const_ptr, clad::ReverseModeVisitor, clad::StmtDiff>::VisitExpr(clang::Expr const*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:40:1
#32 0x00007f7db3074c84 clang::StmtVisitorBase<llvm::make_const_ptr, clad::ReverseModeVisitor, clad::StmtDiff>::VisitSourceLocExpr(clang::SourceLocExpr const*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:98:1
#33 0x00007f7db3072172 clang::StmtVisitorBase<llvm::make_const_ptr, clad::ReverseModeVisitor, clad::StmtDiff>::Visit(clang::Stmt const*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:98:1
#34 0x00007f7db30712d3 clad::ReverseModeVisitor::Visit(clang::Stmt const*, clang::Expr*) /home/msagebaum/Applications/clad/include/clad/Differentiator/ReverseModeVisitor.h:117:11
#35 0x00007f7db308645a clad::ReverseModeVisitor::VisitCallExpr(clang::CallExpr const*) /home/msagebaum/Applications/clad/lib/Differentiator/ReverseModeVisitor.cpp:1622:36
#36 0x00007f7db3072827 clang::StmtVisitorBase<llvm::make_const_ptr, clad::ReverseModeVisitor, clad::StmtDiff>::Visit(clang::Stmt const*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:614:1
#37 0x00007f7db30712d3 clad::ReverseModeVisitor::Visit(clang::Stmt const*, clang::Expr*) /home/msagebaum/Applications/clad/include/clad/Differentiator/ReverseModeVisitor.h:117:11
#38 0x00007f7db3083231 clad::ReverseModeVisitor::DifferentiateSingleExpr(clang::Expr const*, clang::Expr*) /home/msagebaum/Applications/clad/lib/Differentiator/ReverseModeVisitor.cpp:2940:22
#39 0x00007f7db307f5d5 clad::ReverseModeVisitor::VisitConditionalOperator(clang::ConditionalOperator const*)::$_0::operator()(clang::Expr const*, clang::Expr*) const /home/msagebaum/Applications/clad/lib/Differentiator/ReverseModeVisitor.cpp:807:21
#40 0x00007f7db307f173 clad::ReverseModeVisitor::VisitConditionalOperator(clang::ConditionalOperator const*) /home/msagebaum/Applications/clad/lib/Differentiator/ReverseModeVisitor.cpp:822:5
#41 0x00007f7db3072b81 clang::StmtVisitorBase<llvm::make_const_ptr, clad::ReverseModeVisitor, clad::StmtDiff>::Visit(clang::Stmt const*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:858:1
#42 0x00007f7db30712d3 clad::ReverseModeVisitor::Visit(clang::Stmt const*, clang::Expr*) /home/msagebaum/Applications/clad/include/clad/Differentiator/ReverseModeVisitor.h:117:11
#43 0x00007f7db3083e9b clad::ReverseModeVisitor::VisitParenExpr(clang::ParenExpr const*) /home/msagebaum/Applications/clad/lib/Differentiator/ReverseModeVisitor.cpp:1266:45
#44 0x00007f7db3072238 clang::StmtVisitorBase<llvm::make_const_ptr, clad::ReverseModeVisitor, clad::StmtDiff>::Visit(clang::Stmt const*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:152:1
#45 0x00007f7db30712d3 clad::ReverseModeVisitor::Visit(clang::Stmt const*, clang::Expr*) /home/msagebaum/Applications/clad/include/clad/Differentiator/ReverseModeVisitor.h:117:11
#46 0x00007f7db307e218 clad::ReverseModeVisitor::DifferentiateSingleStmt(clang::Stmt const*, clang::Expr*) /home/msagebaum/Applications/clad/lib/Differentiator/ReverseModeVisitor.cpp:2909:22
#47 0x00007f7db307e0ed clad::ReverseModeVisitor::VisitCompoundStmt(clang::CompoundStmt const*) /home/msagebaum/Applications/clad/lib/Differentiator/ReverseModeVisitor.cpp:671:31
#48 0x00007f7db30735a7 clang::StmtVisitorBase<llvm::make_const_ptr, clad::ReverseModeVisitor, clad::StmtDiff>::Visit(clang::Stmt const*) /home/msagebaum/Applications/llvm-project/install/include/clang/AST/StmtNodes.inc:1634:1
#49 0x00007f7db30712d3 clad::ReverseModeVisitor::Visit(clang::Stmt const*, clang::Expr*) /home/msagebaum/Applications/clad/include/clad/Differentiator/ReverseModeVisitor.h:117:11
#50 0x00007f7db307d236 clad::ReverseModeVisitor::DifferentiateWithClad() /home/msagebaum/Applications/clad/lib/Differentiator/ReverseModeVisitor.cpp:436:30
#51 0x00007f7db307b0ca clad::ReverseModeVisitor::Derive() /home/msagebaum/Applications/clad/lib/Differentiator/ReverseModeVisitor.cpp:0:9
#52 0x00007f7db2e4c2dc clad::DerivativeBuilder::Derive(clad::DiffRequest const&) /home/msagebaum/Applications/clad/lib/Differentiator/DerivativeBuilder.cpp:604:18
#53 0x00007f7db2e1d0a4 clad::plugin::CladPlugin::ProcessDiffRequest(clad::DiffRequest&) /home/msagebaum/Applications/clad/tools/ClangPlugin.cpp:286:52
#54 0x00007f7db2e1e143 clad::plugin::CladPlugin::FinalizeTranslationUnit() /home/msagebaum/Applications/clad/tools/ClangPlugin.cpp:486:11
#55 0x00007f7db2e1eb0e clad::plugin::CladPlugin::HandleTranslationUnit(clang::ASTContext&) /home/msagebaum/Applications/clad/tools/ClangPlugin.cpp:518:7
#56 0x000000000425ea00 clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x425ea00)
#57 0x0000000005aacf3c clang::ParseAST(clang::Sema&, bool, bool) (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x5aacf3c)
#58 0x00000000042170a1 clang::FrontendAction::Execute() (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x42170a1)
#59 0x0000000004195ec2 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x4195ec2)
#60 0x00000000042f1081 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x42f1081)
#61 0x00000000005a7a08 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x5a7a08)
#62 0x000000000059f214 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#63 0x0000000003f4b669 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#64 0x00000000034a6754 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x34a6754)
#65 0x0000000003f4bd30 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#66 0x0000000003f0bf59 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x3f0bf59)
#67 0x0000000003f0cee2 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x3f0cee2)
#68 0x0000000003f224bc clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x3f224bc)
#69 0x00000000005a3b95 clang_main(int, char**, llvm::ToolContext const&) (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x5a3b95)
#70 0x00000000004508ef main (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x4508ef)
#71 0x00007f7db48115f5 __libc_start_call_main (/lib64/libc.so.6+0x35f5)
#72 0x00007f7db48116a8 __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x36a8)
#73 0x000000000059ec55 _start (/home/msagebaum/Applications/llvm-project/install/bin/clang+++0x59ec55)
[bau36-rhrk-ag-gauger-ipv4-0012:1138300:0:1138300] Caught signal 11 (Segmentation fault: address not mapped to object at address (nil))
==== backtrace (tid:1138300) ====
 0  /lib64/libucs.so.0(ucs_handle_error+0x2e4) [0x7f7db45f5df4]
 1  /lib64/libucs.so.0(+0x17aed) [0x7f7db45f7aed]
 2  /lib64/libucs.so.0(+0x17cbd) [0x7f7db45f7cbd]
 3  /lib64/libc.so.6(+0x19c30) [0x7f7db4827c30]
 4  /home/msagebaum/Applications/llvm-project/install/bin/clang++(_ZNK5clang4Stmt11getBeginLocEv+0xe) [0x700d5ce]
 5  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZNK4clad26PrettyStackTraceDerivative5printERN4llvm11raw_ostreamE+0xb6) [0x7f7db322ee66]
 6  /home/msagebaum/Applications/llvm-project/install/bin/clang++() [0x34d2dc9]
 7  /home/msagebaum/Applications/llvm-project/install/bin/clang++(_ZN4llvm3sys15CleanupOnSignalEm+0xa4) [0x3565d44]
 8  /home/msagebaum/Applications/llvm-project/install/bin/clang++() [0x34a6398]
 9  /lib64/libc.so.6(+0x19c30) [0x7f7db4827c30]
10  /lib64/libc.so.6(+0x7311c) [0x7f7db488111c]
11  /lib64/libc.so.6(gsignal+0x1e) [0x7f7db4827afe]
12  /lib64/libc.so.6(abort+0x26) [0x7f7db480f6d0]
13  /lib64/libc.so.6(__assert_perror_fail+0) [0x7f7db480f639]
14  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x50436) [0x7f7db2e50436]
15  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x503d5) [0x7f7db2e503d5]
16  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x503b5) [0x7f7db2e503b5]
17  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x50330) [0x7f7db2e50330]
18  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x5d0585) [0x7f7db33d0585]
19  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad5utils17ReferencesUpdater10updateTypeEN5clang8QualTypeE+0x21) [0x7f7db33cd1b1]
20  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad5utils17ReferencesUpdater9VisitStmtEPN5clang4StmtE+0x46) [0x7f7db33cd226]
21  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x46c665) [0x7f7db326c665]
22  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x46c6bd) [0x7f7db326c6bd]
23  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x4a9cbd) [0x7f7db32a9cbd]
24  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x44939d) [0x7f7db324939d]
25  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN5clang19RecursiveASTVisitorIN4clad5utils17ReferencesUpdaterEE21TraverseSourceLocExprEPNS_13SourceLocExprEPN4llvm15SmallVectorImplINS7_14PointerIntPairIPNS_4StmtELj1EbNS7_21PointerLikeTypeTraitsISB_EENS7_18PointerIntPairInfoISB_Lj1ESD_EEEEEE+0x55) [0x7f7db3249215]
26  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN5clang19RecursiveASTVisitorIN4clad5utils17ReferencesUpdaterEE16dataTraverseNodeEPNS_4StmtEPN4llvm15SmallVectorImplINS7_14PointerIntPairIS6_Lj1EbNS7_21PointerLikeTypeTraitsIS6_EENS7_18PointerIntPairInfoIS6_Lj1ESB_EEEEEE+0x189) [0x7f7db3245f99]
27  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN5clang19RecursiveASTVisitorIN4clad5utils17ReferencesUpdaterEE12TraverseStmtEPNS_4StmtEPN4llvm15SmallVectorImplINS7_14PointerIntPairIS6_Lj1EbNS7_21PointerLikeTypeTraitsIS6_EENS7_18PointerIntPairInfoIS6_Lj1ESB_EEEEEE+0x1e5) [0x7f7db322f455]
28  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad11VisitorBase18updateReferencesOfEPN5clang4StmtE+0x5c) [0x7f7db3229d6c]
29  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad11VisitorBase5CloneEPKN5clang4StmtE+0x42) [0x7f7db322b1b2]
30  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad18ReverseModeVisitor9VisitStmtEPKN5clang4StmtE+0x72) [0x7f7db307df02]
31  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x277204) [0x7f7db3077204]
32  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x277234) [0x7f7db3077234]
33  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x274c84) [0x7f7db3074c84]
34  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x272172) [0x7f7db3072172]
35  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x2712d3) [0x7f7db30712d3]
36  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad18ReverseModeVisitor13VisitCallExprEPKN5clang8CallExprE+0x127a) [0x7f7db308645a]
37  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x272827) [0x7f7db3072827]
38  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x2712d3) [0x7f7db30712d3]
39  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad18ReverseModeVisitor23DifferentiateSingleExprEPKN5clang4ExprEPS2_+0x51) [0x7f7db3083231]
40  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x27f5d5) [0x7f7db307f5d5]
41  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad18ReverseModeVisitor24VisitConditionalOperatorEPKN5clang19ConditionalOperatorE+0x233) [0x7f7db307f173]
42  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x272b81) [0x7f7db3072b81]
43  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x2712d3) [0x7f7db30712d3]
44  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad18ReverseModeVisitor14VisitParenExprEPKN5clang9ParenExprE+0x4b) [0x7f7db3083e9b]
45  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x272238) [0x7f7db3072238]
46  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x2712d3) [0x7f7db30712d3]
47  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad18ReverseModeVisitor23DifferentiateSingleStmtEPKN5clang4StmtEPNS1_4ExprE+0x68) [0x7f7db307e218]
48  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad18ReverseModeVisitor17VisitCompoundStmtEPKN5clang12CompoundStmtE+0xed) [0x7f7db307e0ed]
49  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x2735a7) [0x7f7db30735a7]
50  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(+0x2712d3) [0x7f7db30712d3]
51  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad18ReverseModeVisitor21DifferentiateWithCladEv+0x4f6) [0x7f7db307d236]
52  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad18ReverseModeVisitor6DeriveEv+0x80a) [0x7f7db307b0ca]
53  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad17DerivativeBuilder6DeriveERKNS_11DiffRequestE+0xc5c) [0x7f7db2e4c2dc]
54  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad6plugin10CladPlugin18ProcessDiffRequestERNS_11DiffRequestE+0x514) [0x7f7db2e1d0a4]
55  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad6plugin10CladPlugin23FinalizeTranslationUnitEv+0x113) [0x7f7db2e1e143]
56  /home/msagebaum/Applications/clad/inst_debug/lib/clad.so(_ZN4clad6plugin10CladPlugin21HandleTranslationUnitERN5clang10ASTContextE+0x20e) [0x7f7db2e1eb0e]
57  /home/msagebaum/Applications/llvm-project/install/bin/clang++(_ZN5clang17MultiplexConsumer21HandleTranslationUnitERNS_10ASTContextE+0x30) [0x425ea00]
58  /home/msagebaum/Applications/llvm-project/install/bin/clang++(_ZN5clang8ParseASTERNS_4SemaEbb+0x46c) [0x5aacf3c]
59  /home/msagebaum/Applications/llvm-project/install/bin/clang++(_ZN5clang14FrontendAction7ExecuteEv+0x21) [0x42170a1]
60  /home/msagebaum/Applications/llvm-project/install/bin/clang++(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x512) [0x4195ec2]
61  /home/msagebaum/Applications/llvm-project/install/bin/clang++(_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE+0x201) [0x42f1081]
=================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions