For some time I keep seeing C::B crahes in Linux. Today I could now narrow it down to be quite reproducable on my system (I checked one PC and Laptop). I am using Build SVN12487 on Ubuntu 18.04LTS, gcc 7.4.0.
Here is the procedure to reproduce it:
Preparation:
1. Create a new Console Prokject with the default GCC.
2. Change the code to the following and save the project
class CTest
{
void foo();
int nBar;
};
void CTest::foo() {
}
main()
{
return 0;
}
1. Open the project. Select the Symbol Browser Tab and open CTest. It should show the function and the member variable
2. change: void CTest::foo() -> int CTest::foo()
3. Ctrl-S to save.
4. Double click on the symbol browser tree on "foo()" or "nBar"
I observed one of the following behaviours
a) ASSERT Window. The Backtrace includes "OnTreeDoubleClick". After the Assert windows I always get a crash with a few more clicks to various symbol tree items
b) crash
c) C:B hangs, so I have to kill the process.
I tried the same in the Windows version. There is no problem. I noted, that after saving the file in windows the tree is modified, this is missing in Linux. It seems that I can avoid the problem by re-parsing the tree every time.
Can someone please verify that on another system?
I compiled the 12535, current nightly. Same behavior. I tested both checked and unchecked at "Update parser when typing (on save otherwise)" in Settings -> Editor -> Code Completion.
Could that be to GTK2? For compiling I used the system repository dependencies, i.e.
sudo apt install libwxgtk3.0-dev libboost-system-dev fakeroot debhelper cdbs libgtk2.0-dev libgamin-dev libboost-dev libhunspell-dev
and then
./bootstrap
./debian/setup_control.sh
dpkg-buildpackage -us -uc
The resulting debfiles I installed with
Here is the system Info.
Name : Code::Blocks
Version : svn-r12535
SDK Version : 2.16.0
Scintilla Version : 3.7.5
Author : The Code::Blocks Team
E-mail : info@codeblocks.org
Website : http://www.codeblocks.org
OS : Linux 4.15.0-159-generic x86_64
Scaling factor : 1,000000
Detected scaling factor: 0,989583
Display PPI : 96x95
Display count : 1
Display 0 : XY=[0,0]; Size=[1920,1080]; Primary
wxWidgets Library (wxGTK port)
Version 3.0.4 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 2.24.
Compile-time GTK+ version is 2.24.32.