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

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

[Octave-bug-tracker] [bug #61191] eval can cause a crash to desktop


From: anonymous
Subject: [Octave-bug-tracker] [bug #61191] eval can cause a crash to desktop
Date: Mon, 20 Sep 2021 07:32:53 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0

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

                 Summary: eval can cause a crash to desktop
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 20 Sep 2021 11:32:51 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.3.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

The following error is causing the code available at

https://github.com/nghiaho12/camera_calibration_toolbox_octave

to crash to desktop. I have narrowed down the cause to a few evaluations of
eval. To reproduce:
* Copy the following into a script (I called it bug.m)

omc_1=rand(3,1);
Tc_1=rand(3,1);
bugscript

* In a different folder that needs to be added to the Octave path (it must be
a different folder or it works without issue) create a script called
bugscript.m and copy the following:

kk = 1;
eval(['omckk = omc_' num2str(kk) ';']);
eval(['Tckk = Tc_' num2str(kk) ';']);
eval(['omc_' num2str(kk) ' = omckk;']);

The fourth line will crash Octave. If the third or fourth line is removed it
works fine.

I received no error just a crash to the desktop but the link above has a bug
report stating they get the message:

panic: impossible state reached in file 'libinterp/corefcn/stack-frame.cc' at
line 1257
fatal: caught signal Aborted -- stopping myself...


The above works without issue in version 4.2.1 and the author of the above
link states they tested it in version 4.4.0.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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