Open Quuxplusone opened 3 years ago
Bugzilla Link | PR51148 |
Status | NEW |
Importance | P normal |
Reported by | John Ralls (jralls@ceridwen.us) |
Reported on | 2021-07-20 13:38:57 -0700 |
Last modified on | 2021-07-30 14:36:29 -0700 |
Version | 12.0 |
Hardware | Macintosh MacOS X |
CC | jdevlieghere@apple.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Another segfault at a different location in IsStructurallyEquivalent. The rest
of the stack looks the same.
Process 24007 resuming
Set option General:Start Date to (absolute . 1546329600)
Setting option "General" "Start Date" to (absolute . 1546329600)
Set option General:End Date to (absolute . 1609488000)
Setting option "General" "End Date" to (absolute . 1609488000)
Found value 1546329600 for option "General" "Start Date"
Found value 1609488000 for option "General" "End Date"
Process 24007 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 8.1
frame #0: 0x0000000119d73671 libgnc-app-utils.dylib`scm_unused_struct* scm_from_value<std::__1::vector<account_s const*, std::__1::allocator<account_s const*> > >(value=size=0) at swig-app-utils-guile.cpp:1659:22
1656 scm_from_value<GncOptionAccountList>(GncOptionAccountList value)
1657 {
1658 SCM s_list = SCM_EOL;
-> 1659 for (auto acct : value)
1660 {
1661 SCM elem = scm_list_1(SWIG_NewPointerObj(acct, SWIGTYPE_p_Account, 0));
1662 s_list = scm_append(scm_list_2(s_list, elem));
Target 0: (guile) stopped.
(lldb) p value
(GncOptionAccountList) $17 = size=0 {}
(lldb) up
frame #1: 0x0000000119d735f7 libgnc-app-utils.dylib`scm_unused_struct*
GncOption_get_scm_value(this=0x00007ffeefbfc8c8,
option=0x0000000100712790)::$_0::operator()<GncOptionAccountValue>(GncOptionAccountValue
const&) const at swig-app-utils-guile.cpp:1922:24
1919 if constexpr (std::is_same_v<std::decay_t<decltype(value)>,
1920 SCM>)
1921 return value;
-> 1922 return
scm_from_value(static_cast<decltype(value)>(value));
1923 }, swig_get_option(self));
1924 }
1925 SWIGINTERN SCM GncOption_get_scm_default_value(GncOption *self){
(lldb) p value
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/usr/bin/lldb
/Users/john/Development/Gnucash-Build/Gnucash-master-git-10.15-x86_64/inst/bin/guile
0 lldb 0x0000000102832de5
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 lldb 0x00000001028324e5 llvm::sys::RunSignalHandlers() +
85
2 lldb 0x0000000102833646 SignalHandler(int) + 262
3 libsystem_platform.dylib 0x00007fff20376d7d _sigtramp + 29
4 libsystem_platform.dylib 0x00007fd45ed0b940 _sigtramp + 18446743890076191712
5 LLDB 0x00000001076b9f21
IsStructurallyEquivalent(clang::StructuralEquivalenceContext&,
clang::RecordDecl*, clang::RecordDecl*) + 721
6 LLDB 0x00000001076b6a27
clang::StructuralEquivalenceContext::Finish() + 199
7 LLDB 0x00000001076b682a
clang::StructuralEquivalenceContext::IsEquivalent(clang::Decl*, clang::Decl*) +
26
8 LLDB 0x0000000107696291
clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*)
+ 945
9 LLDB 0x00000001076a56e4
clang::declvisitor::Base<std::__1::add_pointer, clang::ASTNodeImporter,
llvm::Expected<clang::Decl*> >::Visit(clang::Decl*) + 132
10 LLDB 0x00000001076a5656
clang::ASTImporter::ImportImpl(clang::Decl*) + 22
11 LLDB 0x0000000103f8120c
lldb_private::ClangASTImporter::ASTImporterDelegate::ImportImpl(clang::Decl*) +
1068
12 LLDB 0x00000001076a6c97
clang::ASTImporter::Import(clang::Decl*) + 935
13 LLDB 0x00000001076a5fad
clang::TypeVisitor<clang::ASTNodeImporter, llvm::Expected<clang::QualType>
>::Visit(clang::Type const*) + 93
14 LLDB 0x00000001076a5d3c
clang::ASTImporter::Import(clang::QualType) + 236
15 LLDB 0x0000000107681716
llvm::Expected<clang::TemplateArgument>
clang::ASTNodeImporter::import<clang::TemplateArgument>(clang::TemplateArgument
const&) + 86
16 LLDB 0x000000010769604b
clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*)
+ 363
17 LLDB 0x00000001076a56e4
clang::declvisitor::Base<std::__1::add_pointer, clang::ASTNodeImporter,
llvm::Expected<clang::Decl*> >::Visit(clang::Decl*) + 132
18 LLDB 0x00000001076a5656
clang::ASTImporter::ImportImpl(clang::Decl*) + 22
19 LLDB 0x0000000103f8120c
lldb_private::ClangASTImporter::ASTImporterDelegate::ImportImpl(clang::Decl*) +
1068
20 LLDB 0x00000001076a6c97
clang::ASTImporter::Import(clang::Decl*) + 935
21 LLDB 0x0000000103f7d2d9
lldb_private::ClangASTImporter::CopyDecl(clang::ASTContext*, clang::Decl*) + 105
22 LLDB 0x0000000103f80edf
lldb_private::ClangASTImporter::ASTImporterDelegate::ImportImpl(clang::Decl*) +
255
23 LLDB 0x00000001076a6c97
clang::ASTImporter::Import(clang::Decl*) + 935
24 LLDB 0x00000001076a5fad
clang::TypeVisitor<clang::ASTNodeImporter, llvm::Expected<clang::QualType>
>::Visit(clang::Type const*) + 93
25 LLDB 0x00000001076a5d3c
clang::ASTImporter::Import(clang::QualType) + 236
26 LLDB 0x0000000103f7cd8d
lldb_private::ClangASTImporter::CopyType(lldb_private::TypeSystemClang&,
lldb_private::CompilerType const&) + 157
27 LLDB 0x0000000103f7d9ca
lldb_private::ClangASTImporter::DeportType(lldb_private::TypeSystemClang&,
lldb_private::CompilerType const&) + 666
28 LLDB 0x0000000103f913ff
lldb_private::ClangExpressionDeclMap::AddPersistentVariable(clang::NamedDecl
const*, lldb_private::ConstString, lldb_private::TaggedASTType<0u>, bool, bool)
+ 655
29 LLDB 0x0000000103fbe356
IRForTarget::CreateResultVariable(llvm::Function&) + 4054
30 LLDB 0x0000000103fc3704
IRForTarget::runOnModule(llvm::Module&) + 868
31 LLDB 0x0000000103fa32a9
lldb_private::ClangExpressionParser::DoPrepareForExecution(unsigned long long&,
unsigned long long&, std::__1::shared_ptr<lldb_private::IRExecutionUnit>&,
lldb_private::ExecutionContext&, bool&, lldb_private::ExecutionPolicy) + 1193
32 LLDB 0x0000000103973207
lldb_private::ExpressionParser::PrepareForExecution(unsigned long long&,
unsigned long long&, std::__1::shared_ptr<lldb_private::IRExecutionUnit>&,
lldb_private::ExecutionContext&, bool&, lldb_private::ExecutionPolicy) + 39
33 LLDB 0x0000000103fb658f
lldb_private::ClangUserExpression::TryParse(lldb_private::DiagnosticManager&,
lldb_private::ExecutionContextScope*, lldb_private::ExecutionContext&,
lldb_private::ExecutionPolicy, bool, bool) + 527
34 LLDB 0x0000000103fb69ad
lldb_private::ClangUserExpression::Parse(lldb_private::DiagnosticManager&,
lldb_private::ExecutionContext&, lldb_private::ExecutionPolicy, bool, bool) +
285
35 LLDB 0x000000010398d8db
lldb_private::UserExpression::Evaluate(lldb_private::ExecutionContext&,
lldb_private::EvaluateExpressionOptions const&, llvm::StringRef,
llvm::StringRef, std::__1::shared_ptr<lldb_private::ValueObject>&,
lldb_private::Status&, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >*,
lldb_private::ValueObject*) + 2427
36 LLDB 0x0000000103a8e3ec
lldb_private::Target::EvaluateExpression(llvm::StringRef,
lldb_private::ExecutionContextScope*,
std::__1::shared_ptr<lldb_private::ValueObject>&,
lldb_private::EvaluateExpressionOptions const&, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >*,
lldb_private::ValueObject*) + 636
37 LLDB 0x0000000103f0e605
lldb_private::CommandObjectExpression::EvaluateExpression(llvm::StringRef,
lldb_private::Stream&, lldb_private::Stream&,
lldb_private::CommandReturnObject&) + 549
38 LLDB 0x0000000103f0f5a0
lldb_private::CommandObjectExpression::DoExecute(llvm::StringRef,
lldb_private::CommandReturnObject&) + 1552
39 LLDB 0x00000001039c9672
lldb_private::CommandObjectRaw::Execute(char const*,
lldb_private::CommandReturnObject&) + 418
40 LLDB 0x00000001039bfb81
lldb_private::CommandInterpreter::HandleCommand(char const*,
lldb_private::LazyBool, lldb_private::CommandReturnObject&,
lldb_private::ExecutionContext*, bool, bool) + 2753
41 LLDB 0x00000001039c3eac
lldb_private::CommandInterpreter::IOHandlerInputComplete(lldb_private::IOHandler&,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >&) + 620
42 LLDB 0x00000001039014a2
lldb_private::IOHandlerEditline::Run() + 338
43 LLDB 0x00000001038e748f
lldb_private::Debugger::RunIOHandlers() + 143
44 LLDB 0x00000001039c514e
lldb_private::CommandInterpreter::RunCommandInterpreter(lldb_private::CommandInterpreterRunOptions&)
+ 158
45 LLDB 0x00000001036a6076
lldb::SBDebugger::RunCommandInterpreter(bool, bool) + 214
46 lldb 0x000000010281a969 Driver::MainLoop() + 2857
47 lldb 0x000000010281c2ce main + 1982
48 libdyld.dylib 0x00007fff2034cf5d start + 1
49 libdyld.dylib 0x0000000000000002 start + 18446603339975831718
Segmentation fault: 11