[haiku-bugs] Re: [Haiku] #5668: net_server often crashes after boot

  • From: "marcusoverhagen" <trac@xxxxxxxxxxxx>
  • Date: Wed, 20 Jul 2011 16:08:33 -0000

#5668: net_server often crashes after boot
----------------------------------+----------------------------
   Reporter:  luroh               |      Owner:  axeld
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Servers/net_server  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:  4470, 7665
Has a Patch:  0                   |   Platform:  x86
----------------------------------+----------------------------

Comment (by marcusoverhagen):

 In r33050, a similar bug was closed with the following comment
 ''Net_server starts services by invoking fork() followed by exec(). If the
 latter fails (for instance because the service isn't installed), the
 forked child is invoking exit(). This in turn unloads libbe, triggering
 static cleanup code in BMessage, which deletes a couple of message ports
 that were inherited from the parent during the fork.[...]''

 Doesn't the same problem apply to the global BLocker member of
 '''BLooperList gLooperList;''' in LooperList.cpp? I had used
 BLOCKER_ALWAYS_SEMAPHORE_STYLE during testing.

 What happens to other libraries global port/sem/thread ids after a
 fork/exec/exit?

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

Other related posts: