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

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

[Octave-bug-tracker] [bug #50707] exit in a script file causes abort fro


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #50707] exit in a script file causes abort from unhandled exception
Date: Sun, 2 Apr 2017 18:10:54 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?50707>

                 Summary: exit in a script file causes abort from unhandled
exception
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Sun 02 Apr 2017 03:10:53 PM PDT
                Category: Interpreter
                Severity: 4 - Important
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Calling the exit() function in a script file results in a SIGABRT because of
an uncaught octave::exit_exception in the interpreter:


$ cat foo.m
exit(0);
$ octave-cli foo.m
terminate called after throwing an instance of 'octave::exit_exception'
panic: Aborted -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
Aborted
$ echo $?
134


This is particularly bad for script files that intend to return a success or
failure via the exit status using the exit function as intended.

This works correctly on the default branch, and worked in Octave 4.0, bug
affects 4.2.1 and the current stable branch.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50707>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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