CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10

Threaded View

  1. #7
    Join Date
    Oct 2008
    Posts
    1,456

    Re: Unlcoking a mutex from crashed thread

    Quote Originally Posted by abhi009 View Post
    We are not able to find out the crash cause yet.
    so, I suppose that the thread is probably invoking undefined behavior somewhere ( otherwise, you should be able to easily find out where the error occurs ) ...

    Quote Originally Posted by abhi009 View Post
    In short it doesn't matter much if one thread or task is crashed, we are more concerned [...]
    are you sure ? being undefined behavior anything could happen, eg the crashing thread could have corrupted memory accessed by other threads ( including the data of any mutex release mechanism you come out with ) rendering your efforts moot. You have a bug, you should fix it.

    FYI, as other said, many aspects of exception handling ( especially on UB conditions ) are hardware and implementation dependent, so, what OS should this run on ? ( if on Windows, note that there's a dedicated subforum for that ... )
    Last edited by superbonzo; October 23rd, 2014 at 02:38 AM. Reason: added FYI

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured