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

2014-07-10 Thread Yavor Doganov
Follow-up Comment #2, bug #42717 (project gnustep):

Yep, I noticed that dubious aFlag too.  It looks like it is exactly the same
problem that was reported in 2013.

If I put a break on -[NSBox setBorderType:], aType is garbage (10-digit
number) instead of the expected value of 3.  Going further back to
-[GSXibKeyedUnarchiver decodeObjectForXib:forClassName:withID:], o is
optimized on i386, while it is not on amd64.  So I tried with gnustep-gui
rebuilt with no optimization (-O0) and the problem doesn't happen -- Cenon
starts and works.  Hope that this gives you some clue.  

It seems that -allocObjectForClassName: doesn't return a valid object and then
it gets messy in -initWithCoder:.  But I may be wrong here.
I'd appreciate any directions how to proceed further.

___

Reply to this item at:

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

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


___
Bug-gnustep mailing list
Bug-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnustep


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

2014-07-10 Thread Yavor Doganov
Follow-up Comment #3, bug #42717 (project gnustep):

When built with -O1, -calcSizesAllowingNegative: doesn't crash when called
from -setBorderType: (aType there is 3 as expected) but from
-setTitlePosition:


Breakpoint 1, -[NSBox setTitlePosition:] (self=0x921f6b0, 
_cmd=0xb7edb618 _OBJC_SELECTOR_TABLE+600, aPosition=NSAtTop)
at NSBox.m:192
192 {
(gdb) n
193   if (_title_position != aPosition)
(gdb) 
195   _title_position = aPosition;
(gdb) 
196   [_content_view setFrame: [self calcSizesAllowingNegative: NO]];
(gdb) 

Program received signal SIGSEGV, Segmentation fault.
0x0921f6c9 in ?? ()
(gdb) bt
#0  0x0921f6c9 in ?? ()
#1  0x4250 in ?? ()
#2  0x00180071 in ?? ()
#3  0xb7edab8b in _OBJC_METH_VAR_TYPE_5 ()
   from /usr/lib/libgnustep-gui.so.0.24
#4  0x00120056 in ?? ()
#5  0xb7edab95 in _OBJC_METH_VAR_TYPE_4 ()
   from /usr/lib/libgnustep-gui.so.0.24
#6  0x000c0080 in ?? ()
#7  0xb7edab95 in _OBJC_METH_VAR_TYPE_4 ()
   from /usr/lib/libgnustep-gui.so.0.24
#8  0x00190069 in ?? ()
#9  0xb7edab95 in _OBJC_METH_VAR_TYPE_4 ()
   from /usr/lib/libgnustep-gui.so.0.24
#10 0x000f0036 in ?? ()
#11 0xb7edab6c in _OBJC_METH_VAR_TYPE_15 ()
   from /usr/lib/libgnustep-gui.so.0.24
#12 0x000d0080 in ?? ()
#13 0xb7edab6c in _OBJC_METH_VAR_TYPE_15 ()
   from /usr/lib/libgnustep-gui.so.0.24
#14 0x000e0080 in ?? ()
#15 0xb7edab20 in _OBJC_METH_VAR_TYPE_17 ()
   from /usr/lib/libgnustep-gui.so.0.24
#16 0x00090001 in ?? ()
#17 0xb7edab6c in _OBJC_METH_VAR_TYPE_15 ()
   from /usr/lib/libgnustep-gui.so.0.24
#18 0x000a0001 in ?? ()
#19 0xb7eda9a7 in _OBJC_METH_VAR_TYPE_85 ()
   from /usr/lib/libgnustep-gui.so.0.24
#20 0x00130003 in ?? ()
#21 0xb7eda991 in _OBJC_METH_VAR_TYPE_87 ()
   from /usr/lib/libgnustep-gui.so.0.24
#22 0x000f0080 in ?? ()
#23 0xb7edaafb in _OBJC_METH_VAR_TYPE_21 ()
   from /usr/lib/libgnustep-gui.so.0.24
#24 0x00100080 in ?? ()
#25 0xb7eda940 in ?? () from /usr/lib/libgnustep-gui.so.0.24
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Corrupt stack again.

___

Reply to this item at:

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

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


___
Bug-gnustep mailing list
Bug-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnustep