octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63230] Docking Command Window to the right si


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI
Date: Sat, 29 Oct 2022 12:48:50 -0400 (EDT)

Update of bug #63230 (project octave):

                  Status:               Confirmed => Ready For Test         

    _______________________________________________________

Follow-up Comment #17:

@Torsten: Thanks for that reproducer. With your instructions, I could
replicate the segmentation fault here.

IIUC, we are using two different buffers to which we are reading the console
buffer alternatingly.
When resizing the window, the buffer sizes weren't always adapted to the new
console buffer. That could lead to the case were one of the buffers could
override the start of the other buffer. When trying to delete[] the buffer
which was partly overridden, a segmentation fault occurred. That is probably
because new[] stores information about the allocated memory directly in front
of the memory segment. That information was also overwritten, and delete[]
assumed that the corresponding memory must already have been freed.

I pushed a patch to the default branch here that updates the buffer size in
the situations where it was previously missing:
https://hg.savannah.gnu.org/hgweb/octave/rev/bbd028c2c233

Marking as ready for test.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63230>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]