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

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

[Octave-bug-tracker] [bug #65547] Byte-code machine working in debug mod


From: Hendrik K
Subject: [Octave-bug-tracker] [bug #65547] Byte-code machine working in debug mode causes crash / core dump
Date: Tue, 2 Apr 2024 02:15:37 -0400 (EDT)

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

                 Summary: Byte-code machine working in debug mode causes crash
/ core dump 
                   Group: GNU Octave
               Submitter: koerhen
               Submitted: Tue 02 Apr 2024 06:15:37 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: bytecode-evaluator
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 02 Apr 2024 06:15:37 AM UTC By: Hendrik K <koerhen>
In certain scenarios working in debug mode with the byte-code machine active
causes a core dump/crash. 
The version ID is 3cd264056d3a (from end of February 2024), so the patch for
https://savannah.gnu.org/bugs/?65056 is included.


Steps to reproduce with two function files:


function ret = test1(in);
  in_1 = in * 2;
  if in_1 < 100
    ret = sin(in);
  else
    ret = cos(in);
  endif
endfunction



function ret = test2()
  ret = test1(3);
endfunction


1) Set a breakpoint in test1 (line ret = sin(in);)
2) Run test2 (e.g. via test2() on the command line)
3) change the breakpoint line to ret = cos(in);
4) Quit debug mode (using the square icon in the GUI)
--> system crash / core dump


When the byte-code machine is disabled via __vm_enable__(0) and the same steps
are executed, no crash occurs.

 







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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