Re: crashes on intel
Re: crashes on intel
- Subject: Re: crashes on intel
- From: Buddy Kurz <email@hidden>
- Date: Sat, 3 Jun 2006 08:03:37 -0700
FWIW: I experienced a similar problem when an application randomly
crashed at the same spot on Intel but worked OK on PPC.
I was tracking a changing string value using something like if (!
([oldValue isEqualTo:newValue]) {...}
The crash occurred on Intel when the oldValue had not been set.
The problem was either -NSString isEqualTo:(NSString)arg crashing on
a nil object value (on intel) or a non-nil un-initialized object
pointer in the method. I was unable to duplicate the problem in a
simpler test application.
My solution was to initialize the oldValue to @"" (I was assuming a
nil value was the culprit)
In retrospect, I'm wondering if there was just some random value in
the un-initialized variable.
Either way, there was a definite difference between platforms.
On Jun 3, 2006, at 3:38 AM, Karim Morsy wrote:
Hi,
my cocoa app runs without any problems on PPC based macs but I'm
constantly getting the same crash on intel, however, it appears to
occur very indeterminately.
I haven't been able to figure out where the problem exactly lies
and how to reproduce it. the debugger always reports the same error.
can anybody help interpret this:
Unable to disassemble objc_msgSend_rtp.
(gdb) t a a bt
Thread 4 (process 9664 thread 0x9603):
#0 0xffff0b08 in objc_msgSend_rtp ()
Cannot access memory at address 0x4
it also says: Function "_pthread_body" not defined.
any hints would be much appreciated!
thanks in advance,
Karim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden