Uploaded image for project: 'IoTivity'
  1. IoTivity
  2. IOT-1461

On Windows oc_thread_free( ) closes closed thread handle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Undecided
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: IoTivity 1.2.0
    • Component/s: Build System
    • Labels:
      None
    • Found in Version/s:
      Current
    • Operating System:
      Windows
    • Issue Severity:
      Normal
    • Reproducibility:
      Always (100%)

      Description

      Below is the call stack getting exception 0xC0000008 (An invalid handle was specified.).

      The root cause appears to be that ca_thread_pool_free( ) calls oc_thread_wait( ) followed by oc_thread_free( ). And oc_thread_wait() closes the threadInfo->handle.

      ntdll.dll!00007ff94357632a() Unknown
      KernelBase.dll!00007ff94061ff8e() Unknown
      > octbstack.dll!oc_thread_free(oc_thread_internal * t) Line 90 C
      octbstack.dll!ca_thread_pool_free(ca_thread_pool * thread_pool) Line 203 C
      octbstack.dll!CATerminateMessageHandler(...) Line 1200 C
      octbstack.dll!CATerminate(...) Line 88 C
      octbstack.dll!OCStop(...) Line 2375 C
      ipcatests.exe!OC::InProcServerWrapper::~InProcServerWrapper() Line 760 C++
      [External Code]
      ipcatests.exe!OC::OCPlatform_impl::~OCPlatform_impl() Line 100 C++
      [External Code]

        Attachments

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

          Activity

            People

            • Assignee:
              stjong Soemin Tjong
              Reporter:
              stjong Soemin Tjong
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d