[haiku-bugs] Re: [Haiku] #16040: Debugger crashes while loading symbols for libJavaScriptCore.so.18.7.4

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sun, 17 May 2020 10:43:24 -0000

#16040: Debugger crashes while loading symbols for libJavaScriptCore.so.18.7.4
------------------------------------+----------------------------
  Reporter:  KapiX                  |      Owner:  anevilyak
      Type:  bug                    |     Status:  closed
  Priority:  normal                 |  Milestone:  Unscheduled
 Component:  Applications/Debugger  |    Version:  R1/Development
Resolution:  duplicate              |   Keywords:
Blocked By:  14346                  |   Blocking:
  Platform:  All                    |
------------------------------------+----------------------------
Comment (by KapiX):

 Function at fault:
 {{{#!c++
 template<typename T>
 CString nodeValuePairListDump(const T& nodeValuePairList, DumpContext*
 context = 0)
 {
     using V = typename T::ValueType;
     T sortedList = nodeValuePairList;
     std::sort(sortedList.begin(), sortedList.end(), [](const V& a, const
 V& b) {
         return NodeComparator()(a.node, b.node);
     });
 }}}

 Symbol
 {{{
 JSC::DFG::nodeValuePairListDump<WTF::Vector<JSC::DFG::NodeAbstractValuePair,
 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>

(WTF::Vector<JSC::DFG::NodeAbstractValuePair, 0ul, WTF::CrashOnOverflow,
 16ul, WTF::FastMalloc> const&,
 JSC::DumpContext*)::{lambda(JSC::DFG::NodeAbstractValuePair const&,
 JSC::DFG::NodeAbstractValuePair
 const&)#1}::operator()(JSC::DFG::NodeAbstractValuePair const&,
 JSC::DFG::NodeAbstractValuePair const&) const
 }}}

 It loops after resolving up to (in GetFullyQualifiedDIEName):
 {{{
 JSC::DFG::nodeValuePairListDump<WTF::Vector<JSC::DFG::NodeAbstractValuePair>
(const WTF::Vector<JSC::DFG::NodeAbstractValuePair, 0,
 WTF::CrashOnOverflow, 16, WTF::FastMalloc>&,
 JSC::DumpContext*)::<lambda(const V&, const V&)>::
 }}}
 then in GetFullDIEName:
 {{{
 generatedName {
         fPrivateData: operator()(
 }
 }}}
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16040#comment:5>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: