From bug-octave-request at bevo dot che dot wisc dot edu Mon Sep 11 00:16:03 1995 Subject: segfaults when I do "ls -al" From: Alexey Goldin To: bug-octave at che dot utexas dot edu Date: Mon, 11 Sep 1995 00:14:09 -0500 Bug report for Octave 1.1.1 configured for sparc-sun-sunos4.1.3_U1 Description: ----------- segfault when I try to use ls -al Repeat-By: --------- type octave, on prompt -- octave:1> ls -al Segmentation fault -- core dumped $gdb octave GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.12 (sparc-sun-sunos4.1.3), Copyright 1994 Free Software Foundation, Inc... (gdb) core core Core was generated by `octave'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/local/lib/libg++.so.2.7.0...done. Reading symbols from /usr/local/lib/libstdc++.so.2.7.0...done. Reading symbols from /usr/lib/libc.so.1.9...done. Reading symbols from /usr/lib/libdl.so.1.0...done. #0 0xef7633a4 in _IO_proc_close () (gdb) where #0 0xef7633a4 in _IO_proc_close () #1 0xef76a6ec in procbuf::sys_close () #2 0xef75f87c in _IO_file_close_it () #3 0xef7637c4 in filebuf::close () #4 0x3da10 in procstreambase::close (this=0xefffe7e0) at /usr/local/lib/g++-include/procbuf.h:36 #5 0x32044 in flush_output_to_pager () at pager.cc:155 #6 0x12870 in verror (name=0x12ad0 "error", fmt=0x3de78 "%s -- stopping myself...", args=0xefffea10 "") at error.cc:47 #7 0x12a10 in error_1 (name=0x12ad0 "error", fmt=0x3de78 "%s -- stopping myself...", args=0xefffea10 "") at error.cc:88 #8 0x12b04 in error (fmt=0x3de78 "%s -- stopping myself...") at error.cc:126 #9 0x3dea8 in my_friendly_exit (sig_name=0x1f88fc "Segmentation fault", sig_number=11) at sighandlers.cc:50 #10 0x3df28 in generic_sig_handler (i=11) at sighandlers.cc:66 #11 #12 0xef6e0690 in malloc () #13 0x19fb24 in __builtin_new (sz=50633480) #14 0x19fb5c in __builtin_vec_new (sz=50633480) #15 0xc9a54 in ArrayRep::ArrayRep (this=0x27e488, a= at 0x27c668) at ../liboctave/Array.cc:62 #16 0xc93d0 in Array::elem (this=0xeffff858, n=0) at ../liboctave/Array.cc:181 #17 0xc94b8 in Array::checkelem (this=0xeffff858, n=0) at ../liboctave/Array.cc:197 #18 0xc94d4 in Array::operator() (this=0xeffff858, n=0) at ../liboctave/Array.cc:204 #19 0x31ae0 in Octave_object::operator() (this=0xeffff858, n=0) at oct-obj.cc:81 #20 0x632e8 in tree_identifier::eval (this=0x27e5d0, print=1, nargout=1, args= at 0xeffffa20) at tree-expr.cc:1017 #21 0x63d48 in tree_indirect_ref::eval (this=0x27e700, print=1, nargout=1, args= at 0xeffffa20) at tree-expr.cc:1180 #22 0x6428c in tree_index_expression::eval (this=0x27e6d8, print=1) at tree-expr.cc:1268 #23 0x6b6a4 in tree_statement_list::eval (this=0x27e748, print=1) at tree-misc.cc:113 #24 0x2e7a8 in main (argc=-268436584, argv=0x1e7800) at octave.cc:634 (gdb) list 451 // You guessed it. 452 453 int 454 main (int argc, char **argv) 455 { 456 // The order of these calls is important, and initialize globals must 457 // come before the options are processed because some command line 458 // options override defaults. 459 460 init_user_prefs (); (gdb) quit Fix: --- Well, I'll try Configuration (please do not edit this section): ----------------------------------------------- uname output: SunOS spot 4.1.3_U1 1 sun4m Fortran compiler: f77 FFLAGS: -O F2C: F2CFLAGS: FLIBS: -lf2c -L/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/2.7.0 -L/usr/local/lib -lgcc C compiler: gcc CFLAGS: -DHAVE_CONFIG_H -g -O C++ compiler: c++ CXXFLAGS: -DHAVE_CONFIG_H -fno-implicit-templates -O -g -fno-for-scope LDFLAGS: -g DEFS: -DOCTAVE_SOURCE=1 -DSEPCHAR=':' -DSEPCHAR_STR=: -DNPSOL_MISSING=1 -DQPSOL_MISSING=1 -DFSQP_MISSING=1 -DHAVE_STRFTIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DWORDS_BIGENDIAN=1 -DIEEE_BIG_ENDIAN=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DF77_APPEND_UNDERSCORE=1 -DHAVE_ASSERT_H=1 -DHAVE_FLOAT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MEMORY_H=1 -DHAVE_PWD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_VARARGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FLOATINGPOINT_H=1 -DHAVE_SYS_UTSNAME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_SYS_TTOLD_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_DIRENT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TERMIOS_H=1 -DHAVE_SETVBUF=1 -DHAVE_GETCWD=1 -DHAVE_GETHOSTNAME=1 -DHAVE_BZERO=1 -DHAVE_BCOPY=1 -DHAVE_RINDEX=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1 -DHAVE_STRICMP=1 -DHAVE_STRNICMP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DHAVE_ON_EXIT=1 -DHAVE_TEMPNAM=1 -DHAVE_PUTENV=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_GETRUSAGE=1 -DHAVE_LIBM=1 -DHAVE_FINITE=1 -DHAVE_ISNAN=1 -DHAVE_ISINF=1 -DHAVE_INFINITY=1 -DHAVE_QU