From: Bil Kleb Date: 2002-01-25T07:16:48+09:00 Subject: Re: Modifying NArray's NVector dumps core? Bil Kleb wrote: > > Depending on the parameters we pass to the code via GetoptLong, the code > will either consistently run or consistently fail. New, even stranger data: In the following, the mere difference of having or not having a space between a command line option and its argument spells the difference between a trouble-free run and a core dump! E.g., % Advect.rb -lminmod -t500 -c 15 --historySkip 0 Iteration 442, Log(L2)= -10.01 works fine; however, if one removes the space between -c and 15, % Advect.rb -lminmod -t500 -c15 --historySkip 0 Iteration 442, Log(L2)= -10.01 ./InteriorCell.rb:31: [BUG] Segmentation fault ruby 1.6.6 (2001-12-26) [i686-linux] Aborted (core dumped) This time it is failing in what looks like a different spot from my earlier post. However, upon closer inspection it is actually still rooted in the same Vector.rb to_s method call since InteriorCell.rb fails during the string interpolation of @position (which is a Vector/NVector): 30 def plot 31 "#@position #@state" # <<<< fails here 32 end -- Bil Kleb NASA Langley Research Center Hampton, Virginia, USA