On Wed, 08 Aug 2018 01:34:25 +0300, Josh Freeman wrote: > It seems to be a gcc/gobjc compiler/runtime bug: Sending a nil > message using a method signature that returns a structure > (ex. -[NSView bounds] -> NSRect) results in: > 1. Garbage values in the returned structure's members (affects: > 32-bit/64-bit, debug/non-debug) > 2. A corrupted stack (affects: 32-bit w/non-debug)
Many thanks for finding this out. It explains many hours spent in fruitless debugging sessions and some truly obscure bugs I've seen in Adun, Cenon, Lynkeos and other apps... Unfortunately this bug has nasty consequences as quite a lot of GUI methods return structs and most users (and distros) usually build with -O2. The good news is that I managed to find out the revisions which fixed the bug and reintroduced it again, reworked your test program to pure Objective-C and reported it: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86913 _______________________________________________ Discuss-gnustep mailing list Discuss-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnustep