bugGNU Octave - Bugs: bug #55440, clang's scan-build static analysis...


bug #55440: clang's scan-build static analysis report

Submitted by:  Dmitri A. Sergatskov <dasergatskov>
Submitted on:  Thu 10 Jan 2019 05:32:16 PM UTC  
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  5.0.1 Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 16 Jan 2019 06:27:24 AM UTC, comment #5:

Changeset http://hg.savannah.gnu.org/hgweb/octave/rev/84e0e0b6493e fixes "Called C++ object pointer is null" logic error in main_window.

Torsten <ttl>
Project Member
Wed 16 Jan 2019 05:32:16 AM UTC, comment #4:

Changeset http://hg.savannah.gnu.org/hgweb/octave/rev/8d2e8d5d617d fixes dead assignemnts in libgui.

Torsten <ttl>
Project Member
Sat 12 Jan 2019 04:33:46 PM UTC, comment #3:

The analyser might have a point that there is something off with the "Bad free" in oct-shlib.h: "delete" might be called on the static nil_rep.
This might be a fix:

But I am not sure whether I am following the code correctly. And I don't know whether we have to be more careful with the reference count of the nilrep. Could someone else please check?

Markus Mützel <mmuetzel>
Project Member
Sat 12 Jan 2019 02:51:54 PM UTC, comment #2:

I fixed one of the uncovered oddities in this changeset:

How should we keep track of what points have been worked on?

Markus Mützel <mmuetzel>
Project Member
Fri 11 Jan 2019 04:39:41 PM UTC, comment #1:

I took a look. Lots, and lots of the identified issues seem to result from not understanding Octave's memory management system, rather than being actual bugs in the memory management system.

I'm not sure how to usefully debug this. It seems like it could be hours and hours unless we simply ignore certain classes of bugs.

Rik <rik5>
Project Administrator
Thu 10 Jan 2019 05:32:16 PM UTC, original submission:

clang's scan-build static analysis report (clang 7.0.1) is available as:

(Compressed directory is 11M)
Look at index.html with you browser.

Info on scan-build:


Dmitri A. Sergatskov <dasergatskov>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by rik5
  • -email is unavailable- added by dasergatskov (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-11 rik5 Carbon-Copy- => Added jwe

    Back to the top

    Powered by Savane 3.4