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

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

[Octave-bug-tracker] [bug #55736] Segfault when copying source file text


From: anonymous
Subject: [Octave-bug-tracker] [bug #55736] Segfault when copying source file text to clipboard in octave-gui
Date: Sun, 17 Feb 2019 22:57:28 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

URL:
  <https://savannah.gnu.org/bugs/?55736>

                 Summary: Segfault when copying source file text to clipboard
in octave-gui
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 18 Feb 2019 03:57:27 AM UTC
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: None
             Assigned to: None
         Originator Name: jwoithe
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.0.91
        Operating System: GNU/Linux

    _______________________________________________________

Details:

System: Slackware64 14.2

Attempting to copy text from a source file to the clipboard in octave-gui from
Octave 5.0.91-7b9a5ab8350f reliably triggers a segfault.  The method used to
do the copy is irrelevant: both the Edit-Copy menu item and the Ctrl-C
keyboard shortcut cause the problem.

The core dump file indicates that the crash occurs in
documentation::copyClipboard().  Inspection shows that m_doc_browser is not a
valid pointer (0x7fffffff00000000), and it is the dereferencing of this
pointer as part of the call to m_doc_browser->hasFocus() which triggers the
segfault.

The segfault occurs regardless of whether the documentation pane is visible or
not.

Commenting out the four code lines in documentation::copyClipboard() is
sufficient to stop the segfault from happening.  With this change, text is
copied from source files to the clipboard.  Clearly this is only a temporary
workaround though; I guess the change would make it impossible to copy from
the documentation pane if that was ever attempted.

Octave 4.4.1 on the same system does not exhibit the problem.

Slackware64 14.2 has Qt 4.8.7 and it is against this that octave has been
compiled.  Octave was configured using


../configure --with-blas=openblas --libdir=/usr/local/lib64 --disable-docs


Omitting "--with-blas-openblas", causing octave to use ATLAS instead, makes no
difference.

Please let me know if I can be of further assistance.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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