From help-request at octave dot org Mon Jan 10 08:28:34 2005 Subject: Re: Segmentation fault? From: David Bateman To: Vic Norton Cc: help at octave dot org Date: Mon, 10 Jan 2005 15:28:43 +0100 Try running gdb on octave or "valgrind --tool=memcheck" and identify where exactly the seg-fault is happening.. D. According to Vic Norton (on 01/10/05): > I've narrowed down my segmentation-fault problem. It seems to be the > consequence of the two word command: > octave> clear all > Does "clear all" have known problems? > > Anyway, here are two scenarios that describe my situation. > > Scenario 1. > I open octave. I run my script. Everything works perfectly. I quit > octave. No problems. Output saved by the script is just what it ought > to be. > > Scenario 2. > I open octave. I run my script. Everything works perfectly. I type in > "clear all" and hit return. No problem. I quit octave. After a > significant pause I get the message > panic: Segmentation fault -- stopping myself... > attempting to save variables to `octave-core'... > save to `octave-core' complete > Segmentation fault > Output saved by the script is just what it ought to be. > > This is not a big problem for me. The script does what it is supposed > to and everything is saved. Quitting octave to clear out variables > and subroutines works fine. I just restart octave if I want to do > something else. > > However there does seem to be a problem with the command "clear all". > Any ideas? Any suggestions? > > Regards, > > Vic > > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- -- David Bateman David dot Bateman at motorola dot com Motorola CRM +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary ------------------------------------------------------------- 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 -------------------------------------------------------------