bugGNU Octave - Bugs: bug #41395, Octave crashes without error...


bug #41395: Octave crashes without error message on this script

Submitted by:  None
Submitted on:  Wed 29 Jan 2014 07:27:09 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Duplicate Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  3.8.0
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.


( Jump to the original submission)

Thu 05 Feb 2015 06:06:34 AM UTC, comment #7: 

This bug looks like a duplicate of both bug #41699 and bug #40443. I can reproduce the crash with the provided example, or with the following:

clear -f

There has been progress in fixing this on the development branch, see the other bug reports. Closing this one as a duplicate.

Mike Miller <mtmiller>
Project Administrator
Thu 30 Jan 2014 07:33:14 PM UTC, comment #6: 

I found antoher way to trigger the same bug. (same stack trace as before)

clear -f

Thu 30 Jan 2014 06:41:12 PM UTC, comment #5: 

#0  0x6886cc50 in liboctinterp-2!_ZN5ArrayIdED2Ev ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#1  0x687d8276 in liboctinterp-2!_ZN13octave_matrixD0Ev ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#2  0x6885da92 in liboctinterp-2!_ZN5ArrayI12octave_valueED2Ev ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#3  0x687c8dd6 in liboctinterp-2!_ZN10octave_mapD1Ev ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#4  0x687dfff5 in liboctinterp-2!_ZN13octave_structD0Ev ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#5  0x6891da11 in liboctinterp-2!_ZNSt8_Rb_treeISsSt4pairIKSs12octave_valueESt10
_Select1stIS3_ESt4lessISsESaIS3_EE8_M_eraseEPSt13_Rb_tree_nodeIS3_E ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#6  0x683ba370 in liboctinterp-2!_ZN20octave_user_functionD2Ev ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#7  0x683ba5bb in liboctinterp-2!_ZN20octave_user_functionD0Ev ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#8  0x6871e83b in liboctinterp-2!_Z14get_dimensionsRK12octave_valuePKcRiS4_ ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#9  0x687d3400 in liboctinterp-2!_ZN12symbol_table8fcn_info12fcn_info_rep19clear
_user_functionEb () from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#10 0x687d1809 in liboctinterp-2!_ZN12symbol_table15clear_functionsEb ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#11 0x68723e6f in liboctinterp-2!_Z6FclearRK17octave_value_listi ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#12 0x683501f7 in liboctinterp-2!_ZN14octave_builtin17do_multi_index_opEiRK17oct
ave_value_listPKSt4listI13octave_lvalueSaIS4_EE ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#13 0x6834f3b9 in liboctinterp-2!_ZN14octave_builtin7subsrefERKSsRKSt4listI17oct
ave_value_listSaIS3_EEiPKS2_I13octave_lvalueSaIS8_EE ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#14 0x6834fbf1 in liboctinterp-2!_ZN14octave_builtin7subsrefERKSsRKSt4listI17oct
ave_value_listSaIS3_EEi ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#15 0x683bfb55 in liboctinterp-2!_ZN12octave_value7subsrefERKSsRKSt4listI17octav
e_value_listSaIS3_EEi ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#16 0x683bfc16 in liboctinterp-2!_ZN12octave_value7subsrefERKSsRKSt4listI17octav
e_value_listSaIS3_EEiPKS2_I13octave_lvalueSaIS8_EE ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#17 0x683f298a in liboctinterp-2!_ZN21tree_index_expression6rvalueEiPKSt4listI13
octave_lvalueSaIS1_EE ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#18 0x683f30c3 in liboctinterp-2!_ZN21tree_index_expression6rvalueEi ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#19 0x683efed4 in liboctinterp-2!_ZN21tree_index_expression7rvalue1Ei ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#20 0x683ea43f in liboctinterp-2!_ZN14tree_evaluator15visit_statementER14tree_st
atement () from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#21 0x683e9a25 in liboctinterp-2!_ZN14tree_evaluator20visit_statement_listER19tr
ee_statement_list () from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#22 0x683bccbb in liboctinterp-2!_ZN18octave_user_script17do_multi_index_opEiRK1
7octave_value_list () from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#23 0x683bfc57 in liboctinterp-2!_ZN12octave_value17do_multi_index_opEiRK17octav
e_value_list () from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#24 0x683ef8c0 in liboctinterp-2!_ZN15tree_identifier6rvalueEiPKSt4listI13octave
_lvalueSaIS1_EE () from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#25 0x687ecbc5 in liboctinterp-2!_ZN15tree_identifier6rvalueEi ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#26 0x683eea20 in liboctinterp-2!_ZN15tree_identifier7rvalue1Ei ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#27 0x683ea43f in liboctinterp-2!_ZN14tree_evaluator15visit_statementER14tree_st
atement () from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#28 0x683e9a25 in liboctinterp-2!_ZN14tree_evaluator20visit_statement_listER19tr
ee_statement_list () from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#29 0x686fb619 in liboctinterp-2!_Z9main_loopv ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#30 0x680c4f96 in octave_execute_interpreter ()
   from C:\Files\Octave-3.8.0\bin\liboctinterp-2.dll
#31 0x6e1ba78a in ZN14QMetaCallEvent13placeMetaCallEP7QObject ()
   from C:\Files\Octave-3.8.0\bin\QtCore4.dll
#32 0x073b4050 in ?? ()
#33 0x026f7e4a in ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent ()
   from C:\Files\Octave-3.8.0\bin\QtGui4.dll
#34 0x026fda5d in ZN12QApplication6notifyEP7QObjectP6QEvent ()
   from C:\Files\Octave-3.8.0\bin\QtGui4.dll
#35 0x6e1ae655 in ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent ()
   from C:\Files\Octave-3.8.0\bin\QtCore4.dll
#36 0x6e20155c in ZN16QCoreApplication9sendEventEP7QObjectP6QEvent ()
   from C:\Files\Octave-3.8.0\bin\QtCore4.dll
#37 0x6e1b0d62 in ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QTh
readData () from C:\Files\Octave-3.8.0\bin\QtCore4.dll
#38 0x6e1cfd55 in ZN21QEventDispatcherWin3222activateEventNotifiersEv ()
   from C:\Files\Octave-3.8.0\bin\QtCore4.dll
#39 0x75d662fa in gapfnScSendMessage () from C:\Windows\syswow64\user32.dll
#40 0x75d680a9 in USER32!GetUserObjectInformationW ()
   from C:\Windows\syswow64\user32.dll
#41 0x00030000 in ?? ()
#42 0x75d66d3a in USER32!GetThreadDesktop ()
   from C:\Windows\syswow64\user32.dll
#43 0x6e1cfb20 in ZN21QEventDispatcherWin3222activateEventNotifiersEv ()
   from C:\Files\Octave-3.8.0\bin\QtCore4.dll
#44 0x75d677c4 in USER32!CharPrevW () from C:\Windows\syswow64\user32.dll
#45 0x75d6788a in USER32!DispatchMessageW ()
   from C:\Windows\syswow64\user32.dll
#46 0x6e1cf604 in ZN21QEventDispatcherWin3213processEventsE6QFlagsIN10QEventLoop
17ProcessEventsFlagEE () from C:\Files\Octave-3.8.0\bin\QtCore4.dll
#47 0x00000000 in ?? ()

Thu 30 Jan 2014 06:06:13 PM UTC, comment #4: 

Please add a backtrace.
In gdb, after the segfault do:

Philip Nienhuis <philipnienhuis>
Project Member
Wed 29 Jan 2014 09:14:52 PM UTC, comment #3: 

I started the gdb.exe octave-gui.exe and the last output reads as follows. Maybe this is helpful.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 10208.0x2680]
0x6886cc50 in liboctinterp-2!_ZN5ArrayIdED2Ev ()
   from C:\User\Mathe\Octave-3.8.0\bin\liboctinterp-2.dll

Wed 29 Jan 2014 08:57:25 PM UTC, comment #2: 

diary helps:

Felipe G. Nievinski <fgnievinski>
Wed 29 Jan 2014 08:50:13 PM UTC, comment #1: 

It's very probably the notorious "clear all" bug that's popping up.
Just google for '"clear all" octave bug' and you'll see reports dating back from 2008. AFAIU it manifests itself especially on MinGW but looking at the bug reports tru google it seems linux builds are also affected.
I couldn't find an explicit bug report for it. But I'm fairly certain this is a duplicate. Marking as "confirmed" for the time being.

My Octave-3.8.0 (another build than the one from Markus), running on XP, disappears from sight as soon as the first "clear all" statement is executed.

It used to be related/caused/triggered by certain OF packages, but on my box this "crash" happens w/o any OF package loaded.
After a fresh restart of Octave, "clear all" appears harmless. Only after having executed certain instructions/functions/commands the bug condition is triggered and a "clear all" command makes Octave disappear.

The bug can be avoided by invoking the clear command w/o the "all" parameter.

Philip Nienhuis <philipnienhuis>
Project Member
Wed 29 Jan 2014 07:27:09 PM UTC, original submission:  

I encountered a bug, that crashes GNU Octave without giving me any hint to why it crashes. The program windows just disappears. No error message, no MS Windows error report, nothing.

Steps to reproduce:
1. Use Windows. (GUI or CLI doesn't matter)
2. Create a script with the content below.
3. Run the script. (I.e. using F5 in the GUI)
4. Observe that octave is closed without any error message.


clear all;

clear all;

It's actually the second repetition that triggers the bug. Doesn't matter if it is in a single script like in my example here, or if I would call a similar script twice.

I tested it on my own Linux-build and there it works fine, so it's Windows specific.

I use the build form http://mxeoctave.osuv.de/octave-3.8.0-4-portable.7z

So there are two questions:
a) What is the error?
b) Is there a crash handler that could help diagnose the problem (i.e. running with gnu debug gdb ? )



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

Attach Files:

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by fgnievinski (Posted a comment)

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-05 mtmiller StatusConfirmed => Duplicate
        Open/ClosedOpen => Closed
        Dependencies- => Depends on bugs #41699
    2014-03-27 mtmiller CategoryNone => Octave Function
    2014-01-29 philipnienhuis StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.5