bugGNU Octave - Bugs: bug #34589, Segmentation fault when calling...

 
 

bug #34589: Segmentation fault when calling function "max"

Submitter:  Ken Dwyer <dwyer>
Submitted:  Tue 18 Oct 2011 04:40:26 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Ken Dwyer Open/Closed:  * Closed
Release:  * 3.4.3 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 19 Oct 2011 03:16:30 AM UTC, comment #1: 

Thanks, patched in this changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/fcdf0993b8c9

It will be part of the next minor bugfixing release of the 3.4 series if there is one, or failing that, in the next 3.6 major release.

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Tue 18 Oct 2011 04:40:26 PM UTC, original submission:  

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]')'


Ken Dwyer <dwyer>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by dwyer (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-10-19 jordigh StatusNone Fixed
        Open/ClosedOpen Closed
        Release3.4.2 3.4.3

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code