From bug-request at octave dot org Thu Dec 8 11:58:49 2005 Subject: Octave segfaults on a valid command line From: "Michael Smolsky" To: bug-octave at bevo dot che dot wisc dot edu Date: Thu, 8 Dec 2005 11:46:19 -0600 Hi, Thanks for maintaining a great product. Octave crashes on the following command line: clear,u=[1,2,3];v=find(u>100);for i=u(v).',i,end As you see, the loop here is over an empty vector of a certain kind. I have a similar line in my script (that's how I ran into the bug), so I don't think it matters whether the line is invoked from the interpretter command line or from an m-function. Please, find system and octave version information, as well as a log of a crashed session below. Thanks again, Michael. The OS I'm running is: langley:~/Timing/matlab>cat /etc/redhat-release Red Hat Enterprise Linux WS release 4 (Nahant Update 2) langley:~/Timing/matlab>uname -a Linux langley.somedomain.com 2.6.9-22.0.1.ELsmp #1 SMP Tue Oct 18 18:39:27 EDT 2005 i686 i686 i386 GNU/Linux (NOTE: domain name changed, my employer is paranoid about privacy issues) We have a pretty standard linux installation on a multi-cpu XEON server. Octaverc file: langley:~/Timing/matlab>cat ~/.octaverc page_screen_output = 0; langley:~/Timing/matlab> Octave session that demostrates the crash: langley:~/Timing/matlab>octave GNU Octave, version 2.1.57 (i686-pc-linux-gnu). Copyright (C) 2004 John W. Eaton. This is free software; see the source code for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'. Additional information about Octave is available at http://www.octave.org. Please contribute if you find this software useful. For more information, visit http://www.octave.org/help-wanted.html Report bugs to (but first, please read http://www.octave.org/bugs.html to learn how to write a helpful report). octave:1> clear,u=[1,2,3];v=find(u>100);for i=u(v).',i,end panic: Segmentation fault -- stopping myself... attempting to save variables to `octave-core'... save to `octave-core' complete Segmentation fault langley:~/Timing/matlab> -- ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/ ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------