#4502 closed defect (fixed)

rld-rap.cpp: Uncaught exception issue spotted by Coverity

Reported by: Ryan Long Owned by: Ryan Long <ryan.long@…>
Priority: normal Milestone: 6.1
Component: tool Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

CID 1471643: Uncaught exception

   CID 1471643 (#1 of 1): Uncaught exception (UNCAUGHT_EXCEPT)exn_spec_violation: An exception of type rld::error is thrown but the throw list noexcept doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
724    section_merge::~section_merge ()
725    {
726      if (rld::verbose () >= RLD_VERBOSE_FULL_DEBUG)
   fun_call_w_exception: Called function throws an exception of type rld::error. [show details]
727        std::cout << "rap:section-merge: " << sec.name
728                  << " size=" << sec.size ()
729                  << " offset=" << sec.offset
730                  << " " << obj.obj.name ().full ()  << std::endl;
731    }

Change History (1)

comment:1 Changed on Oct 8, 2021 at 1:58:49 PM by Ryan Long <ryan.long@…>

Owner: set to Ryan Long <ryan.long@…>
Resolution: fixed
Status: newclosed

In 5519a63/rtems-tools:

rld-rapp.cpp: Add catch for exception

CID 1471643: Uncaught exception

Closes #4502

Note: See TracTickets for help on using tickets.