bugGNU Octave - Bugs: bug #57945, Segmentation fault in octave-gui...

 
 

bug #57945: Segmentation fault in octave-gui if audioplayer is not cleared before exiting the Gui.

Submitter:  None
Submitted:  Tue 03 Mar 2020 12:30:27 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  octave-user Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 5.1.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 03 Mar 2020 06:34:50 PM UTC, comment #1: 

Thank you for the bug report. I can confirm a segmentation fault in version 5.2, but this appears to be fixed on the version 6 stable branch. I'm closing this bug report as fixed, and version 6.1.0 will be released soon. If you find that this problem recurs after upgrading to version 6, please feel free to comment again or open a new bug report.

Mike Miller <mtmiller>
Group Member
Tue 03 Mar 2020 12:30:27 PM UTC, original submission:  

Dear GNU/Octave developers,

If you execute the code below inside the octave gui and choose File->Exit in the main menu, a segmentation fault occurs. If you call exit(0) or clear p before exiting, no problem occurs.

warning: interrupting playing audioplayer

clear all;

f = 1000;
t = linspace(0, 1, 10000);
y = sin(2 * pi * f * t);
p = audioplayer(y,1/(t(2) - t(1)));
play(p);
## clear p; ## If you enable this line, no segmentation fault will occur!
## exit(0); ## If you enable this line, no segmentation fault will occur!


Below you can find the stack trace from Gdb.

#0  0x0000000071af9cf4 in liboctinterp-7!Cell::~Cell() () from C:\Octave\OCTAVE~1.0-W\mingw64\bin\liboctinterp-7.dll
#1  0x0000000071aa2829 in liboctinterp-7!octave_map::~octave_map() () from C:\Octave\OCTAVE~1.0-W\mingw64\bin\liboctinterp-7.dll
#2  0x0000000071aa8067 in liboctinterp-7!octave_class::~octave_class() () from C:\Octave\OCTAVE~1.0-W\mingw64\bin\liboctinterp-7.dll
#3  0x0000000066ba52b0 in liboctgui-5!std::__cxx11::_List_base<octave::symbol_info, std::allocator<octave::symbol_info> >::_M_clear() () from C:\Octave\OCTAVE~1.0-W\mingw64\bin\liboctgui-5.dll
#4  0x0000000066b15c29 in liboctgui-5!octave::main_window::~main_window() () from C:\Octave\OCTAVE~1.0-W\mingw64\bin\liboctgui-5.dll
#5  0x0000000066b15f9d in liboctgui-5!octave::main_window::~main_window() () from C:\Octave\OCTAVE~1.0-W\mingw64\bin\liboctgui-5.dll
#6  0x0000000066b0bbc7 in liboctgui-5!octave::octave_qt_app::~octave_qt_app() () from C:\Octave\OCTAVE~1.0-W\mingw64\bin\liboctgui-5.dll
#7  0x0000000066b1f318 in liboctgui-5!octave::gui_application::execute() () from C:\Octave\OCTAVE~1.0-W\mingw64\bin\liboctgui-5.dll
#8  0x0000000000402ebd in octave-gui!main ()


There is also no problem if you execute this line:

$ octave-gui audioplayer_test.m
warning: interrupting playing audioplayer


Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #48545:  audioplayer_test.m added by None (276B - application/octet-stream)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-02-05 lostbard Dependencies- bugs #61994 is dependent
    2020-03-03 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed
    2020-03-03 None Attached File- Added audioplayer_test.m, #48545

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code