bugGNU Octave - Bugs: bug #58844, Unintended binary content copied...


bug #58844: Unintended binary content copied into clipboard

Submitted by:  Hg200 <hg200>
Submitted on:  Tue 28 Jul 2020 07:59:25 PM UTC  
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Need Info Assigned to:  None
Originator Name:  hg200 Open/Closed:  Open
Release:  dev Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)

You are not logged in

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


Mon 26 Oct 2020 05:02:51 AM UTC, comment #4: 

Browsing the remaining items for the Octave 6 release let me stumble over this one.

@OP: can you confirm a crash for Octave 6.0.92 (2nd release candidate)?  For me the garbage appears in the editor, but no crash after about 10 repetitions.

os: MS Windows 10 Home (version 2004)

Kai Torben Ohlhus <siko1056>
Project Member
Mon 26 Oct 2020 04:49:51 AM UTC, comment #3: 

Just to display the graphics...

Upload content of stepstoreproduce.tar (file #49561)

Kai Torben Ohlhus <siko1056>
Project Member
Wed 29 Jul 2020 03:59:35 PM UTC, comment #2: 

I was able to reproduce on mxe-octave-stable. Clipboard as well as segfault.

GNU Octave Version: 6.0.1 (hg id: af1a9c1db88e)
MINGW32_NT-6.1 Windows 7  x86_64
mxe-octave hg id is be0a7ce498e6

Attached backtrace looks similar.

Maybe we should track in two different reports?

(file #49574)

Hg200 <hg200>
Tue 28 Jul 2020 09:59:33 PM UTC, comment #1: 

Attached the backtrace, although no debug infos are available. Anyway - maybe we can do a scintilla update?!?

- MXE is based on fb50ae69121c including some bugfixes planned for the release
- GNU Octave Version is based on hg id: 43c285a20829
- Operating System: MINGW32_NT-6.1 Windows 7  x86_64

The 64 bit seems to be more vulnarable than the 32 bit version.

Also a copy of some example clipboard data content that sometimes forces the segfault.

(file #49562, file #49563)

Hg200 <hg200>
Tue 28 Jul 2020 07:59:25 PM UTC, original submission:  


during the MXE-Octave on Windows 7 tests i came across the following two observations. The first issue is that some extra "binary" content can be unintentionally copied into the clipboard and the second issue that Octave can crashes if that content is pasted into the Octave's Editor.

- The problem appears only on MXE Windows. Not on Linux.
- I'm on the development branch of Octave.
- I haven't tested on stable (so far).

In order to reproduce it is necessary to repeat the steps as follows:

Start octave --gui with it's "default" settings (i.e. no .config file). The command window is then docked.

On the command window put the cursor to the position at bottom right and start marking the text. For reference see attached "01_copy.png"

Move the mouse cursor to the position on the top left as shown in "01_copy.png". Then release the touchpad button / mouse button. Text remains marked. Note: It is important to set the cursor "outside" the command-area, somewhat above and to the left of the word "GNU". Otherwise you will not see the issue. The amount of binary content copied to the clippboard seems to depend on the cursor-position.

Press Ctrl-c to copy the selection.

Move to notepad (external editor) or switch to the Octave Editor Tab and paste the clipboard content with Ctrl-V

Result can be seen in the picture "02_paste.png". If the step is repeated more often Octave can crash as the contend is pasted into the editor ("03_crash.png"). When pasted to notepad you can also see the unwanted content. So it is copy / clipboard problem.

The problem is: I tried again to reproduce the crash with gdb but with the current executable i can't force the crash. Have to try later again. Sorry ;-(

Hg200 <hg200>


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

Attach Files:

Attached Files
file #50101:  01_copy.png added by siko1056 (32KiB - image/png)
file #50102:  02_paste.png added by siko1056 (64KiB - image/png)
file #50103:  03_crash.png added by siko1056 (14KiB - image/png)
file #49574:  segfault_3.txt added by hg200 (6KiB - text/plain)
file #49562:  segfault_2.txt added by hg200 (7KiB - text/plain)
file #49563:  clipboardcontent.txt added by hg200 (2KiB - text/plain)
file #49561:  stepstoreproduce.tar added by hg200 (120KiB - application/x-tar)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by hg200 (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.




    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-26 siko1056 StatusNone => Need Info
    2020-10-26 siko1056 Attached File- => Added 01_copy.png, #50101
        Attached File- => Added 02_paste.png, #50102
        Attached File- => Added 03_crash.png, #50103
    2020-07-29 hg200 Attached File- => Added segfault_3.txt, #49574
    2020-07-28 hg200 Attached File- => Added segfault_2.txt, #49562
        Attached File- => Added clipboardcontent.txt, #49563
    2020-07-28 hg200 Attached File- => Added stepstoreproduce.tar, #49561

    Back to the top

    Powered by Savane 3.7