Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Strange behavior of QBasicAtomicInt::testAndSetRelease

Strange behavior of QBasicAtomicInt::testAndSetRelease

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 662 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yakovm
    wrote on last edited by
    #1

    I am working on some code which ,after holding an exception returns 0. And after that executes some code ,which eventually throws exception: The call stack is :

    @QBasicAtomicInt::testAndSetRelease(int expectedValue, int newValue) Line 381
    QMutex::unlock() Line 382 + 0x11 bytes@
    Looks like it happens from QMetaObject::activate@ it calls QMutex::unlock() twice. Is it always twice?

    In the code the debugger points to the exit of function :QBasicAtomicInt::testAndSetRelease(int expectedValue, int newValue). The values of expectedValue and newValue are strange (non valid) - 2806644 and 63243056

    I have no idea how to proceed with that and investigate where /what causes to this behavior. Any advices?

    P.S. For me theoretically it looks like mutex which was not locked is unlock ....But if it is even correct - I have no idea how to find what mutex is that and what causes such behavior

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved