• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Application crashing on PowerPC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application crashing on PowerPC


  • Subject: Application crashing on PowerPC
  • From: "Richard L. Aurbach" <email@hidden>
  • Date: Tue, 8 Feb 2011 14:28:16 -0600

Recently, I migrated a long-running suite of applications from CodeWarrior to Xcode so as to create universal binaries. The applications are 32-bit Carbon applications. The Intel-native versions perform as expected, including on Snow Leopard. However, the PowerPC version crashes immediately.

EXECUTIVE SUMMARY:
I suspect that this error is related to something that's not set up right in my Xcode build and I'd like some help with that.

CRASH ANALYSIS:
I can provide the entire crash log if desired. However, what appears to be pertinent here is the following:

Command: GP3-Master Tailor
Path:    /Applications/Grady Profile/GP3-Master Tailor.app/Contents/MacOS/GP3-Master Tailor
Parent:  WindowServer [67]

Version: GP3-Master Tailor v3.7 (3.7)

PID:    338
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x010acab7

Thread 0 Crashed:
0   com.apple.QD                 0x9174e4fc GetFNum + 24
1   com.aurbach.gp3.masterTailor 0x000b8b90 UTextTraits::LoadTextTraits(short) + 68
2   com.aurbach.gp3.masterTailor 0x000a96d4 LTextEditView::InitTextEditView(short) + 120
3   com.aurbach.gp3.masterTailor 0x000a9260 LTextEditView::LTextEditView[unified](LStream*) + 340
4   com.aurbach.gp3.masterTailor 0x000d33cc ADisplayText::ADisplayText[unified](LStream*) + 88
5   com.aurbach.gp3.masterTailor 0x000040b8 TRegistrar<ADisplayText>::CreateFromStream(LStream*) + 40
6   com.aurbach.gp3.masterTailor 0x000b8098 URegistrar::CreateObject(unsigned long, LStream*) + 112
7   com.aurbach.gp3.masterTailor 0x000b78b8 UReanimator::ObjectsFromStream(LStream*) + 372
8   com.aurbach.gp3.masterTailor 0x000b7918 UReanimator::ObjectsFromStream(LStream*) + 468
9   com.aurbach.gp3.masterTailor 0x000b7918 UReanimator::ObjectsFromStream(LStream*) + 468
10  com.aurbach.gp3.masterTailor 0x000b76f0 UReanimator::ReadObjects(unsigned long, short) + 104
11  com.aurbach.gp3.masterTailor 0x000b2970 LWindow* UReanimator::ReanimateObjects<LWindow>(unsigned long, short) + 16
12  com.aurbach.gp3.masterTailor 0x000af3f0 LWindow::CreateWindow(short, LCommander*) + 64
13  com.aurbach.gp3.masterTailor 0x001741a8 StInfoWindow::StInfoWindow[unified](short, short, LCommander*) + 76
14  com.aurbach.gp3.masterTailor 0x001761c4 StSplashScreen::StSplashScreen[unified](short, short, LCommander*) + 32
15  com.aurbach.gp3.masterTailor 0x000093e8 GPM_Application::PrepareToRun() + 372
16  com.aurbach.gp3.masterTailor 0x000d2fb8 LDFDocApplication::Initialize() + 100
17  com.aurbach.gp3.masterTailor 0x00071bdc LApplication::Run() + 76
18  com.aurbach.gp3.masterTailor 0x00002eac main + 420
19  com.aurbach.gp3.masterTailor 0x00002688 _start + 760
20  com.aurbach.gp3.masterTailor 0x0000238c start + 48

Thread 0 crashed with PPC Thread State 64:
  srr0: 0x000000009174e4fc srr1: 0x000000000200f030                        vrsave: 0x0000000000000000
    cr: 0x24004488          xer: 0x0000000000000001   lr: 0x000000009174e4fc  ctr: 0x000000009012ad5c
    r0: 0x000000009174e4fc   r1: 0x00000000bfffef60   r2: 0x0000000000000000   r3: 0x0000000000000015
    r4: 0x0000000000000000   r5: 0x00000000a0293128   r6: 0x0000000000000009   r7: 0x0000000000000001
    r8: 0x0000000000000001   r9: 0x0000000000000001  r10: 0x0000000000000015  r11: 0x00000000a0b8af6c
   r12: 0x000000009012ad5c  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
   r16: 0x0000000000000000  r17: 0x0000000000000000  r18: 0x0000000000000000  r19: 0x0000000000000000
   r20: 0x0000000000450000  r21: 0x0000000000450000  r22: 0x0000000000450000  r23: 0x000000000144d318
   r24: 0x0000000001449128  r25: 0x0000000001449164  r26: 0x0000000000000000  r27: 0x0000000000000001
   r28: 0x000000000051336c  r29: 0x0000000001533200  r30: 0x00000000010acab7  r31: 0x00000000000013ec

The font name passed to GetFNum is (pascal string) "Helvetica".

Note that this CAN'T be fundamentally an API problem, even though the API is deprecated. The crash occurs on a G4 PowerPC running 10.4.11, but SUCCEEDS on an Intel-based iMac running 10.6.6.

So my suspicion is that there is something I'm doing wrong in the Xcode build.

Xcode SETUP:
The Xcode project is set up as a standard universal application, with the following custom settings under Xcode 3.2.3 (running on OS X 10.6.6):

Architectures 32-bit Universal
Base SDK (PowerPC) Mac OS X 10.4
C/C++ Compiler Version GCC 4.0
Mac OS X Deployment Target Mac OS X 10.4

I suspect that I've missed something important here, but I have no idea what that might be.

Can anyone help? I'd be happy to send more information if it is needed; please just let me know what you want to see.

Cheers,

Rick Aurbach, Ph.D.
President and Chief Engineer
Aurbach & Associates, Inc.
8233 Tulane Avenue, Suite B
St. Louis, MO 63132

www:     http://www.aurbach.com/
eMail:    email@hidden [business]
               email@hidden [personal]
Fax:        314/678-0869
Phone:   800/774-7239
                314/726-1321

"Elitism is the slur directed at merit by mediocrity." - Sydney J. Harris, journalist (1917-1986)

"Life is easy to chronicle, but bewildering to practice." - E.M. Forster (1879-1970)

"Cowardice asks the question, 'Is it safe?' Expediency asks the question, 'Is it politic?' Vanity asks the question, 'Is it popular?' But, conscience asks the question, 'Is it right?' And there comes a time when one must take a position that is neither safe, nor politic, nor popular but one must take it because one's conscience tells one that it is right." -Martin Luther King, Jr. (1929-1968)

"The saddest aspect of life right now is that science gathers knowledge faster than society gathers wisdom." -Isaac Asimov (1920-1992)

"If in the last few years you haven't discarded a major opinion or acquired a new one, check your pulse. You may be dead." - Gelett Burgess (1866-1951)

"You can judge your age by the amount of pain you feel when you come in contact with a new idea." - John Nuveen (1896-1968)

“The scientific theory I like best is that the rings of Saturn are composed entirely of lost airline luggage.” - Mark Russell (1932- )





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: XCode 3, SCM and SVN
  • Next by Date: Re: XCode 3, SCM and SVN
  • Previous by thread: Re: XCode 3, SCM and SVN
  • Next by thread: Re: Application crashing on PowerPC
  • Index(es):
    • Date
    • Thread