bug-gnustep
[Top][All Lists]
Advanced

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

[bug #42717] Crash in -[NSBox(Private) calcSizesAllowingNegative:]


From: Yavor Doganov
Subject: [bug #42717] Crash in -[NSBox(Private) calcSizesAllowingNegative:]
Date: Mon, 21 Jul 2014 08:43:45 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

Follow-up Comment #11, bug #42717 (project gnustep):

No crash if I apply your changes in r38003.

If it is a compiler bug, most probably it is present in earlier versions as
this bug was reported last year when 4.9 was not released yet.  However, it
may be that GCC is taking advantage of the "undefined behaviour" scenario and
is optimizing in a way that leads to a crash.  Very often code that works with
-O0 but fails with -O2 reveals a bug in the code, not the compiler.  In any
case, if it is a compiler bug, it should be haunted down and fixed rather than
the code adapted to cope with it.  IMHO.  It might be difficult to write a
self-contained example exposing the bug, though.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42717>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]