bugGNU Octave - Bugs: bug #34723, crash caused by DIM arg...

 
 

bug #34723: crash caused by DIM arg "1": max([3,4],[3,4],1)

Submitter:  Clem <clemwang>
Submitted:  Wed 02 Nov 2011 02:39:54 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Duplicate Assigned to:  None
Originator Name:  Clem Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 02 Nov 2011 03:28:27 AM UTC, comment #1: 

This is a duplicate of #34589:

http://savannah.gnu.org/bugs/index.php?34589

I did, however, push a documentation fix, since you are making the "wrong" call to max anyways due to a misunderstanding of how it works:

http://hg.savannah.gnu.org/hgweb/octave/rev/40dab5d70115

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Wed 02 Nov 2011 02:39:54 AM UTC, original submission:  

max([3,4],[3,4])     % doesn't crash but
max([3,4],[3,4],1)   % Crashes!!

Also tried:

max(magic(3),magic(3)')    %doesn't crash but
max(magic(3),magic(3)', 1) % Crashes!!
max(magic(3),magic(3)', 2) % Crashes!!

shortest case:
max(1,1)       % doesn't crashes
max(1,1,1)     % Crashes!!

Also happens with min() function too

Full error msg:
panic: Bus error -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
/usr/bin/octave: line 68: 80314 Bus error               OCTAVE_HOME="${OCTAVE_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" FFLAGS="${FFLAGS}" LDFLAGS="${LDFLAGS}" DL_LDFLAGS="${DL_LDFLAGS}" SED="$SED" MAGICK_HOME="${ROOT}" FONTCONFIG_PATH="${ROOT}/etc/fonts" "${ROOT}/bin/octave-3.4.0" "$@"

Clem <clemwang>

 

(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 clemwang (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-11-02 jordigh StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code