I am building ngspice (from git master branch) using QtCreator.
When running the static clang analyzer, I see several memory leaks and pointer problems being reported.
Are these bugs fixed on another branch, or they were not reported yet?
Thanks in advance!
Please attach the report as a text file here.
Your screen shot does not show any memory leak or memory access error, accept for the first entry which is not part of ngspice.
Most of the other messages are at most annoying, but not critical, and so nobody found time to care about.
But let's have a look at the complete report.
General compiler warnings:
I have to go one by one because QtCreator only allows to copy the report for each file, not for the whole project.
Here mslib:
From ciderlib:
From frontend:
From maths:
Here the final ones from misc and xspice. Thanks for taking a look.
Would have been better to put all this into a text file, zip it and then post it here. That would save tons of memory.
Sorry about that. Didn't notice it became so big.
In case someone wants to reproduce this error report, it can be done so by:
Hi guys!
It is enough to install clang-tools and run
scan-build makeafter configuring the project.After it you will have .html file with all reports with quick clickable links. QtCreator is actually just GUI for a single command here.
example:
@h_vogt , if it will be helpful - I can scan pre-master with some configuration for errors.
Please, feel free to download the report. It is too large for sourceforge, so if you don't mind - i've uploaded it to GoogleDrive. The link is HERE
All you need is to open index.html.
Hope it will run correctly on your machine
Regards,
Bohdan.