octave segfault under AIX/shared

G.. gail at tnp-online.de
Tue Dec 4 05:53:04 CST 2007



G.. wrote:
> 
> ~/octave-2.9.17> ./run-octave 
> ./run-octave[67]: 500156 Segmentation fault(coredump)
> 

I can make it work now! The problem was the generation of the history
filename. If OCTAVE_HISTFILE was set it works. Alternatively, one can
comment out the "file_ops::is_dir_sep"-clause in the function
default_history_file below (probably related to: file[file.length()-1]).

G.

default_history_file (void)
{
  std::string file;

  std::string env_file = octave_env::getenv ("OCTAVE_HISTFILE");

  if (! env_file.empty ())
    file = env_file;

  if (file.empty ())
    {
      std::string home_dir = octave_env::get_home_directory ();

      if (! home_dir.empty ())
	{
	  file = home_dir;
	  if (! file_ops::is_dir_sep (file[file.length()-1]))
	    file.push_back (file_ops::dir_sep_char);
	  file.append (".octave_hist");
	}
      else
	file = ".octave_hist";
    }

  return file;
}

-- 
View this message in context: http://www.nabble.com/octave-segfault-under-AIX-shared-tf4886987.html#a14149345
Sent from the Octave - Bugs mailing list archive at Nabble.com.



More information about the Bug-octave mailing list