[haiku-development] Re: Odd errors messages while building DEBUG=1

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 15 Apr 2013 12:21:52 +0200 (CEST)

On April 15, 2013 at 2:45 AM Rene Gollent <anevilyak@xxxxxxxxx> wrote:
> Found and corrected that problem. This gets the boot to the point of
> starting net_server, which then also panics the BReferenceable code by
> virtue of this:
> http://cgit.haiku-os.org/haiku/tree/src/add-ons/kernel/network/notifications/notifications.cpp/#n136
> Given how that object's being used, I'm somewhat unclear on why it's a
> BReferenceable subclass at all, since that seems a bit unsafe for a
> statically allocated object.

The BReferenceable is in fact not used there to destroy the object, but only to
keep the module loaded in the first place as long as it is in use.
Why exactly does it panic?


Other related posts: