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 18:14:37 +0200
User-agent: SOGoMail 1.3.8

 
On Monday, October 3, 2011 15:17 CEST, Sebastian Reitenbach 
<sebastia@l00-bugdead-prods.de> wrote: 
 
> 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.
> >

I installed base, gui and back from svn.

here the test results from gui, compiled with gcc 4.2.1 and the gcc libobjc:

773 Passed tests
  5 Failed tests

setting the breakpoint on -[NSException raise] did not stopped anywhere.

Testing setDelegate_reload.m...
Running gnustep-gui-0.21.0/Tests/gui/NSSavePanel/setDelegate_reload.m...
2011-10-03 17:43:29.137 setDelegate_reload[1098] XShm not supported, 
XShmAttach() failed.
2011-10-03 17:43:29.139 setDelegate_reload[1098] Falling back to normal XImage 
(will be slower).
Passed test:     browser initially contains all files
Passed test:     browser is reloaded after -setDelegate:
Failed test:     browser contains all files after resetting delegate
Passed test:     browser is reloaded after -setDelegate: (2)
Completed file:  setDelegate_reload.m

Testing NSView_autoresize_and_rounding.m...
Running gnustep-gui-0.21.0/Tests/gui/NSView/NSView_autoresize_and_rounding.m...
2011-10-03 17:44:53.763 NSView_autoresize_and_rounding[6786] XShm not 
supported, XShmAttach() failed.
2011-10-03 17:44:53.765 NSView_autoresize_and_rounding[6786] Falling back to 
normal XImage (will be slower).
Failed test:     NSView autoresizing works
Passed test:     NSView autoresizing corner cases work
Failed test:     NSView autoresize rounding works
(1) expected frame (10 10)+(10 10), got (10 10)+(9 10)
(1) expected frame (10 10)+(10 10), got (9 9)+(9 9)
Completed file:  NSView_autoresize_and_rounding.m

Testing NSView_bounds_scale.m...
Running gnustep-gui-0.21.0/Tests/gui/NSView/NSView_bounds_scale.m...
2011-10-03 17:45:22.465 NSView_bounds_scale[17336] XShm not supported, 
XShmAttach() failed.
2011-10-03 17:45:22.467 NSView_bounds_scale[17336] Falling back to normal 
XImage (will be slower).
Failed test:     NSView -scaleUnitSquareToSize works
expected bounds rotation 30 got 30.9153
(2) expected bounds (39.9801 104.211)+(66.2393 85.2544), got (40.372 
105.364)+(66.8473 84.9812)
expected bounds matrix (2.93813 0.614059 -1.69633 1.06358 104.31 -131.062) got 
(2.96586 0.574951 -1.71234 1.07291 104.31 -131.062)
(2) expected bounds (39.9801 104.211)+(66.2393 85.2544), got (40.372 
105.364)+(66.8473 84.9812)
expected bounds rotation 30 got 30.9153
Completed file:  NSView_bounds_scale.m

Testing NSView_visibleRect.m...
Running gnustep-gui-0.21.0/Tests/gui/NSView/NSView_visibleRect.m...
Failed test:     NSView -visibleRect works
Completed file:  NSView_visibleRect.m


and here the tests from base svn:

6428 Passed tests
  17 Dashed hopes
   1 Skipped set
   1 Failed test
   1 Failed file


It was hanging when testing NSObject initialize, so I killed it on another 
shell, to get into gdb, this is what the backtrace looks like first it hits an 
exception:

Breakpoint 2 (-[NSException raise]) pending.
(gdb) r
Starting program: 
/home/ports/pobj/gnustep-base-1.23.1/gnustep-base-1.23.1/Tests/base/NSObject/obj/init
ialize 
Breakpoint 3 at 0x8b21206: file NSException.m, line 956.
Pending breakpoint "-[NSException raise]" resolved
Start set:       initialize.m:128 ... +initialize
Passed test:       initialize.m:133 ... initialize test starts
[Switching to process 14657, thread 0x86514c00]

Breakpoint 1, testStart () at Testing.h:149
149     }
Current language:  auto; currently minimal
(gdb) bt
#0  testStart () at Testing.h:149
#1  0x1c002457 in gnustep_base_user_main () at initialize.m:139
#2  0x08ba1108 in main (argc=1, argv=0xcfbcca1c, env=0xcfbcca24) at 
NSProcessInfo.m:979
#3  0x1c000d37 in ___start ()
#4  0x1c000cb2 in _start ()
(gdb) c
Continuing.
Failed test:       initialize.m:139 ... inherited +initialize is called 
automatically
2011-10-03 17:49:31.115 initialize[14657] WARNING your program is becoming 
multi-threaded, but you are using an ObjectiveC runtime library which does not 
have a thread-safe implementation of the +initialize method. Please see 
README.initialize for more information.
[New process 14657]
^C
and here it hang, so I interrupted, to see where it hangs.

Program received signal SIGINT, Interrupt.
[Switching to process 14657]
0x02e5f379 in poll () from /usr/lib/libc.so.60.1
(gdb) thread apply all bt

Thread 4 (process 14657, thread 0x8a543800):
#0  _thread_kern_sched (scp=0x0) at 
/usr/src/lib/libpthread/uthread/uthread_kern.c:496
#1  0x0904b75f in _thread_kern_sched_state_unlock (state=PS_MUTEX_WAIT, 
lock=0x8bb63330, 
    fname=0x29038e68 "/usr/src/lib/libpthread/uthread/uthread_mutex.c", 
lineno=497)
    at /usr/src/lib/libpthread/uthread/uthread_kern.c:602
#2  0x0904983c in pthread_mutex_lock (mutex=0x848996ac)
    at /usr/src/lib/libpthread/uthread/uthread_mutex.c:496
#3  0x08b6037c in -[NSCondition lock] (self=0x848996a4, _cmd=0x3c001910) at 
NSLock.m:299
#4  0x1c00141f in +[SlowInit2 initialize] (self=0x3c001580, _cmd=0x28b2e448) at 
initialize.m:71
#5  0x05d898de in __objc_send_initialize (class=0x3c001580)
    at /usr/src/gnu/usr.bin/cc/libobjc/../../../gcc/libobjc/sendmsg.c:374
#6  0x05d8a793 in objc_msg_lookup (receiver=0x3c001580, op=0x3c001908)
    at /usr/src/gnu/usr.bin/cc/libobjc/../../../gcc/libobjc/sendmsg.c:316
#7  0x1c001cef in +[Trampoline launch:] (self=0x3c001440, _cmd=0x3c001940, 
ignored=0x0)
    at initialize.m:104
#8  0x08b77d15 in -[NSObject performSelector:withObject:] (self=0x3c001440, 
_cmd=0x28b17ff0, 
    aSelector=0x3c001940, anObject=0x0) at NSObject.m:2011
#9  0x08be8802 in -[NSThread gnustep:base:user:main] (self=0x83952184, 
_cmd=0x28b17ff8)
    at NSThread.m:742
#10 0x08be899e in nsthreadLauncher (thread=0x83952184) at NSThread.m:808
#11 0x090425ce in _thread_start () at 
/usr/src/lib/libpthread/uthread/uthread_create.c:242
---Type <return> to continue, or q <return> to quit---
#12 0x0000002b in ?? ()
#13 0x00000000 in ?? ()
Current language:  auto; currently c

Thread 3 (process 14657, thread 0x8a67dc00):
#0  _thread_kern_sched (scp=Cannot access memory at address 0x8
) at /usr/src/lib/libpthread/uthread/uthread_kern.c:393
Cannot access memory at address 0x0
#0  0x02e5f379 in poll () from /usr/lib/libc.so.60.1
(gdb) 

Sebastian



reply via email to

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