discuss-gnustep
[Top][All Lists]
Advanced

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

Re: gnustep compiled with clang and gworkspace problem


From: Sebastian Reitenbach
Subject: Re: gnustep compiled with clang and gworkspace problem
Date: Mon, 03 Oct 2011 15:17:13 +0200
User-agent: Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.9.2.18) Gecko/20110719 Thunderbird/3.1.11

On 10/03/11 12:50, Fred Kiefer wrote:
> The failed test for gui are unrelated to the GWorkspace issue. We
> shoudl start to flag tests that are expected to fail in gui, just as
> this was doen in base. The tests in gui are still somewhat minimal,
> any help with these is highly welcome.
> For me (with gcc) only one of the NSBrowser tests fails, but there are
> also two NSView tests that are expected to fail.
>
> The problem with GSColorSliderCell is that the same class gets used by
> different bundles and that we therefore load it multiple times. This
> has worked fine for a long time with the gcc Objective-C runtime but
> caused some trouble with other runtimes. I think David changed the new
> libobjc2 runtime specifically for this case to allow the same class
> being loaded twice. Perhaps we could try to rearrange the code here.
> And seven of the ten colour modes could be handled by a gradient
> anyway...
>
> I don't know anything about the other errors you are getting. Here a
> back trace from gdb could help. Just set a break point on [NSException
> raise] and report back.
>
since the clang 3.0 is still compiling, here the gdb backtraces compiled
with gcc:
running gnustep-tests --debug, here the backtraces from lazy_copy:


(gdb) r
Starting program:
/home/ports/pobj/gnustep-gui-0.20.0/gnustep-gui-0.20.0/Tests/gui/NSPasteboard/obj/lazy_copy

Breakpoint 2 at 0x5c7caae: file NSException.m, line 956.
Pending breakpoint "-[NSException raise]" resolved
[Switching to process 26819, thread 0x7cd17800]

Breakpoint 2, -[NSException raise] (self=0x86b68708, _cmd=0x25c34900) at
NSException.m:956
956       if (_reserved == 0)
Current language:  auto; currently minimal
(gdb) bt
#0  -[NSException raise] (self=0x86b68708, _cmd=0x25c34900) at
NSException.m:956
#1  0x05c3953b in -[NSConnection(GNUstepExtensions)
forwardInvocation:forProxy:] (self=0x87c498a8, _cmd=0x25c3d850,
inv=0x8b536a08, object=0x808e1648) at NSConnection.m:2091
#2  0x05c76961 in -[NSDistantObject forwardInvocation:]
(self=0x808e1648, _cmd=0x25c93d08, anInvocation=0x8b536a08) at
NSDistantObject.m:606
#3  0x05da0b7a in GSFFIInvocationCallback (cif=0x7cc38100,
retp=0xcfbe0e90, args=0xcfbe0e10, user=0x86b68908) at GSFFIInvocation.m:624
#4  0x1044aa27 in ffi_closure_SYSV_inner (closure=0x87b06000,
respp=0xcfbe0e9c, args=0xcfbe0eb0) at src/x86/ffi.c:414
#5  0x1044ae7a in ffi_closure_SYSV () from /usr/local/lib/libffi.so.0.0
#6  0x05c79407 in -[NSDistributedNotificationCenter
addObserver:selector:name:object:suspensionBehavior:] (self=0x87e1bf08,
_cmd=0x25c3ef10, anObserver=0x8b19e1c8, aSelector=0x206b76a8,
    notificationName=0x206b6aa4, anObject=0x0, suspensionBehavior=2) at
NSDistributedNotificationCenter.m:339
#7  0x05c790a1 in -[NSDistributedNotificationCenter
addObserver:selector:name:object:] (self=0x87e1bf08, _cmd=0x206b7680,
anObserver=0x8b19e1c8, aSelector=0x206b76a8,
notificationName=0x206b6aa4, anObject=0x0)
    at NSDistributedNotificationCenter.m:263
#8  0x008ce970 in +[NSPasteboard(Private) _pbs] (self=0x206b7140,
_cmd=0x206b7520) at NSPasteboard.m:2050
#9  0x008cc03c in +[NSPasteboard pasteboardWithName:] (self=0x206b7140,
_cmd=0x3c0012d0, aName=0x3c0011f0) at NSPasteboard.m:1211
#10 0x1c000db8 in gnustep_base_user_main (argc=1, argv=0xcfbe1128) at
lazy_copy.m:31
#11 0x05cf9480 in main (argc=1, argv=0xcfbe1128, env=0xcfbe1130) at
NSProcessInfo.m:979
#12 0x1c0009a7 in ___start ()
#13 0x1c000922 in _start ()
(gdb) c
Continuing.

Breakpoint 2, -[NSException raise] (self=0x86b68708, _cmd=0x25c3eed8) at
NSException.m:956
956       if (_reserved == 0)
(gdb) bt
#0  -[NSException raise] (self=0x86b68708, _cmd=0x25c3eed8) at
NSException.m:956
#1  0x05c7946b in -[NSDistributedNotificationCenter
addObserver:selector:name:object:suspensionBehavior:] (self=0x87e1bf08,
_cmd=0x25c3ef10, anObserver=0x8b19e1c8, aSelector=0x206b76a8,
    notificationName=0x206b6aa4, anObject=0x0, suspensionBehavior=2) at
NSDistributedNotificationCenter.m:349
#2  0x05c790a1 in -[NSDistributedNotificationCenter
addObserver:selector:name:object:] (self=0x87e1bf08, _cmd=0x206b7680,
anObserver=0x8b19e1c8, aSelector=0x206b76a8,
notificationName=0x206b6aa4, anObject=0x0)
    at NSDistributedNotificationCenter.m:263
#3  0x008ce970 in +[NSPasteboard(Private) _pbs] (self=0x206b7140,
_cmd=0x206b7520) at NSPasteboard.m:2050
#4  0x008cc03c in +[NSPasteboard pasteboardWithName:] (self=0x206b7140,
_cmd=0x3c0012d0, aName=0x3c0011f0) at NSPasteboard.m:1211
#5  0x1c000db8 in gnustep_base_user_main (argc=1, argv=0xcfbe1128) at
lazy_copy.m:31
#6  0x05cf9480 in main (argc=1, argv=0xcfbe1128, env=0xcfbe1130) at
NSProcessInfo.m:979
#7  0x1c0009a7 in ___start ()
#8  0x1c000922 in _start ()
(gdb) c
Continuing.

Breakpoint 2, -[NSException raise] (self=0x86b68c08, _cmd=0x25c404a8) at
NSException.m:956
956       if (_reserved == 0)
(gdb) bt
#0  -[NSException raise] (self=0x86b68c08, _cmd=0x25c404a8) at
NSException.m:956
#1  0x05c7c203 in +[NSException raise:format:arguments:]
(self=0x25c402c0, _cmd=0x25c40490, name=0x2068e4ac, format=0x206b6948,
argList=0xcfbe1000 "h\212¶\206\213") at NSException.m:849
#2  0x05c7c13b in +[NSException raise:format:] (self=0x25c402c0,
_cmd=0x206b7540, name=0x2068e4ac, format=0x206b6948) at NSException.m:835
#3  0x008cc1b8 in +[NSPasteboard pasteboardWithName:] (self=0x206b7140,
_cmd=0x3c0012d0, aName=0x3c0011f0) at NSPasteboard.m:1228
#4  0x1c000db8 in gnustep_base_user_main (argc=1, argv=0xcfbe1128) at
lazy_copy.m:31
#5  0x05cf9480 in main (argc=1, argv=0xcfbe1128, env=0xcfbe1130) at
NSProcessInfo.m:979
#6  0x1c0009a7 in ___start ()
#7  0x1c000922 in _start ()
(gdb) c
Continuing.
/home/ports/pobj/gnustep-gui-0.20.0/gnustep-gui-0.20.0/Tests/gui/NSPasteboard/obj/lazy_copy:
Uncaught exception NSPasteboardCommunicationException, reason:
NSConection types (v@0:4Q8@16@20@24I28@32 / v36@0:4Q8@16@20@24L28@32)
missmatch for addObserver:selector:name:object:suspensionBehavior:for:

Program received signal SIGABRT, Aborted.
0x05e2673d in kill () from /usr/lib/libc.so.60.1
(gdb) bt
#0  0x05e2673d in kill () from /usr/lib/libc.so.60.1
#1  0x05e8cec5 in abort () at /usr/src/lib/libc/stdlib/abort.c:68
#2  0x05c7bdd5 in _terminate () at NSException.m:751
#3  0x05c7bffb in _NSFoundationUncaughtExceptionHandler
(exception=0x86b68c08) at NSException.m:775
#4  0x05c7c038 in callUncaughtHandler (value=0x86b68c08) at
NSException.m:795
#5  0x05c7cb80 in -[NSException raise] (self=0x86b68c08,
_cmd=0x25c404a8) at NSException.m:992
#6  0x05c7c203 in +[NSException raise:format:arguments:]
(self=0x25c402c0, _cmd=0x25c40490, name=0x2068e4ac, format=0x206b6948,
argList=0xcfbe1000 "h\212¶\206\213") at NSException.m:849
#7  0x05c7c13b in +[NSException raise:format:] (self=0x25c402c0,
_cmd=0x206b7540, name=0x2068e4ac, format=0x206b6948) at NSException.m:835
#8  0x008cc1b8 in +[NSPasteboard pasteboardWithName:] (self=0x206b7140,
_cmd=0x3c0012d0, aName=0x3c0011f0) at NSPasteboard.m:1228
#9  0x1c000db8 in gnustep_base_user_main (argc=1, argv=0xcfbe1128) at
lazy_copy.m:31
#10 0x05cf9480 in main (argc=1, argv=0xcfbe1128, env=0xcfbe1130) at
NSProcessInfo.m:979
#11 0x1c0009a7 in ___start ()
#12 0x1c000922 in _start ()


and here the backtraces from setDelegate_reload:
(gdb) r
Starting program:
/home/ports/pobj/gnustep-gui-0.20.0/gnustep-gui-0.20.0/Tests/gui/NSSavePanel/obj/setDelegate_reload

Breakpoint 2 at 0x82b7aae: file NSException.m, line 956.
Pending breakpoint "-[NSException raise]" resolved
[Switching to process 29281, thread 0x7e3e5800]

Breakpoint 2, -[NSException raise] (self=0x8a175548, _cmd=0x2826f900) at
NSException.m:956
956       if (_reserved == 0)
Current language:  auto; currently minimal
(gdb) bt
#0  -[NSException raise] (self=0x8a175548, _cmd=0x2826f900) at
NSException.m:956
#1  0x0827453b in -[NSConnection(GNUstepExtensions)
forwardInvocation:forProxy:] (self=0x81de8bd8, _cmd=0x28278850,
inv=0x880d4c08, object=0x82172608) at NSConnection.m:2091
#2  0x082b1961 in -[NSDistantObject forwardInvocation:]
(self=0x82172608, _cmd=0x282ced08, anInvocation=0x880d4c08) at
NSDistantObject.m:606
#3  0x083dbb7a in GSFFIInvocationCallback (cif=0x7f273d00,
retp=0xcfbcb3c0, args=0xcfbcb340, user=0x8a175b68) at GSFFIInvocation.m:624
#4  0x095eca27 in ffi_closure_SYSV_inner (closure=0x84530000,
respp=0xcfbcb3cc, args=0xcfbcb3e0) at src/x86/ffi.c:414
#5  0x095ece7a in ffi_closure_SYSV () from /usr/local/lib/libffi.so.0.0
#6  0x082b4407 in -[NSDistributedNotificationCenter
addObserver:selector:name:object:suspensionBehavior:] (self=0x81de9bc8,
_cmd=0x28279f10, anObserver=0x86020468, aSelector=0x27431640,
notificationName=0x0,
    anObject=0x27430a2c, suspensionBehavior=2) at
NSDistributedNotificationCenter.m:339
#7  0x082b40a1 in -[NSDistributedNotificationCenter
addObserver:selector:name:object:] (self=0x81de9bc8, _cmd=0x27431648,
anObserver=0x86020468, aSelector=0x27431640, notificationName=0x0,
anObject=0x27430a2c)
    at NSDistributedNotificationCenter.m:263
#8  0x075f7ad4 in -[_GSWorkspaceCenter init] (self=0x86020468,
_cmd=0x28294908) at NSWorkspace.m:292
#9  0x0830a0dc in +[NSObject new] (self=0x274314c0, _cmd=0x274315c8) at
NSObject.m:1168
#10 0x075f8b0e in -[NSWorkspace init] (self=0x86020108, _cmd=0x27431630)
at NSWorkspace.m:692
#11 0x075f88c4 in +[NSWorkspace sharedWorkspace] (self=0x274313c0,
_cmd=0x273f0050) at NSWorkspace.m:644
#12 0x075490aa in -[NSSavePanel(GSBrowserDelegate)
browser:createRowsForColumn:inMatrix:] (self=0x89f83008,
_cmd=0x2738efa0, sender=0x8b470408, column=0, matrix=0x80925e08) at
NSSavePanel.m:1633
#13 0x074529fe in -[NSBrowser(Private) _performLoadOfColumn:]
(self=0x8b470408, _cmd=0x2738eb00, column=0) at NSBrowser.m:3072
#14 0x0744ad3b in -[NSBrowser addColumn] (self=0x8b470408,
_cmd=0x2738e9f0) at NSBrowser.m:817
#15 0x0744b671 in -[NSBrowser loadColumnZero] (self=0x8b470408,
_cmd=0x273f0048) at NSBrowser.m:1057
#16 0x07544833 in -[NSSavePanel(PrivateMethods) _reloadBrowser]
(self=0x89f83008, _cmd=0x273f0218) at NSSavePanel.m:442
#17 0x07548b17 in -[NSSavePanel setShowsHiddenFiles:] (self=0x89f83008,
_cmd=0x3c001e38, flag=1 '\001') at NSSavePanel.m:1465
#18 0x1c000ea8 in gnustep_base_user_main (argc=1, argv=0xcfbcb888) at
setDelegate_reload.m:63
#19 0x08334480 in main (argc=1, argv=0xcfbcb888, env=0xcfbcb890) at
NSProcessInfo.m:979
#20 0x1c0009b7 in ___start ()
#21 0x1c000932 in _start ()
(gdb) c
Continuing.
Breakpoint 2, -[NSException raise] (self=0x8a175548, _cmd=0x28279ed8) at
NSException.m:956
956       if (_reserved == 0)
(gdb) bt
#0  -[NSException raise] (self=0x8a175548, _cmd=0x28279ed8) at
NSException.m:956
#1  0x082b446b in -[NSDistributedNotificationCenter
addObserver:selector:name:object:suspensionBehavior:] (self=0x81de9bc8,
_cmd=0x28279f10, anObserver=0x86020468, aSelector=0x27431640,
notificationName=0x0,
    anObject=0x27430a2c, suspensionBehavior=2) at
NSDistributedNotificationCenter.m:349
#2  0x082b40a1 in -[NSDistributedNotificationCenter
addObserver:selector:name:object:] (self=0x81de9bc8, _cmd=0x27431648,
anObserver=0x86020468, aSelector=0x27431640, notificationName=0x0,
anObject=0x27430a2c)
    at NSDistributedNotificationCenter.m:263
#3  0x075f7ad4 in -[_GSWorkspaceCenter init] (self=0x86020468,
_cmd=0x28294908) at NSWorkspace.m:292
#4  0x0830a0dc in +[NSObject new] (self=0x274314c0, _cmd=0x274315c8) at
NSObject.m:1168
#5  0x075f8b0e in -[NSWorkspace init] (self=0x86020108, _cmd=0x27431630)
at NSWorkspace.m:692
#6  0x075f88c4 in +[NSWorkspace sharedWorkspace] (self=0x274313c0,
_cmd=0x273f0050) at NSWorkspace.m:644
#7  0x075490aa in -[NSSavePanel(GSBrowserDelegate)
browser:createRowsForColumn:inMatrix:] (self=0x89f83008,
_cmd=0x2738efa0, sender=0x8b470408, column=0, matrix=0x80925e08) at
NSSavePanel.m:1633
#8  0x074529fe in -[NSBrowser(Private) _performLoadOfColumn:]
(self=0x8b470408, _cmd=0x2738eb00, column=0) at NSBrowser.m:3072
#9  0x0744ad3b in -[NSBrowser addColumn] (self=0x8b470408,
_cmd=0x2738e9f0) at NSBrowser.m:817
#10 0x0744b671 in -[NSBrowser loadColumnZero] (self=0x8b470408,
_cmd=0x273f0048) at NSBrowser.m:1057
#11 0x07544833 in -[NSSavePanel(PrivateMethods) _reloadBrowser]
(self=0x89f83008, _cmd=0x273f0218) at NSSavePanel.m:442
#12 0x07548b17 in -[NSSavePanel setShowsHiddenFiles:] (self=0x89f83008,
_cmd=0x3c001e38, flag=1 '\001') at NSSavePanel.m:1465
#13 0x1c000ea8 in gnustep_base_user_main (argc=1, argv=0xcfbcb888) at
setDelegate_reload.m:63
#14 0x08334480 in main (argc=1, argv=0xcfbcb888, env=0xcfbcb890) at
NSProcessInfo.m:979
#15 0x1c0009b7 in ___start ()
#16 0x1c000932 in _start ()
(gdb) c
Continuing.

Breakpoint 2, -[NSException raise] (self=0x8a175548, _cmd=0x27431670) at
NSException.m:956
956       if (_reserved == 0)
(gdb) bt
#0  -[NSException raise] (self=0x8a175548, _cmd=0x27431670) at
NSException.m:956
#1  0x075f7be0 in -[_GSWorkspaceCenter init] (self=0x86020468,
_cmd=0x28294908) at NSWorkspace.m:308
#2  0x0830a0dc in +[NSObject new] (self=0x274314c0, _cmd=0x274315c8) at
NSObject.m:1168
#3  0x075f8b0e in -[NSWorkspace init] (self=0x86020108, _cmd=0x27431630)
at NSWorkspace.m:692
#4  0x075f88c4 in +[NSWorkspace sharedWorkspace] (self=0x274313c0,
_cmd=0x273f0050) at NSWorkspace.m:644
#5  0x075490aa in -[NSSavePanel(GSBrowserDelegate)
browser:createRowsForColumn:inMatrix:] (self=0x89f83008,
_cmd=0x2738efa0, sender=0x8b470408, column=0, matrix=0x80925e08) at
NSSavePanel.m:1633
#6  0x074529fe in -[NSBrowser(Private) _performLoadOfColumn:]
(self=0x8b470408, _cmd=0x2738eb00, column=0) at NSBrowser.m:3072
#7  0x0744ad3b in -[NSBrowser addColumn] (self=0x8b470408,
_cmd=0x2738e9f0) at NSBrowser.m:817
#8  0x0744b671 in -[NSBrowser loadColumnZero] (self=0x8b470408,
_cmd=0x273f0048) at NSBrowser.m:1057
#9  0x07544833 in -[NSSavePanel(PrivateMethods) _reloadBrowser]
(self=0x89f83008, _cmd=0x273f0218) at NSSavePanel.m:442
#10 0x07548b17 in -[NSSavePanel setShowsHiddenFiles:] (self=0x89f83008,
_cmd=0x3c001e38, flag=1 '\001') at NSSavePanel.m:1465
#11 0x1c000ea8 in gnustep_base_user_main (argc=1, argv=0xcfbcb888) at
setDelegate_reload.m:63
#12 0x08334480 in main (argc=1, argv=0xcfbcb888, env=0xcfbcb890) at
NSProcessInfo.m:979
#13 0x1c0009b7 in ___start ()
#14 0x1c000932 in _start ()
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x0845144f in bestContext (dpy=0x85bbc6b0, screen_number=0,
context=0x868cb500) at context.c:841
841                 if ((pictFormat->type == PictTypeDirect)
Current language:  auto; currently c
(gdb) bt
#0  0x0845144f in bestContext (dpy=0x85bbc6b0, screen_number=0,
context=0x868cb500) at context.c:841
#1  0x084510c2 in RCreateContext (dpy=0x85bbc6b0, screen_number=0,
attribs=0x0) at context.c:701
#2  0x08459052 in -[XGScreenContext initForDisplay:screen:]
(self=0x7dee1608, _cmd=0x2843cc38, dpy=0x85bbc6b0, screen_number=0) at
XGServer.m:180
#3  0x0845a0df in -[XGServer _screenContextForScreen:] (self=0x866d0c08,
_cmd=0x2843cc48, screen_number=0) at XGServer.m:510
#4  0x0845a173 in -[XGServer xrContextForScreen:] (self=0x866d0c08,
_cmd=0x2843e5a8, screen_number=0) at XGServer.m:525
#5  0x084683a4 in -[XGServer(WindowOps) window::::] (self=0x866d0c08,
_cmd=0x2742d750, frame={origin = {x = 516.5, y = 506.5}, size = {width =
887, height = 187}}, type=NSBackingStoreRetained, style=1,
    screen=0) at XGServerWindow.m:1937
#6  0x075e313d in -[NSWindow _initBackendWindow] (self=0x7dd2fc08,
_cmd=0x2742d810) at NSWindow.m:887
#7  0x075e5d62 in -[NSWindow orderWindow:relativeTo:] (self=0x7dd2fc08,
_cmd=0x2742d9a0, place=NSWindowAbove, otherWin=-1) at NSWindow.m:1732
#8  0x075e5a78 in -[NSWindow orderFrontRegardless] (self=0x7dd2fc08,
_cmd=0x27382220) at NSWindow.m:1658
#9  0x0742156d in -[NSApplication beginModalSessionForWindow:]
(self=0x7e5f9388, _cmd=0x27382610, theWindow=0x7dd2fc08) at
NSApplication.m:1683
#10 0x07421a7c in -[NSApplication runModalForWindow:] (self=0x7e5f9388,
_cmd=0x2737b968, theWindow=0x7dd2fc08) at NSApplication.m:1782
#11 0x074086ce in -[GSAlertPanel runModal] (self=0x7dd2fc08,
_cmd=0x2737ba98) at NSAlert.m:811
#12 0x0740cf38 in GSRunExceptionPanel (title=0x880d2788,
exception=0x8a175548, defaultButton=0x7ebdc728, alternateButton=0x0,
otherButton=0x7ebdcc68) at NSAlert.m:2109
#13 0x0741bc50 in _NSAppKitUncaughtExceptionHandler
(exception=0x8a175548) at NSApplication.m:134
#14 0x082b702d in callUncaughtHandler (value=0x8a175548) at
NSException.m:783
#15 0x082b7b80 in -[NSException raise] (self=0x8a175548,
_cmd=0x27431670) at NSException.m:992
#16 0x075f7be0 in -[_GSWorkspaceCenter init] (self=0x86020468,
_cmd=0x28294908) at NSWorkspace.m:308
#17 0x0830a0dc in +[NSObject new] (self=0x274314c0, _cmd=0x274315c8) at
NSObject.m:1168
#18 0x075f8b0e in -[NSWorkspace init] (self=0x86020108, _cmd=0x27431630)
at NSWorkspace.m:692
#19 0x075f88c4 in +[NSWorkspace sharedWorkspace] (self=0x274313c0,
_cmd=0x273f0050) at NSWorkspace.m:644
#20 0x075490aa in -[NSSavePanel(GSBrowserDelegate)
browser:createRowsForColumn:inMatrix:] (self=0x89f83008,
_cmd=0x2738efa0, sender=0x8b470408, column=0, matrix=0x80925e08) at
NSSavePanel.m:1633
#21 0x074529fe in -[NSBrowser(Private) _performLoadOfColumn:]
(self=0x8b470408, _cmd=0x2738eb00, column=0) at NSBrowser.m:3072
#22 0x0744ad3b in -[NSBrowser addColumn] (self=0x8b470408,
_cmd=0x2738e9f0) at NSBrowser.m:817
#23 0x0744b671 in -[NSBrowser loadColumnZero] (self=0x8b470408,
_cmd=0x273f0048) at NSBrowser.m:1057
#24 0x07544833 in -[NSSavePanel(PrivateMethods) _reloadBrowser]
(self=0x89f83008, _cmd=0x273f0218) at NSSavePanel.m:442
#25 0x07548b17 in -[NSSavePanel setShowsHiddenFiles:] (self=0x89f83008,
_cmd=0x3c001e38, flag=1 '\001') at NSSavePanel.m:1465
#26 0x1c000ea8 in gnustep_base_user_main (argc=1, argv=0xcfbcb888) at
setDelegate_reload.m:63
#27 0x08334480 in main (argc=1, argv=0xcfbcb888, env=0xcfbcb890) at
NSProcessInfo.m:979
#28 0x1c0009b7 in ___start ()
#29 0x1c000932 in _start ()
(gdb) frame 0
#0  0x0845144f in bestContext (dpy=0x85bbc6b0, screen_number=0,
context=0x868cb500) at context.c:841
841                 if ((pictFormat->type == PictTypeDirect)
(gdb) list
836           {
837             for (i=numvis-1, best = -1; i>=0; i--)
838               {
839                 XRenderPictFormat* pictFormat =
840                     XRenderFindVisualFormat (dpy, vinfo[i].visual);
841                 if ((pictFormat->type == PictTypeDirect)
842                     && (pictFormat->direct.alphaMask))
843                   {
844                     best = i;      
845                   }
(gdb) print pictFormat->type
Cannot access memory at address 0x4

running in gdb, it also failed here:
gnustep-gui-0.20.0/Tests/gui/NSView/NSView_frame_rotation.m:
Failed file:     NSView_frame_rotation.m aborted without running all tests!
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 "i386-unknown-openbsd5.0"...
(gdb) break -[NSException raise]
Function "-[NSException raise]" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (-[NSException raise]) pending.
(gdb) r
Starting program:
/home/ports/pobj/gnustep-gui-0.20.0/gnustep-gui-0.20.0/Tests/gui/NSView/obj/NSView_frame_rotation

Breakpoint 2 at 0xc851aae: file NSException.m, line 956.
Pending breakpoint "-[NSException raise]" resolved

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 19691, thread 0x82006400]
0x023a344f in bestContext (dpy=0x82ef56b0, screen_number=0,
context=0x83273b80) at context.c:841
841                 if ((pictFormat->type == PictTypeDirect)
(gdb) bt
#0  0x023a344f in bestContext (dpy=0x82ef56b0, screen_number=0,
context=0x83273b80) at context.c:841
#1  0x023a30c2 in RCreateContext (dpy=0x82ef56b0, screen_number=0,
attribs=0x0) at context.c:701
#2  0x023ab052 in -[XGScreenContext initForDisplay:screen:]
(self=0x87fd1488, _cmd=0x2238ec38, dpy=0x82ef56b0, screen_number=0) at
XGServer.m:180
#3  0x023ac0df in -[XGServer _screenContextForScreen:] (self=0x7db7d008,
_cmd=0x2238ec48, screen_number=0) at XGServer.m:510
#4  0x023ac173 in -[XGServer xrContextForScreen:] (self=0x7db7d008,
_cmd=0x223905a8, screen_number=0) at XGServer.m:525
#5  0x023ba3a4 in -[XGServer(WindowOps) window::::] (self=0x7db7d008,
_cmd=0x2da45750, frame={origin = {x = -1, y = -9}, size = {width = 2,
height = 34}}, type=NSBackingStoreBuffered, style=15, screen=0)
    at XGServerWindow.m:1937
#6  0x0dbfb13d in -[NSWindow _initBackendWindow] (self=0x83274208,
_cmd=0x2da45810) at NSWindow.m:887
#7  0x0dbfbc53 in -[NSWindow
initWithContentRect:styleMask:backing:defer:] (self=0x83274208,
_cmd=0x2da45688, contentRect={origin = {x = 0, y = 0}, size = {width =
0, height = 0}}, aStyle=15,
    bufferingType=NSBackingStoreBuffered, flag=0 '\0') at NSWindow.m:1034
#8  0x0dbfa115 in -[NSWindow init] (self=0x83274208, _cmd=0x3c001218) at
NSWindow.m:707
#9  0x1c000ced in gnustep_base_user_main (argc=1, argv=0xcfbbeff0) at
NSView_frame_rotation.m:22
#10 0x0c8ce480 in main (argc=1, argv=0xcfbbeff0, env=0xcfbbeff8) at
NSProcessInfo.m:979
#11 0x1c0008e7 in ___start ()
#12 0x1c000862 in _start ()
(gdb) frame 0
#0  0x023a344f in bestContext (dpy=0x82ef56b0, screen_number=0,
context=0x83273b80) at context.c:841
841                 if ((pictFormat->type == PictTypeDirect)
(gdb) print pictFormat->type
Cannot access memory at address 0x4
(gdb) c
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.




hth.

this is -gui 0.20.0. have to try -gui from svn.

Sebastian




reply via email to

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