Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong stack when debugging CFM app under Rosetta



Of course.

But on PPC you *usually* get zeroes, which allows uninitialized
variables to exist as silent bugs. That's a Bad Thing.
 
The Intel implementation (and apparently Rosetta) pretty much never give
nice clean zeroes, making the bugs show up and get fixed. Which is a
Good Thing, except for the frustration of tracking down stupid mistakes.

Of course no one else has any code with such amateur-hour mistakes as
uninitialized variables. Right?

On Mon, Aug 6, 2007 10:55 AM, John Stiles <email@hidden> wrote:

>I don't think there's any "behavior" for Rosetta to emulate, re  
>uninitialized variables. They will contain random noise. If you were  
>getting lucky on PPC, then that's cool, but it was always subject to  
>change when anything is different (OS version, plugins installed,  
>current desktop pattern, dock size, time of day, phase of the moon,  
>etc :)  )
>
>
>On Aug 6, 2007, at 8:05 AM, Durango wrote:
>
>> On Mon, Aug 6, 2007 6:14 AM, Stephen Chu <email@hidden> wrote:
>>
>>> Or in the crash report. We ran into some Intel-only crashes with  
>>> our PPC
>>> CFM app. The Stack trace in the reports are just numbers. We can't  
>>> even
>>> find out what the app is doing at the time of crash.
>>
>> All of those I ran into were caused by uninitialized variables.
>>
>> Apparently Rosetta does not emulate the PPC behavior in such cases.
>> These are going to bite you when switch to Universal, so you might as
>> well fix them now.
>>
>> Xcode's warnings in such cases seem more thorough than Code Warrior's,
>> so it might be worth getting your code compiled (but not necessarily
>> running) under Xcode just for the warnings. Otherwise it's code
>> walkthrough time.
>>
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Carbon-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/carbon-dev/jstiles% 
>> 40blizzard.com
>>
>> This email sent to email@hidden
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Wrong stack when debugging CFM app under Rosetta (From: "Jan Barnholt" <email@hidden>)
 >Re: Wrong stack when debugging CFM app under Rosetta (From: Stephen Chu <email@hidden>)
 >Re: Wrong stack when debugging CFM app under Rosetta (From: Durango <email@hidden>)
 >Re: Wrong stack when debugging CFM app under Rosetta (From: John Stiles <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.