From bug-octave-request at bevo dot che dot wisc dot edu Tue Nov 12 14:29:04 2002 Subject: load/Ctrl-c bug From: "John W. Eaton" To: bsapp at lanl dot gov Cc: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 12 Nov 2002 14:28:32 -0600 On 20-Mar-2001, Ben Sapp wrote: | Bug report for Octave 2.1.33 configured for %OCTAVE_CANONICAL_HOST_TYPE% | | Description: | ----------- | | If you hit Ctrl-c in the middle of executing a load command Octave core | dumps when you finally quit. The data file I noticed this on was a | plain asci text file. There was one number on each line the file was | 300,000 lines long. | | The output from gdb: | | This GDB was configured as "mips-sgi-irix6.5"... | Core was generated by `octave-2.1.33'. | Program terminated with signal 11, Segmentation fault. | Reading symbols from /usr/lib32/libcurses.so...done. | Reading symbols from /usr/lib32/libdl.so...done. | Reading symbols from /usr/lib32/libsocket.so...done. | Reading symbols from /usr/local/lib/libz.so.1.1.3...done. | Reading symbols from /usr/lib32/libm.so...done. | Reading symbols from /usr/lib32/libc.so.1...done. | #0 0x10491fe8 in _IO_flush_all () at genops.c:665 | 665 if (fp->_IO_write_ptr > fp->_IO_write_base | (gdb) bt | #0 0x10491fe8 in _IO_flush_all () at genops.c:665 | #1 0x10492164 in _IO_cleanup () at genops.c:694 | #2 0xfa44dcc in _exithandle () at nftw.c:349 | Current language: auto; currently c | (gdb) | | | Repeat-By: | --------- | | load temp.wav | Ctrl-c (Make sure ctrl-c is hit before the load completes) | quit I think this problem is now fixed in the CVS sources. There are still some changes that could be made in load-save.cc to improve the way it reponds to interrupts, but I don't think that an interrupt during load will cause a segfault now. Thanks, jwe ------------------------------------------------------------- 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 -------------------------------------------------------------