• 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
Daemon taking 100% cpu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Daemon taking 100% cpu


  • Subject: Daemon taking 100% cpu
  • From: Arjun SM <email@hidden>
  • Date: Fri, 17 May 2013 15:16:56 +0530

Hi all,

I have an issue with my daemon taking 100% cpu when left overnight. (Daemon undergoing stress testing at the moment). I am unable to narrow down the issue.

I have sampled the daemon process at the time it was hung and below is the log. I have used SCDynamicStoreCopyConsoleUser()  in my main thread to know if a user has logged in to the machine.

Is it that, my main thread is stuck in that function because of which spin lock is happening ?
What other alternatives I have to know of a user has logged in to the machine ? Also what best steps should be followed to debug such hang issues?

thanks in advance for all the help.


Date/Time:       2013-05-17 13:14:57.516 +0530
OS Version:      Mac OS X 10.8.3 (12D78)
Report Version:  7

Call graph:
    2513 Thread_973   DispatchQueue_1: com.apple.main-thread  (serial)
    + 2513 ???  (in sefiltd)  load address 0x1000 + 0x1d39  [0x2d39]
    +   2513 ???  (in sefiltd)  load address 0x1000 + 0x22d0  [0x32d0]
    +     2513 ???  (in sefiltd)  load address 0x1000 + 0xfa73  [0x10a73]
    +       2513 ???  (in sefiltd)  load address 0x1000 + 0x3261b  [0x3361b]
    +         2513 ???  (in sefiltd)  load address 0x1000 + 0x32600  [0x33600]
    +           2513 SCDynamicStoreCopyConsoleUser  (in SystemConfiguration) + 93  [0x90c1afd1]
    +             2513 SCDynamicStoreCopyValue  (in SystemConfiguration) + 309  [0x90c1b260]
    +               2513 _SCUnserialize  (in SystemConfiguration) + 117  [0x90c18db2]
    +                 2513 CFPropertyListCreateWithData  (in CoreFoundation) + 112  [0x91f56c30]
    +                   2513 _CFPropertyListCreateWithData  (in CoreFoundation) + 159  [0x91f48fcf]
    +                     2513 __CFTryParseBinaryPlist  (in CoreFoundation) + 269  [0x91f495ed]
    +                       2513 __CFBinaryPlistCreateObjectFiltered  (in CoreFoundation) + 8437  [0x92002e55]
    +                         2513 __CFBinaryPlistCreateObjectFiltered  (in CoreFoundation) + 2496  [0x92001720]
    +                           2513 CFStringCreateWithBytes  (in CoreFoundation) + 94  [0x91f38f9e]
    +                             2513 __CFStringCreateImmutableFunnel3  (in CoreFoundation) + 2653  [0x91f23f7d]
    +                               2513 _CFRuntimeCreateInstance  (in CoreFoundation) + 385  [0x91f24471]
    +                                 2513 CFAllocatorAllocate  (in CoreFoundation) + 343  [0x91f24707]
    +                                   2513 __CFAllocatorSystemAllocate  (in CoreFoundation) + 24  [0x91f24738]
    +                                     2513 malloc_zone_malloc  (in libsystem_c.dylib) + 75  [0x9105a5ab]
    +                                       2513 szone_malloc  (in libsystem_c.dylib) + 24  [0x9105ca9e]
    +                                         2513 szone_malloc_should_clear  (in libsystem_c.dylib) + 880  [0x9106711a]
    +                                           2513 tiny_malloc_from_free_list  (in libsystem_c.dylib) + 1312  [0x91066d99]
    +                                             2513 _sigtramp  (in libsystem_c.dylib) + 43  [0x9102c8cb]
    +                                               2513 ???  (in sefiltd)  load address 0x1000 + 0x1c08b  [0x1d08b]
    +                                                 2513 ???  (in sefiltd)  load address 0x1000 + 0x119a5  [0x129a5]
    +                                                   2513 ???  (in sefiltd)  load address 0x1000 + 0x1138b  [0x1238b]
    +                                                     2513 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)  (in libstdc++.6.dylib) + 52  [0x99b9eb44]
    +                                                       2513 char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag)  (in libstdc++.6.dylib) + 72  [0x99b94cc4]
    +                                                         2513 std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)  (in libstdc++.6.dylib) + 92  [0x99b9e406]
    +                                                           2513 operator new(unsigned long)  (in libstdc++.6.dylib) + 35  [0x99bb229a]
    +                                                             2513 malloc  (in libsystem_c.dylib) + 53  [0x9105afe7]
    +                                                               2513 malloc_zone_malloc  (in libsystem_c.dylib) + 75  [0x9105a5ab]
    +                                                                 2513 szone_malloc  (in libsystem_c.dylib) + 24  [0x9105ca9e]
    +                                                                   2512 _spin_lock$VARIANT$mp  (in libsystem_c.dylib) + 25,47,...  [0x9102d3c9,0x9102d3df,...]
    +                                                                   1 ???  (in <unknown binary>)  [0xffffffff]
    +                                                                     1 _sigtramp  (in libsystem_c.dylib) + 0  [0x9102c8a0]
    2513 Thread_976   DispatchQueue_2: com.apple.libdispatch-manager  (serial)
    + 2513 _dispatch_mgr_thread  (in libdispatch.dylib) + 53  [0x93d7e7a9]
    +   2513 _dispatch_mgr_invoke  (in libdispatch.dylib) + 993  [0x93d7ec71]
    +     2513 kevent  (in libsystem_kernel.dylib) + 10  [0x943ea9ae]
    2513 Thread_986
    + 2513 thread_start  (in libsystem_c.dylib) + 34  [0x9102ad4e]
    +   2513 _pthread_start  (in libsystem_c.dylib) + 344  [0x910405b7]
    +     2513 ???  (in sefiltd)  load address 0x1000 + 0x10581  [0x11581]
    +       2513 ???  (in sefiltd)  load address 0x1000 + 0x308f  [0x408f]
    +         2513 pthread_cond_wait$UNIX2003  (in libsystem_c.dylib) + 71  [0x910cb095]
    +           2513 _pthread_cond_wait  (in libsystem_c.dylib) + 833  [0x91045280]
    +             2513 __psynch_cvwait  (in libsystem_kernel.dylib) + 10  [0x943e98e2]
    2513 Thread_987
    + 2513 thread_start  (in libsystem_c.dylib) + 34  [0x9102ad4e]
    +   2513 _pthread_start  (in libsystem_c.dylib) + 344  [0x910405b7]
    +     2513 ???  (in sefiltd)  load address 0x1000 + 0x10581  [0x11581]
    +       2513 ???  (in sefiltd)  load address 0x1000 + 0x321f  [0x421f]
    +         2513 pthread_cond_wait$UNIX2003  (in libsystem_c.dylib) + 71  [0x910cb095]
    +           2513 _pthread_cond_wait  (in libsystem_c.dylib) + 833  [0x91045280]
    +             2513 __psynch_cvwait  (in libsystem_kernel.dylib) + 10  [0x943e98e2]
    2513 Thread_988
      2513 thread_start  (in libsystem_c.dylib) + 34  [0x9102ad4e]
        2513 _pthread_start  (in libsystem_c.dylib) + 344  [0x910405b7]
          2513 ???  (in sefiltd)  load address 0x1000 + 0x10581  [0x11581]
            2513 ???  (in sefiltd)  load address 0x1000 + 0xf170  [0x10170]
              2513 ???  (in sefiltd)  load address 0x1000 + 0xeef3  [0xfef3]
                2513 free  (in libsystem_c.dylib) + 217  [0x9105ad30]
                  2513 _spin_lock$VARIANT$mp  (in libsystem_c.dylib) + 25,27,...  [0x9102d3c9,0x9102d3cb,...]

Total number in stack (recursive counted multiple, when >=5):

Sort by top of stack, same collapsed (when >= 5):
        __psynch_cvwait  (in libsystem_kernel.dylib)        5026
        _spin_lock$VARIANT$mp  (in libsystem_c.dylib)        5025
        kevent  (in libsystem_kernel.dylib)        2513


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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Daemon taking 100% cpu
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
    • Re: Daemon taking 100% cpu
      • From: Jean Suisse <email@hidden>
  • Prev by Date: Re: CoreFoundation Custom Proxy Support.
  • Next by Date: Re: Daemon taking 100% cpu
  • Previous by thread: Re: CoreFoundation Custom Proxy Support.
  • Next by thread: Re: Daemon taking 100% cpu
  • Index(es):
    • Date
    • Thread