bug-gnustep
[Top][All Lists]
Advanced

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

[bug #23039] gdnc crashes on OpenBSD/sparc64 on application connection


From: Sebastian Reitenbach
Subject: [bug #23039] gdnc crashes on OpenBSD/sparc64 on application connection
Date: Sat, 24 May 2008 13:41:12 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5) KHTML/3.5.7 (like Gecko) SUSE

Follow-up Comment #16, bug #23039 (project gnustep):

compiled with gcc 4.2, linked against libffi, gdnc does not crash anymore,
however, e.g. SystemPreferences died on startup with an again, different
backtrace:

$ openapp Gorm
2008-05-24 12:17:45.860 Gorm[4797] File NSLock.m: 611. In
[GSLazyRecursiveLock -gcFinalize] objc_mutex_deallocate() failed

sebastia@ops:~> cat /tmp/systempreferences.bug.libffi.gcc4.2
$ debugapp SystemPreferences
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc64-unknown-openbsd4.3"...
(gdb) r
Starting program:
/usr/GNUstep/System/Applications/SystemPreferences.app/SystemPreferences

Program received signal SIGBUS, Bus error.
0x0000000043d61360 in NSCountFrames () at NSDebug.m:991
991           _NS_COUNT_HACK(15); _NS_COUNT_HACK(16); _NS_COUNT_HACK(17);
Current language:  auto; currently minimal
(gdb) bt
#0  0x0000000043d61360 in NSCountFrames () at NSDebug.m:991
#1  0x0000000043d6c328 in GSPrivateStackAddresses () at NSDebug.m:1100
#2  0x0000000043d8fe78 in -[NSException raise] (self=0x4b2d7b90,
_cmd=0x442895b0) at NSException.m:822
#3  0x0000000043c5dc04 in -[GSArray _raiseRangeExceptionWithIndex:from:]
(self=0x4b2d7810, _cmd=0x44289720, index=0, sel=0x4667ec50)
    at GSArray.m:84
#4  0x0000000043c5eed0 in -[GSArray objectAtIndex:] (self=0x4b2d7810,
_cmd=0x4667ec50, index=0) at GSArray.m:304
#5  0x000000004619357c in -[NSMenuView menuItemCellForItemAtIndex:]
(self=0x4d3a5010, _cmd=0x4667ec20, index=0) at NSMenuView.m:401
#6  0x00000000461939e4 in -[NSMenuView itemChanged:] (self=0x4d3a5010,
_cmd=0x4667eb40, notification=0x4b2d7a90) at NSMenuView.m:442
#7  0x0000000043df3b08 in -[NSNotificationCenter _postAndRelease:]
(self=0x415a31b0, _cmd=0x442daad0, notification=0x4b2d7a90)
    at NSNotificationCenter.m:1070
#8  0x0000000043df477c in -[NSNotificationCenter postNotification:]
(self=0x415a31b0, _cmd=0x4667b168, notification=0x4b2d7a90)
    at NSNotificationCenter.m:1099
#9  0x0000000046188cf4 in -[NSMenu itemChanged:] (self=0x48ddf910,
_cmd=0x46681100, anObject=0x4b1fff10) at NSMenu.m:712
#10 0x000000004619f3a0 in -[NSMenuItem setTarget:] (self=0x4b1fff10,
_cmd=0x46681080, anObject=0x48ddf910) at NSMenuItem.m:380
#11 0x000000004619d8d8 in -[NSMenuItem setSubmenu:] (self=0x4b1fff10,
_cmd=0x4667b268, submenu=0x4d3a7790) at NSMenuItem.m:183
#12 0x0000000046189d78 in -[NSMenu setSubmenu:forItem:] (self=0x48ddf910,
_cmd=0x30b548, aMenu=0x4d3a7790, anItem=0x4b1fff10) at NSMenu.m:869
#13 0x0000000000101ef8 in createMenu () at main.m:38
#14 0x00000000001019d0 in gnustep_base_user_main (argc=1,
argv=0xfffffffffffdf008, env=0xfffffffffffdf018) at main.m:11
#15 0x0000000043e4a300 in main (argc=1, argv=0xfffffffffffdf008,
env=0xfffffffffffdf018) at NSProcessInfo.m:913
#16 0x0000000000101618 in ___start ()
#17 0x0000000049a02f24 in _dl_start () from /usr/libexec/ld.so
#18 0x0000000049a02f24 in _dl_start () from /usr/libexec/ld.so
Previous frame identical to this frame (corrupt stack?)
(gdb) list  GSArray.m:304
299
300     - (id) objectAtIndex: (unsigned)index
301     {
302       if (index >= _count)
303         {
304             [self _raiseRangeExceptionWithIndex: index from: _cmd];
305         }
306       return _contents_array[index];
307     }
308
(gdb) list NSMenuView.m:401
396       [self setNeedsSizing: YES];
397     }
398
399     - (NSMenuItemCell*) menuItemCellForItemAtIndex: (int)index
400     {
401       return [_itemCells objectAtIndex: index];
402     }
403
404     - (NSMenuView*) attachedMenuView
405     {
(gdb) list NSMenuView.m:442
437      */
438     - (void) itemChanged: (NSNotification*)notification
439     {
440       int index = [[[notification userInfo] objectForKey:
@"NSMenuItemIndex"]
441                     intValue];
442       NSMenuItemCell *aCell = [self menuItemCellForItemAtIndex: index];
443
444       // Enabling of the item may have changed
445       [aCell setEnabled: [[aCell menuItem] isEnabled]];
446       // Mark the cell associated with the item as needing resizing.
(gdb) frame 6
#6  0x00000000461939e4 in -[NSMenuView itemChanged:] (self=0x4d3a5010,
_cmd=0x4667eb40, notification=0x4b2d7a90) at NSMenuView.m:442
442       NSMenuItemCell *aCell = [self menuItemCellForItemAtIndex: index];
(gdb) print index
$1 = 0
(gdb)
$2 = 0
(gdb)

David, yes, I took the libffi 3.0.5 from that page. Running the testsuite
indeed had 9 unexpected failures, and 15 unsupported tests.

in all tests up to now, ffcall and libffi were compiled using gcc 3.3.5.

now I'm going to compile these too with gcc 4.2.

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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