Occasional seg fault in make check at dispatch.cc
Michael D. Godfrey
godfrey at isl.stanford.edu
Fri Feb 6 02:04:49 CST 2009
>
> 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 did a hg pull
hg update
after your email, which I believe applied this patch. The resulting
system has been run several times on 64 and on 32bit.
Using your instructions for running under gdb. Most of
the time dispatch.cc produces 2 FAILs, but never a seg fault
so far. The output in fntests.log if the were 2 FAILS is:
>>>>> processing /d/src/octave/hg/octave/src/DLD-FUNCTIONS/dispatch.cc
***** test # replace base m-file
echo_to_file ('function a=dispatch_x(a)', "dispatch_x.m");
dispatch('dispatch_x','length','string')
assert(dispatch_x(3),3)
assert(dispatch_x("a"),1)
sleep (2);
echo_to_file ('function a=dispatch_x(a),++a;', "dispatch_x.m");
rehash();
assert(dispatch_x(3),4)
assert(dispatch_x("a"),1)
!!!!! test failed
`dispatch_x' undefined near line 5 column 9 ***** test # replace
dispatch m-file
echo_to_file ('function a=dispatch_y(a)', "dispatch_y.m");
dispatch('hello','dispatch_y','complex scalar')
assert(hello(3i),3i)
sleep (2);
echo_to_file ('function a=dispatch_y(a),++a;', "dispatch_y.m");
rehash();
assert(hello(3i),1+3i)
!!!!! test failed
`hello' undefined near line 5 column 9>>>>> processing
/d/src/octave/hg/octave/src/DLD-
FUNCTIONS/dlmread.cc
=================================================
So, at least, this seems to have cured the seg faults. It would be nice
to know why...
At least once on 32 bit it ran with no FAILS.
Michael
More information about the Bug-octave
mailing list