Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35890

Crash on OSX Mavericks with QTimeZone constructed in slot

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.2.0
    • Fix Version/s: None
    • Component/s: Core: Date/Time
    • Labels:
      None
    • Environment:
      Qt 5.2.0, OSX 10.9.1, 10.7.5
    • Platform/s:
      macOS
    • Commits:
      55e430a3b3f4f225da6b7192773f082b5411741b d17e48108df864c446892c0a4318b41b30685de6

      Description

      On OSX 10.9.1 (not tested with <= 10.8), creating an instance of QTimeZone (stack or heap) creates a crash if created in a lambda or a slot. See sample code in attachment to reproduce.

      Note that this does not occur on Linux or Windows.

      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0 libobjc.A.dylib 0x00007fff8f1c20e6 objc_release + 22
      1 libobjc.A.dylib 0x00007fff8f1c165a (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 502
      2 com.apple.CoreFoundation 0x00007fff8ad75d72 _CFAutoreleasePoolPop + 50
      3 com.apple.Foundation 0x00007fff8ec8cda7 -[NSAutoreleasePool drain] + 147
      4 com.apple.AppKit 0x00007fff96866a78 -[NSApplication run] + 725
      5 libqcocoa.dylib 0x000000010620a2a7 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2391
      6 QtCore 0x0000000103dd105d QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 397
      7 QtCore 0x0000000103dd4162 QCoreApplication::exec() + 354
      8 @BUNDLEIDENTIFIER@ 0x00000001030d0b8f main + 255
      9 @BUNDLEIDENTIFIER@ 0x00000001030d0a84 start + 52

        Attachments

        1. main.cpp
          0.3 kB
        2. test_tz.pro
          0.1 kB

          Issue Links

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

            Activity

              People

              Assignee:
              johnlayt John Layt
              Reporter:
              jpproulx Jean-Philippe Proulx
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes