• 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
Re: Code coverage with gcov under SnowLeopard/Xcode 3.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code coverage with gcov under SnowLeopard/Xcode 3.2


  • Subject: Re: Code coverage with gcov under SnowLeopard/Xcode 3.2
  • From: Kiran B <email@hidden>
  • Date: Mon, 31 Aug 2009 12:16:28 +0530
  • "x-copyrighted-material: http://www.robosoftin.com"

Hi,

Sorry I forgot to attach the hang report earlier. Now it is attached.
Also following is the Console log that appears :
------
Mon, Aug 31 2009 12:08:05 PM Xcode[3417] - [XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance 0x200f237a0
Mon, Aug 31 2009 12:08:05 PM Xcode[3417] -runOperationInBackground raised an exception: -[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance 0x200f237a0
------


Regards,
Kiran

-----------------------------------------------
Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
Analysis of sampling Xcode (pid 3417) every 1 millisecond
Call graph:
    14127 Thread_15760   DispatchQueue_1: com.apple.main-thread  (serial)
      14127 0x100001844
        14127 0x10000e97e
          14127 NSApplicationMain
            14127 -[NSApplication run]
              14127 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
                14127 _DPSNextEvent
                  14127 BlockUntilNextEventMatchingListInMode
                    14127 ReceiveNextEventCommon
                      14127 RunCurrentEventLoopInMode
                        14127 CFRunLoopRunSpecific
                          14127 __CFRunLoopRun
                            14127 _dispatch_main_queue_callback_4CF
                              14127 _dispatch_queue_serial_drain_till_empty
                                14127 _dispatch_queue_drain
                                  14127 _dispatch_call_block_and_release
                                    14127 __-[XCThreadedOperation _runOperationInBackground]_block_invoke_
                                      14127 -[XCOperation stopWithResultCode:]
                                        14127 -[XCTargetBuildOperation cleanupAfterRunning]
                                          14127 -[XCBuildOperation cleanupAfterRunning]
                                            14127 -[XCBuildOperation _cleanupAfterRunning]
                                              14127 -[PBXTarget(XCBuildables) cleanupAfterBuildingWorkQueue:withBuildOperation:]
                                                14127 -[PBXTargetBuildContext lockDependencyGraph]
                                                  14127 -[NSRecursiveLock lock]
                                                    14127 pthread_mutex_lock
                                                      14127 semaphore_wait_signal_trap
    14127 Thread_15767   DispatchQueue_2: com.apple.libdispatch-manager  (serial)
      14127 start_wqthread
        14127 _pthread_wqthread
          14127 _dispatch_worker_thread2
            14127 _dispatch_queue_invoke
              14127 _dispatch_mgr_invoke
                14127 kevent
    14127 Thread_15771
      14127 thread_start
        14127 _pthread_start
          14127 __NSThread__main__
            14127 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
              14127 CFRunLoopRunSpecific
                14127 __CFRunLoopRun
                  14127 mach_msg
                    14127 mach_msg_trap
    14127 Thread_15772
      14127 thread_start
        14127 _pthread_start
          14127 __CFSocketManager
            14127 select$DARWIN_EXTSN
    14127 Thread_15776
      14127 thread_start
        14127 _pthread_start
          14127 __NSThread__main__
            14127 -[DTDKInstallBundleController fsEventsThread]
              14127 CFRunLoopRunSpecific
                14127 __CFRunLoopRun
                  14127 mach_msg
                    14127 mach_msg_trap
    14127 Thread_15778
      14127 thread_start
        14127 _pthread_start
          14127 __NSThread__main__
            14127 -[DTDKRemoteDeviceDataListener listenerThreadImplementation]
              14127 CFRunLoopRunSpecific
                14127 __CFRunLoopRun
                  14127 mach_msg
                    14127 mach_msg_trap
    14127 Thread_15790
      14127 thread_start
        14127 _pthread_start
          14127 __NSThread__main__
            14127 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:]
              14127 _pthread_cond_wait
                14127 __semwait_signal
    14127 Thread_15957
      14127 thread_start
        14127 _pthread_start
          14127 __NSThread__main__
            14127 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:]
              14127 _pthread_cond_wait
                14127 __semwait_signal
    14127 Thread_16783
      14127 start_wqthread
        14127 _pthread_wqthread
          14127 __workq_kernreturn

Total number in stack (recursive counted multiple, when >=5):
        6       _pthread_start
        6       thread_start
        5       __NSThread__main__

Sort by top of stack, same collapsed (when >= 5):
        mach_msg_trap        42381
        __semwait_signal        28254
        __workq_kernreturn        14127
        kevent        14127
        select$DARWIN_EXTSN        14127
        semaphore_wait_signal_trap        14127

On Mon, Aug 31 2009, at 11:41 AM, Kiran B wrote:

Hi,

I do have a Code coverage setup and it used to work in previous seeds of Snow Leopard. That is until unit test target causing Xcode to hang. Since seed 10A421 or so, I am not even able to get my code unit tested.

Xcode hangs the moment Unit test target is built. So does your Unit test target build successfully?

In my Mac (MacPro3,1) the following steps would result in a Hang :
1. Create a new project based on "Cocoa Application" template.
2. Add a Unit Test Target to the project.
3. Add a Unit Test case file to the target created in step3.
4. Add a dummy test case in the newly added file. [Optional step; This does not affect the hang]
5. Select and Build the Unit Test target.


Xcode hangs at this stage. Force quitting Xcode is the only way out.
Am sure Apple would not release a product with such obvious defect. So I feel some of my custom setting or Mac configuration is causing this.
I did a clean install with the seed 10A432. But no change in the observation. I have even submitted the Hang Report via Hang Reporter.


Anybody else getting this issue?

Regards,
Kiran

On Sat, Aug 29 2009, at 4:00 PM, Frank Illenberger wrote:

Hi there,
I used to work with gcov under Leopard to track unit test code coverage. With the latest Xcode 3.2 under SnowLeopard and the 10.6 SDK it does not work anymore. I have a build configuration which adds -lgcov and GCC_GENERATE_TEST_COVERAGE=YES
When I run my tests, I get the usual .gcda and .gcno files, but when I analyze them with the gcov tool, the generated .gcov files show no hits for any line of code.
Does anybody know how to get this to work under 10.6?


Cheers

Frank
_______________________________________________
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


 _______________________________________________
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

References: 
 >Code coverage with gcov under SnowLeopard/Xcode 3.2 (From: Frank Illenberger <email@hidden>)
 >Re: Code coverage with gcov under SnowLeopard/Xcode 3.2 (From: Kiran B <email@hidden>)

  • Prev by Date: Re: Help invoking Xcode 3.2
  • Next by Date: Build error
  • Previous by thread: Re: Code coverage with gcov under SnowLeopard/Xcode 3.2
  • Next by thread: Not all deprecation warnings seen in Xcode 3.2
  • Index(es):
    • Date
    • Thread