From bug-octave-request at bevo dot che dot wisc dot edu Sat Sep 16 22:30:31 1995 From: Scott Bushman To: bug-octave at bevo dot che dot wisc dot edu, bug-octave@che.utexas.edu, jwe@bevo.che.wisc.edu Date: Sat, 16 Sep 1995 22:30:29 -0500 To: bug-octave at che dot utexas dot edu Subject: Error in output_precision? cc: jwe at bevo dot che dot wisc dot edu, bug-octave@bevo.che.wisc.edu Bug report for Octave 1.1.1 configured for rs6000-ibm-aix3.2.5 Description: ----------- repeated use of the output_precision function with negative numbers causes segmentation fault. Repeat-By: --------- Given below is a list of sequences and results which caused crash: octave:1> output_precision=-10 output_precision = -10 octave:2> output_precision=-10 warning: invalid value specified for output_precision error: Segmentation fault -- stopping myself... Although this sequence causes a segmentation fault on bullwinkle.che.utexas.edu, the repeat of the sequence on another machine (Octave 1.1.1 on june.che.utexas.edu running Ultrix) resulted in the following: octave:1> output_precision= -10 output_precision = -10 octave:2> output_precision= -10 warning: invalid value specified for output_precision octave:3> output_precision= -10 warning: invalid value specified for output_precision octave:4> and appears to trap the error. Configuration (please do not edit this section): ----------------------------------------------- uname output: AIX bullwinkle 2 3 000007317100 Fortran compiler: xlf FFLAGS: -O F2C: F2CFLAGS: FLIBS: -lxlf C compiler: gcc CFLAGS: -DHAVE_CONFIG_H -g -O C++ compiler: c++ CXXFLAGS: -DHAVE_CONFIG_H -Wa,-u -fno-implicit-templates -g -O LDFLAGS: -g DEFS: -DOCTAVE_SOURCE=1 -DSEPCHAR=':' -DSEPCHAR_STR=: -D_ALL_SOURCE=1 -DHAVE_STRFTIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DWORDS_BIGENDIAN=1 -DIEEE_BIG_ENDIAN=1 -DHAVE_ALLOCA=1 -DSTDC_HEADERS=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_SYS_UTSNAME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_SELECT_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_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRERROR=1 -DHAVE_ATEXIT=1 -DHAVE_TEMPNAM=1 -DHAVE_MEMMOVE=1 -DHAVE_PUTENV=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_GETRUSAGE=1 -DHAVE_LIBM=1 -DHAVE_FINITE=1 -DHAVE_ISNAN=1 -DHAVE_ACOSH=1 -DHAVE_ASINH=1 -DHAVE_ATANH=1 -DHAVE_ERF=1 -DHAVE_ERFC=1 -DHAVE_LGAMMA=1 -DSIGNGAM_DECLARED=1 -DEXCEPTION_IN_MATH=1 -DRETSIGTYPE=void -DHAVE_SYS_SIGLIST=1 User-preferences (please do not edit this section): -------------------------------------------------- EDITOR = "vi" IMAGEPATH = ".:/usr/local/lib/octave/1.1.1/imagelib//" INFO_FILE = "/usr/local/info/octave.info" LOADPATH = ".:/home/bushman/octave/examples:/home/bushman/octave/laserint:/home/bushman/octave/paramestim:/home/bushman/octave/rfcalib:/home/bushman/octave/npsol:/home/bushman/octave/nnmodel:/home/bushman/octave/gradient:/home/bushman/nnet:/home/bushman/octave/pls_toolbox:" OCTAVE_VERSION = "1.1.1" PAGER = "/usr/local/bin/less -icqsM" PS1 = "\\s:\\#> " PS2 = "> " automatic_replot = "false" whitespace_in_literal_matrix = "" default_save_format = "ascii" do_fortran_indexing = "false" empty_list_elements_ok = "warn" eps = 2.22045e-16 gnuplot_binary = "gnuplot" ignore_function_time_stamp = "system" implicit_str_to_num_ok = "false" ok_to_lose_imaginary_part = "warn" output_max_field_width = 10 output_precision = 5 page_screen_output = "false" prefer_column_vectors = "true" prefer_zero_one_indexing = "false" print_answer_id_name = "true" print_empty_dimensions = "true" propagate_empty_matrices = "true" resize_on_range_error = "true" return_last_computed_value = "false" save_precision = 17 silent_functions = "false" split_long_rows = "true" treat_neg_dim_as_zero = "false" warn_assign_as_truth_value = "true" warn_comma_in_global_decl = "true" warn_divide_by_zero = "true" Scott Bushman Dept. of Chemical Engineering C0400 phone: (512) 471-1046 University of Texas at Austin FAX: (512) 471-7060 Austin, TX 78712-1062 e-mail: bushman at che dot utexas dot edu