[haiku-bugs] Re: [Haiku] #6793: Issues with __cxa_atexit

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sat, 06 Nov 2010 15:08:23 -0000

#6793: Issues with __cxa_atexit
--------------------------------+------------------------------
  Reporter:  kaliber            |        Owner:  axeld
      Type:  bug                |       Status:  new
  Priority:  normal             |    Milestone:  R1
 Component:  System/libroot.so  |      Version:  R1/Development
Resolution:                     |     Keywords:
Blocked By:                     |  Has a Patch:  0
  Platform:  All                |     Blocking:
--------------------------------+------------------------------

Comment (by bonefish):

 My guess is that `__cxa_finalize()` is not called when add-ons are
 unloaded (hence the exit hooks for already unloaded add-ons are invoked
 when the program exits). AFAIK it is the compiler's responsibility to put
 such a call in the termination routine of a shared object. Please add one
 of the print server add-ons to the ticket (one that calls `__cxa_atexit()`
 -- check with `nm`), so I can examine it.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6793#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: