Author Topic: Code::Blocks DeadLock, how correct to resolve the deadlock?  (Read 1759 times)

Offline omlk

  • Multiple posting newcomer
  • *
  • Posts: 110
Code::Blocks DeadLock, how correct to resolve the deadlock?
« on: December 09, 2023, 03:49:09 am »
How correct to resolve the deadlock and find where is in code?Should I end any of the threads and if the program crashes, then watch the dump codeblocks.RPT from same folder there is codeblocks.exe?
I attach screenshot.
« Last Edit: December 09, 2023, 03:51:23 am by omlk »

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 47
Re: Code::Blocks DeadLock, how correct to resolve the deadlock?
« Reply #1 on: December 09, 2023, 04:21:53 am »
Check out the nightly thread for details on using the latest version as you are using an old nightly build.

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 47
Re: Code::Blocks DeadLock, how correct to resolve the deadlock?
« Reply #2 on: December 09, 2023, 04:23:51 am »
Could not help my self playing with the help vampire.

Offline omlk

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Code::Blocks DeadLock, how correct to resolve the deadlock?
« Reply #3 on: December 09, 2023, 05:05:01 am »
Who understands what is happening on the screenshot?

Offline omlk

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Code::Blocks DeadLock, how correct to resolve the deadlock?
« Reply #4 on: December 09, 2023, 05:33:41 am »
I clicked on the "resume" button and codeblocks continued to work.

 
 * deadlock_4.png (313.67 kB, 1280x1024)
 
« Last Edit: December 09, 2023, 05:54:33 am by omlk »

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 47
Re: Code::Blocks DeadLock, how correct to resolve the deadlock?
« Reply #5 on: December 09, 2023, 06:05:48 am »
The problem can be attributed to the version you are using.

Offline nenin

  • Almost regular
  • **
  • Posts: 227
Re: Code::Blocks DeadLock, how correct to resolve the deadlock?
« Reply #6 on: December 09, 2023, 09:05:29 am »
How correct to resolve the deadlock and find where is in code?
I suppose you are trying to build more or less fresh CB source with old WX. It likely will not work at all.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5931
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Code::Blocks DeadLock, how correct to resolve the deadlock?
« Reply #7 on: December 09, 2023, 09:58:44 am »
I don't know, but from the image screen shot, I see the codeblocks.exe is started inside the bash.exe? As it is a sub-process of the bash.exe.

I haven't see such situation.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline omlk

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Code::Blocks DeadLock, how correct to resolve the deadlock?
« Reply #8 on: December 09, 2023, 10:10:02 am »
And does anyone know if there is a newer version of the kbDiff(v1.1.1) plugin available for download?
« Last Edit: December 09, 2023, 10:22:00 am by omlk »

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 47
Re: Code::Blocks DeadLock, how correct to resolve the deadlock?
« Reply #9 on: December 09, 2023, 10:54:03 pm »
omlk in my opinion in this thread and for the last month has not been from a real human.