[PATCH 2/6] Turn device ports into reference counted objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 08, 2011 at 09:54:01AM +0100, David Henningsson wrote:
> On 11/08/2011 09:31 AM, Maarten Bosmans wrote:

> >That's exactly why you should compile without asserts enable for
> >production builds.

> I'm afraid that approach won't work for Ubuntu - there are way too
> many cases where we *don't* do proper error handling, and where the
> assert is the difference between being able to actually find the bug
> (proper stack trace is collected by Ubuntu's bug reporting system
> "apport") and horribly failing with a sigsegv somewhere later on
> with minimal possibilities to understand what happened.

This sounds like apport wants something like the equivalent of the
kernel's WARN_ON() support which behaves like an assert in terms of
logging and whatnot but is non-fatal.


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux