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

 
 

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

Submitted by:  Clem <clemwang>
Submitted on:  Wed 02 Nov 2011 02:39:54 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: DuplicateAssigned to: None
Originator Name: ClemOpen/Closed: Closed
Release: 3.4.0Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Administrator
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 02 Nov 2011 03:28:27 AM UTCjordighStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1