Stack overflow machine dependent?
simonmar at microsoft.com
Wed Dec 15 11:07:49 EST 2004
On 14 December 2004 12:42, Arjen van Weelden wrote:
> Simon Marlow wrote:
>> On 14 December 2004 10:46, Arjen van Weelden wrote:
>> Is the program completely self-contained and deterministic? i.e.
>> does it read any files in the filesystem, check the time, or do
>> anything that might give different results on the two machines?
> This is exactly what makes the problem strange! Yes, it is completely
> self-contained and deterministic. I forgot to mentions this, sorry.
> The program looks like this:
> main :: IO ()
> main = putStr (f 100 0).
> Where f is a referential transparent function that doesn't do IO or
> anything unsafe.
Then I don't know... as far as I'm aware the same binary should perform
identical operations as long as the program doesn't do any IO. Can you
use profiling to track down the part of the code that is running out of
stack space, and hence try to determine why?
More information about the Glasgow-haskell-users