Author Topic: crashes, when loading a workspace and then closing CB  (Read 13610 times)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: crashes, when loading a workspace and then closing CB
« Reply #15 on: September 18, 2012, 09:22:58 pm »
If I open the C::B workspace and start compiling before CC has finished parsing it hangs in almost every case and has to be killed with kill -9

On fedora 64bit.

Assume this is separate issue, but got bit by this recently. Any word on a fix?
If I am not too impatient, I wait until CC has finished.
Or I disable it, but it is a helpful plugin when navigating through source-code.
No time to dig into it deeper.
It looks like a deadlock, because (normally or better in most or all cases) all threads are in a wait-state if that happens (wxSemaphore::Wait()).

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: crashes, when loading a workspace and then closing CB
« Reply #16 on: September 18, 2012, 09:47:37 pm »
Unfortunately, with the current trunk I can reproduce this crash on Windows. But for me it also crashes with CC disabled.

Basically I cannot shut-down C::B without crash after having loaded any project. Funnily, in the debugger it works. ::) :(
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: crashes, when loading a workspace and then closing CB
« Reply #17 on: September 18, 2012, 09:56:45 pm »
Funnily, in the debugger it works. ::) :(
Now it did, here the (not very helpfule) trace back:
Quote
[debug]#0  0x6274037a in ?? () from C:\Devel\CodeBlocks\src\devel\wxmsw28u_gcc_custom.dll
[debug]#1  0x0043b864 in InfoPane::~InfoPane (this=0x1ef1ff8, __in_chrg=<optimized out>) at C:/Devel/CodeBlocks/src/src/infopane.cpp:61
[debug]#2  0x0043b901 in InfoPane::~InfoPane (this=0x1ef1ff8, __in_chrg=<optimized out>) at C:/Devel/CodeBlocks/src/src/infopane.cpp:63
[debug]#3  0x62878cec in ?? () from C:\Devel\CodeBlocks\src\devel\wxmsw28u_gcc_custom.dll
[debug]#4  0x62701242 in ?? () from C:\Devel\CodeBlocks\src\devel\wxmsw28u_gcc_custom.dll

(Jens: I didn't apply our patch yet.)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: crashes, when loading a workspace and then closing CB
« Reply #18 on: September 18, 2012, 10:20:36 pm »
Did you double-check, that commit 8395 is applied correctly (so that it reverted 8391) ?
Full rebuild, pch's ... ?
gcc 4.6 or 4.7, which wxWidgets ?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: crashes, when loading a workspace and then closing CB
« Reply #19 on: September 18, 2012, 10:35:44 pm »
Did you double-check, that commit 8395 is applied correctly (so that it reverted 8391) ?
I think that was it: in main.cpp I forgot to sync the Manager shutdown changes (main.cpp is heavily modified in my local copy). I'll report back...

Full rebuild, pch's ... ?
gcc 4.6 or 4.7, which wxWidgets ?
Yes, yes, gcc 4.7, wxWidgets 2.8.12.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ