Hi,
I encountered a strange problem.
When running “ruby soduku_test.rb -n test_next_cell” the process
hangs and eats up all of the assigned CPU . I have no idea why that
is … I asked a friend to run it on windows and it does work there.
The program yield in a stack overflow.
I recently reinstalled my computer and used darwinports. I don’t
think that I’ve seen that problem before. I also reinstalled ruby
again, but with not much success and the same thing happens on
another Mac too.
Installing ruby the way I used to do it before, using the
hivelogic tutorial, also didn’t work.
That are the versions that fail:
ruby 1.8.5 (2006-08-25) [i686-darwin8.8.3] # darwin ports 1.3.1,
gcc 4.0
ruby 1.8.4 (2005-12-24) [i686-darwin8.8.3] # directly from the
sources (hivelogic tutorial)
ruby 1.8.2 (2004-12-25) [universal-darwin8.0] # comes with Tiger
Both Macs (MB C2D, MBP CD) are running OSX 10.4.8 with all updates.
uname -v:
Darwin Kernel Version 8.8.3: Wed Oct 18 21:57:10 PDT 2006;
root:xnu-792.15.4.obj~4/RELEASE_I386
A stack trace of the “working” run on Windows is below this mail.
I attached the code. Unfortunately I haven’t been able to isolate
the problem, but at least the code consistently fails.
Any ideas? Can somebody please try it out on another Mac? I will
also do that later on.
Cheers,
Mariano