Code::Blocks Forums

User forums => Help => Topic started by: CHannosset on July 07, 2022, 12:31:39 pm

Title: FreeBSD crashes
Post by: CHannosset on July 07, 2022, 12:31:39 pm
Hi,
I am new developer in FreeBSD (30++ development in C/C++/C# experience) and am using Code Blocks.
I like it but I experience frequent crashes and core dump: I can provide core dump or can debug and point out where is the issue is.
I can help pointing out the bugs, can you please forward me to the best Forum to help developers stabilizing the application.

Christophe
Title: Re: FreeBSD crashes
Post by: AndrewCot on July 07, 2022, 01:20:08 pm
First with any report please supply details of the version of C::B you are using and if it's not the latest nightly build then give it a go. You can grab the latest nightly from the nightly build forum via links in the posts.

There are a number of ways to track down bug yourself at a high level they all require you to build C::B. So first question is what OS are you familiar with as IMHO you should start with it to build C::B in order to get familiar with the build process and debugging. From this answer I can then point you to what I think will be the quickest way to get up to speed.
C::B XML crash report file is way more usable than a core dump.
Title: Re: FreeBSD crashes
Post by: CHannosset on July 08, 2022, 10:48:50 am
Thanks
CODE::Blocks
Name             : Code::Blocks
Version          : 20.03-r11997
SDK Version      : 2.0.0
Scintilla Version: 3.7.5
Author           : The Code::Blocks Team
E-mail           : info@codeblocks.org
Website          : http://www.codeblocks.org

wxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
compiled at Feb 13 2022 05:37:23

Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.31.

Operating System

FreeBSD 13.0-RELEASE-p11

Questions

Title: Re: FreeBSD crashes
Post by: AndrewCot on July 08, 2022, 01:01:44 pm
Answers to your questions:
Things to try or questions to answer:
Title: Re: FreeBSD crashes
Post by: CHannosset on July 08, 2022, 02:11:27 pm
Thanks for the info.
I am currently developing services and libraries in C under FreeBSD - I would like to stabilize the version as it crashes on a regular basis.
I have extracted from Source Forge the latest source code.

Where can I find the procedure to rebuild on FreeBSD?
I had a look on the web site and the documentation but there is no specific detail for FreeBSD. The manual also specifies that Building Code::Blocks for Linux "should be reviewed and completed. Does not seem to be totally updated"[sic]. As you correctly mentioned Linux is not FreeBSD and definitely some settings needs to be correctly configured.

I am also unaware of any third party library used. Is there a list?

Crashes mainly happens on 2 occasions:
When Code::Blocks crashes, it simply disappear silently leaving only a .core file a proof of the sudden disappearance.
Title: Re: FreeBSD crashes
Post by: AndrewCot on July 08, 2022, 02:48:48 pm
I cannot help for much longer as I ask question and for you to try stuff and you want to not do it or go off on tangents.
So let me try again:

      5. Please run codeblcoks from GDB and grab the back trace.

As for building C::B I have not got that far yet and will not advance to it until I get the info I want as I do not want you to spend days and days going off on the following and wasting your time and mine:
Title: Re: FreeBSD crashes
Post by: CHannosset on July 09, 2022, 02:52:31 am

I went to the Forum page on howe to use a nightly build and from there to the wiki page and the FreeBSD installation procedure. I will follow and install the latest build.

Thanks for your support.
Title: Re: FreeBSD crashes
Post by: AndrewCot on July 09, 2022, 03:28:02 am
Thanks for your reply.
Title: Re: FreeBSD crashes
Post by: CHannosset on July 09, 2022, 03:44:14 am
Title: Re: FreeBSD crashes
Post by: AndrewCot on July 09, 2022, 04:51:07 am
You will need to perform the analysis of the core dump on your FreeBSD as I do not have the required files and FreeBSD to do the analysis.
Title: Re: FreeBSD crashes
Post by: CHannosset on July 11, 2022, 02:00:35 pm
Hi,
Good news, I was able to install a more recent release
Build July 5 2022, 19:47:41

Name             : Code::Blocks
Version          : 20.03-r11997
SDK Version      : 2.0.0
Scintilla Version: 3.7.5
Author           : The Code::Blocks Team
E-mail           : info@codeblocks.org
Website          : http://www.codeblocks.org

wxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
compiled at Jul  3 2022 16:37:06

Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.33.


I reactivated the code completion plugin and all seems stable so far.  :)
Title: Re: FreeBSD crashes
Post by: AndrewCot on July 11, 2022, 02:19:05 pm
When you had the codecompletion plugin disabled did you get and crashes?

You did not updated C::B. It is still r11997.
You installed a later wxWidgets build, but it looks to be the same 3.0.5 version.

So you effectively did no updates that I can see that matter or would change to help the crash and now that you have re-enabled the codecompletion IMHO you are back to the same position you were before you disabled the codecompletion plugin.
Title: Re: FreeBSD crashes
Post by: CHannosset on July 12, 2022, 01:52:50 am
Indeed, the version is the same but the build is more recent as shown in the screenshot.
The Build specifies July and not February.
I have no idea how to update the binaries others than use pkg update -f and pkg upgrade -f.
I relaunched the commands today, CodeBlocks 20.03_2 was in the list but apparently there was no changes.

Note that after I tried to install subversion, I encounter Qt5 library incompatibility.
I have the hardware and coding expertise to help for FreeBSD, I simply do not have the experience and knowledge of the Operating System as my profile is not an administrator one.
Title: Re: FreeBSD crashes
Post by: CHannosset on July 12, 2022, 09:35:08 am
Hi,

I do not know if this is the right post, please do not hesitate to correct me.
I noticed that sometimes the building of a project in FreeBSD triggers some message box due to a failed assert.
Here is the screenshot of one.
Title: Re: FreeBSD crashes
Post by: CHannosset on July 20, 2022, 05:33:47 am
The version I have (Build: Jul  5 2022, 19:47:41 - wx3.0.5 - clang 11.0.1 (FreeBSD , unicode) - 64 bit)  is very stable - no crash, no issue.
A delight to use.

Thank you.