Dbug vs. no debug mode and asserts

Benedikt Meurer Benedikt.Meurer at unix-ag.uni-siegen.de
Wed Apr 9 22:34:52 CEST 2003


On Wed, 09, Apr 2003, Olivier Fourdan wrote:

> Hi Benny,

Hello Olivier,

> I noticed that you commented out the checks and asserts in some modules
> when no debug was selected. I also noticed that you set G_DIABLE_CHECKS
> and G_DISABLE_ASSERT at compile time.
> 
> This is a really bad idea and such changes must be reverted. If people
> put g_return_[val_]if_fail() and g_assert() in their code, it's on
> purpose.
> 
> The point is that I prefer a program that crashes straight away rather
> than a program that does unpredictable things (including potential
> security holes) due to memory corruption, even when that program is
> supposed to be "stable".

I improved the debug.m4 to address this issue. Please see the commit
message for details.

> Cheers, 

regards,
Benedikt

-- 
Those who do not understand Unix are condemned to reinvent it, poorly.
    -- Henry Spencer



More information about the Xfce4-dev mailing list