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

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

[Octave-bug-tracker] [bug #47543] segfault with warnings disabled in sub


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #47543] segfault with warnings disabled in subfunction when all warnings disabled globally
Date: Sat, 26 Mar 2016 17:20:04 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Update of bug #47543 (project octave):

                  Status:                    None => Confirmed              
                 Summary: Crash in image graythresh with warnings disabled =>
segfault with warnings disabled in subfunction when all warnings disabled
globally

    _______________________________________________________

Follow-up Comment #1:

Thanks for reporting. I was looking at this at the same time, I've created a
minimal test case to show that it has to do with the test environment and
something to do with the way warnings are disabled and restored. Retitling to
be more accurate and has nothing to do with the image package specifically.

Using the attached myfunc.m,


>> warning off all
>> test myfunc
warning: missing semicolon near line 2, column 1 in file ''
panic: impossible state reached in file '../../libinterp/corefcn/error.cc' at
line 1470
panic: Aborted -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
Aborted


There have to be at least two test runs after warnings are turned off. The
first test seems to enable all warnings, perhaps as it's trying to restore the
warning state before test was called. The second test causes the segfault. It
has to be a subfunction that disables warnings locally.

(file #36770)
    _______________________________________________________

Additional Item Attachment:

File name: myfunc.m                       Size:0 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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