• 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
Multithreaded app runs, but not in dubeugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multithreaded app runs, but not in dubeugger


  • Subject: Multithreaded app runs, but not in dubeugger
  • From: Trygve Inda <email@hidden>
  • Date: Thu, 31 Aug 2006 17:05:58 +0000
  • Thread-topic: 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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Multithreaded app runs, but not in dubeugger
      • From: David Dunham <email@hidden>
  • Prev by Date: Re: Fix and Continue Question
  • Next by Date: Re: Fix and Continue Question
  • Previous by thread: Adding images in IB
  • Next by thread: Re: Multithreaded app runs, but not in dubeugger
  • Index(es):
    • Date
    • Thread