Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7121

crash of Mac OS X launcher during attempted shutdown

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-2
    • Fix Version/s: 2.0
    • Component/s: installer
    • Security Level: Public
    • Labels:
      None
    • Environment:
      Build 1870
      Darwin ingenthr-mbp.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

      Description

      I had tried to start Couchbase Server but it was just chewing on CPU without coming up, so I tried to stop it. The problem report dialog came up with the attached.

      I don't know that this would be easy to reproduce, but it could point to some un-handled error.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        jens Jens Alfke added a comment -

        Looks like -invalidate was sent to a dealloced object. Likely an NSTimer refcounting issue.

        Exception Type: EXC_BAD_ACCESS (SIGSEGV)
        Exception Codes: KERN_INVALID_ADDRESS at 0x000000000000001a
        Crashed Thread: 0 Dispatch queue: com.apple.main-thread

        Application Specific Information:
        objc_msgSend() selector name: invalidate

        Thread 0 Crashed: Dispatch queue: com.apple.main-thread
        0 libobjc.A.dylib 0x00007fff802160a6 objc_msgSend_fixup + 114
        1 com.couchbase.couchbase-server 0x0000000100003344 -[Couchbase_ServerAppDelegate cleanup] + 34
        2 com.couchbase.couchbase-server 0x000000010000322d -[Couchbase_ServerAppDelegate taskTerminated:] + 76
        3 com.apple.Foundation 0x00007fff854ecad5 _nsnote_callback + 167

        Show
        jens Jens Alfke added a comment - Looks like -invalidate was sent to a dealloced object. Likely an NSTimer refcounting issue. Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000000000000001a Crashed Thread: 0 Dispatch queue: com.apple.main-thread Application Specific Information: objc_msgSend() selector name: invalidate Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x00007fff802160a6 objc_msgSend_fixup + 114 1 com.couchbase.couchbase-server 0x0000000100003344 - [Couchbase_ServerAppDelegate cleanup] + 34 2 com.couchbase.couchbase-server 0x000000010000322d - [Couchbase_ServerAppDelegate taskTerminated:] + 76 3 com.apple.Foundation 0x00007fff854ecad5 _nsnote_callback + 167
        Hide
        jens Jens Alfke added a comment -

        This is a race condition that can occur if the server task takes long enough to terminate. The fix is very simple (one line to nil out a reference to a timer object that's about to go away.)

        http://review.couchbase.org/#/c/22648/

        Show
        jens Jens Alfke added a comment - This is a race condition that can occur if the server task takes long enough to terminate. The fix is very simple (one line to nil out a reference to a timer object that's about to go away.) http://review.couchbase.org/#/c/22648/
        Hide
        steve Steve Yen added a comment -

        thanks Jens - merged your change

        Show
        steve Steve Yen added a comment - thanks Jens - merged your change

          People

          • Assignee:
            jens Jens Alfke
            Reporter:
            ingenthr Matt Ingenthron
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes