[RTEMS Project] #4270: A failing task extension produces zombi objects and resource leaks

RTEMS trac trac at rtems.org
Thu Feb 25 17:40:21 UTC 2021


#4270: A failing task extension produces zombi objects and resource leaks
------------------------------+-----------------------------
  Reporter:  Sebastian Huber  |      Owner:  Sebastian Huber
      Type:  defect           |     Status:  assigned
  Priority:  normal           |  Milestone:  6.1
 Component:  score            |    Version:
  Severity:  normal           |   Keywords:
Blocked By:                   |   Blocking:
------------------------------+-----------------------------
 In _Thread_Initialize() we have this code:
 {{{
   _Objects_Open_u32( &information->Objects, &the_thread->Object,
 config->name );

   /*
    *  We assume the Allocator Mutex is locked and dispatching is
    *  enabled when we get here.  We want to be able to run the
    *  user extensions with dispatching enabled.  The Allocator
    *  Mutex provides sufficient protection to let the user extensions
    *  run safely.
    */
   extension_status = _User_extensions_Thread_create( the_thread );
   if ( extension_status )
     return true;
 }}}
 If an extension fails, then the thread object is not closed. Also the
 terminate and delete extensions are not called.

--
Ticket URL: <http://devel.rtems.org/ticket/4270>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list