Use of protocols (for DO) crashing gcc3
Use of protocols (for DO) crashing gcc3
- Subject: Use of protocols (for DO) crashing gcc3
- From: Wade Tregaskis <email@hidden>
- Date: Wed, 22 Oct 2003 13:45:39 +1000
In the code below, if I uncomment either of the lines that set the
protocol gcc3 crashes while building, with an internal bus error. Any
idea why? The protocol exists, it works perfectly well in other
projects, etc... everything seems to be fine. Maybe it's staring me in
the face, but I just can't see it.
id BenchmarkingClient(BOOL startupIfRequired) {
static id result = nil;
if (!result) { // If we haven't already obtained a benchmarking
object
result = [NSConnection
rootProxyForConnectionWithRegisteredName:@"benchmarkd" host:nil];
if (!result) {
if (startupIfRequired) { // Presumably server not running
if (launchBenchmarkDaemon()) {
result = [NSConnection
rootProxyForConnectionWithRegisteredName:@"benchmarkd" host:nil];
if (result) {
//[result
setProtocolForProxy:@protocol(BenchmarkServerProtocol)];
}
} else {
NSLog(@"Unable to launch benchmarking daemon");
}
}
} else {
//[result
setProtocolForProxy:@protocol(BenchmarkServerProtocol)];
}
}
return result;
}
The exact output (in Project Builder) is:
Benchmarking.m: In function `__objc_tmp_0':
Benchmarking.m:82: internal error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
{standard input}:361:FATAL:.abort detected. Assembly stopping.
...failed CompileC build/Objects-normal/ppc/Benchmarking.o ...
Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.