Re: SIGBUS and NSLog
Re: SIGBUS and NSLog
- Subject: Re: SIGBUS and NSLog
- From: Ondra Cada <email@hidden>
- Date: Mon, 21 Jan 2002 03:02:46 +0100
Riccardo,
>
>>>>> Riccardo Santato (RS) wrote at Mon, 21 Jan 2002 00:30:32 +0100:
RS> do you remember my SIGBUS question ? Well, I've found the answer. That
RS> error was not due to a failed initialization but simply for this:
RS>
RS> NSLog(@" %@ has arrived",user);
RS>
RS> In my source I forgot to put ",user" !! Why PB returns such a absurd
RS> error then ?!? Anyone knows why ?!?
PB has nothing to do with that.
You just access a random value (the current stack contants) as an object.
Since it happened to contain nonsense address, the very appropriate result
was SIGBUS.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc