Occasional seg fault in make check at dispatch.cc

Ben Abbott bpabbott at mac.com
Fri Feb 6 07:36:24 CST 2009


On Feb 5, 2009, at 8:54 PM, Ben Abbott wrote:

>
> On Feb 5, 2009, at 7:59 PM, John W. Eaton wrote:
>
>> Thanks for the stack traces.
>>
>> Does the following change fix the problem for you (at least, does it
>> avoid the segfault)?
>>
>> http://hg.savannah.gnu.org/hgweb/octave/rev/7838271ee25c
>>
>> I think this change makes the intent clearer, but I still don't see
>> anything wrong with the previous code.  But I can be kind of stupid
>> about recursion sometimes, so maybe I'm missing something.
>>
>> jwe
>
> Seven "make check"s and no seg-faults. The number of dispatch.cc test
> failures varied from 0 to 2.
>
> Thanks
> Ben

I should had done as Michael did ... my two failures are below

   20   ***** test # replace base m-file
   21  echo_to_file ('function a=dispatch_x(a)', "dispatch_x.m");
   22  dispatch('dispatch_x','length','string')
   23  assert(dispatch_x(3),3)
   24  assert(dispatch_x("a"),1)
   25  sleep (2);
   26  echo_to_file ('function a=dispatch_x(a),++a;', "dispatch_x.m");
   27  rehash();
   28  assert(dispatch_x(3),4)
   29  assert(dispatch_x("a"),1)
   30 !!!!! test failed
   31 `dispatch_x' undefined near line 5 column 9  ***** test #  
replace dispatch m-file
   32  echo_to_file ('function a=dispatch_y(a)', "dispatch_y.m");
   33  dispatch('hello','dispatch_y','complex scalar')
   34  assert(hello(3i),3i)
   35  sleep (2);
   36  echo_to_file ('function a=dispatch_y(a),++a;', "dispatch_y.m");
   37  rehash();
   38  assert(hello(3i),1+3i)
   39 !!!!! test failed
   40 `hello' undefined near line 5 column 9>>>>> processing /Users/ 
bpabbott/Development/mercurial/octave-3.1.51/src/DLD-FUNCTIONS/ 
dlmread.cc

Ben


More information about the Bug-octave mailing list