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

QtConCurrent::map always crash for simple multi-thread program

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.1.0
    • Fix Version/s: None
    • Component/s: Core: QtConcurrent
    • Labels:
      None
    • Environment:
      os : mac osx 10.8.3
      compiler: clang3.2
      Qt version: 5.1

      Description

      .hpp
      http://pastebin.com/BLrHwq4P

      .cpp
      http://pastebin.com/a2ByqCLG

      main.cpp
      http://pastebin.com/yW6p6ZnS

      error messages(details)
      http://pastebin.com/bmaWmByn

      error messages of console

      qmlTest2(6752,0x10e10a000) malloc: *** error for object 0x7f885a444820: pointer being freed was not allocated

          • set a breakpoint in malloc_error_break to debug
            The program has unexpectedly finished.

      The program always crash if I call QtConcurrent::Map, but QtConcurrent::run work fine
      What kind of faults do I make?Can't find any error

        Attachments

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

          Activity

            People

            Assignee:
            sorvig Morten Sørvig
            Reporter:
            stereomatching stereoMatching
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes