Can you please provide a minimal example file showing this problem?
Attached. I visit the file, switch to autoconf-mode, and run ispell-buffer. Without switching to autoconf-mode, I don't get the error.
Also, please have a look at how the spellchecking process is started
(relevant entry in 'ps -aux' call from a console) in case there is
something strange there.