[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/
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI, (continued)
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI, John Donoghue, 2022/10/22
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI, Markus Mützel, 2022/10/24
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI, anonymous, 2022/10/26
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI, Markus Mützel, 2022/10/27
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI, anonymous, 2022/10/27
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI, Markus Mützel, 2022/10/28
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI, anonymous, 2022/10/28
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI, Torsten Lilge, 2022/10/28
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI, Torsten Lilge, 2022/10/28
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI, anonymous, 2022/10/28
- [Octave-bug-tracker] [bug #63230] Docking Command Window to the right side crashes Octave GUI and resets the GUI,
Markus Mützel <=