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

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

[Octave-bug-tracker] [bug #40744] assert not robust against errors and i


From: Michael Goffioul
Subject: [Octave-bug-tracker] [bug #40744] assert not robust against errors and interrupts (CTRL-C)
Date: Fri, 29 Nov 2013 02:35:53 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36

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

                 Summary: assert not robust against errors and interrupts
(CTRL-C)
                 Project: GNU Octave
            Submitted by: goffioul
            Submitted on: Fri 29 Nov 2013 02:35:52 AM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The current implementation of assert.m (as of afeb233ea443) is not robust
against errors and interrupts (due to CTRL-C). The persistent variable
call_depth can be left at a value >= 0 if the final decrement statement is not
executed, leading to non-functional assert afterwards.

Possible triggers are:
1) error during execution of assert, as in bug #40743
2) CTRL-C

This should be avoided by using unwind_protect and saving/restoring the
call_depth current value.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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