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

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

[Octave-bug-tracker] [bug #34589] Segmentation fault when calling functi


From: Ken Dwyer
Subject: [Octave-bug-tracker] [bug #34589] Segmentation fault when calling function "max"
Date: Tue, 18 Oct 2011 16:40:27 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1

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

                 Summary: Segmentation fault when calling function "max"
                 Project: GNU Octave
            Submitted by: dwyer
            Submitted on: Tue 18 Oct 2011 04:40:26 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: Ken Dwyer
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The following sequence of commands causes a segfault:


v = [-5.3416e-01 1.7764e-15 -4.3967e-01 -5.6961e-01 1.0388e+00 4.5560e-01
-2.0687e-01 -6.6613e-16 -8.8818e-16 1.0414e-01]'
w = zeros(10,1)
max(w,v,2)


panic: Segmentation fault -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Segmentation fault (core dumped)

I hadn't read the help for max very carefully before calling it as above. I
later obtained the desired output via


max([w v]')'






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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