On 27 Oct 2010, at 22:53, Riccardo Mottola wrote: > Hi, > > since quite recent changes (less than a week I suppose) on FreeBSD with gcc > all apps do crash. Here a stacktrace for Ink: > > gs_objc_msg_forward (sel=0x283dbeb8) at GSFFIInvocation.m:137 > 137 c = receiver->isa; > Current language: auto; currently minimal > (gdb) bt > #0 gs_objc_msg_forward (sel=0x283dbeb8) at GSFFIInvocation.m:137 > #1 0x28856e75 in objc_msg_lookup () from /usr/lib/libobjc.so.4 > #2 0x2821d2e9 in -[NSMenuItemCell calcSize] (self=0x29843848, > _cmd=0x283dbf00) > at NSMenuItemCell.m:315 > #3 0x2821c491 in -[NSMenuItemCell stateImageWidth] (self=0x29843848, > _cmd=0x283d9248) at NSMenuItemCell.m:380 > #4 0x282167d3 in -[NSMenuView sizeToFit] (self=0x2902a308, _cmd=0x283d9268) > at NSMenuView.m:751 > #5 0x28214a63 in -[NSMenuView rectOfItemAtIndex:] (self=0x2902a308, > _cmd=0x283d9270, index=7) at NSMenuView.m:943 > #6 0x28212389 in -[NSMenuView setNeedsDisplayForItemAtIndex:] ( > self=0x2902a308, _cmd=0x283d90c8, index=7) at NSMenuView.m:1010 > #7 0x28212942 in -[NSMenuView itemChanged:] (self=0x2902a308, > _cmd=0x283d9028, notification=0x29863fa8) at NSMenuView.m:460 > #8 0x285d245e in -[NSNotificationCenter _postAndRelease:] (self=0x29032dd8, > _cmd=0x287f58c8, notification=0x29863fa8) at NSNotificationCenter.m:1161 > #9 0x285d1a8b in -[NSNotificationCenter postNotification:] (self=0x29032dd8, > _cmd=0x283d6548, notification=0x29863fa8) at NSNotificationCenter.m:1190 > #10 0x2820ddd4 in -[NSMenu itemChanged:] (self=0x29345d88, _cmd=0x283da898, > anObject=0x29837978) at NSMenu.m:846 > #11 0x282187b0 in -[NSMenuItem setAction:] (self=0x29837978, _cmd=0x28396468, > aSelector=0x29015948) at NSMenuItem.m:477 > #12 0x2817fa18 in -[NSNibControlConnector establishConnection] ( > > > Ideas? Riccardo
Nothing in the ChangeLog, but I found that David had modified GSFFIInvocation.m so that it dereferences the null pointer 'receiver' at line 137 as shown in your stacktrace. I reverted to the previous version of the code. I guess it must have been an accidental commit on his part, since there was a clear comment immediately before that line warning that 'receiver' can be a null pointer. _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev