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

Crash on OSX Mavericks with QTimeZone constructed in slot

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.2.0
    • Core: Date/Time
    • None
    • Qt 5.2.0, OSX 10.9.1, 10.7.5
    • macOS
    • 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
          Jean-Philippe Proulx
        2. test_tz.pro
          0.1 kB
          Jean-Philippe Proulx

        Issue Links

          For Gerrit Dashboard: QTBUG-35890
          # Subject Branch Project Status CR V

          Activity

            People

              johnlayt John Layt
              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