Mailing Lists: Apple Mailing Lists

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

Multithreaded app runs, but not in dubeugger



I have an app that runs fine from Finder, but when running in the debugger I
get all kinds of strange crashes. It is a multithreaded app written in
Carbon using MPTasks. The code is mature and has been a shipping app for
several years.

Xcode 2.3.

Some of the errors I get are:

[Switching to process 18766 thread 0x3103]
warning: Couldn't raise load state for requested shlib: "Foundation" for
breakpoint 12.

(gdb) continue
Program received signal:  "EXC_ARITHMETIC".

It dies on this line:

pTaskInfo->mEndTime = AddDurationToAbsolute (kDurationMillisecond * 60000 *
pTaskInfo->mUpdateFrequency, UpTime());

mUpdateFrequency is 5

Note that the crash point depends on the breakpoint which is currently about
5 lines before this. If I move the breakpoint or remove it altogether, it
works fine.

Does the Xcode debugger not like thread too well?

Trygve


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

This email sent to 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.