Forum: Ruby on Rails Thread deadlock activerecord 2.2.2/ruby 1.8.6/postgres win32

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2a857700d8c921213f81fe13730ca82c?d=identicon&s=25 Charles Duffy (ccd)
on 2008-12-16 10:29
Attachment: testoutput.txt (2 KB)
Hello,

I'm trying to run the tests that come with activerecord-2.2.2. I'm using
PostgreSQL 8.3 with the pg driver. Other details:

ruby version: 1.8.6 build 111
platform: windows XP SP2
activerecord version: 2.2.2
activesupport version: 2.2.2
pg version: 0.7.9.2008.10.13
mocha version: 0.9.3

When I run "rake test_postgresql TEST=test\cases\transactions_test.rb, I
get a thread deadlock. The error output is attached.

Some other observations:

* The error only manifests itself when the ruby environment platform is
windows. The tests work perfectly under Linux (at least, with ruby 1.8.6
build 114 rather than 111)
* The platform of the PostgreSQL server machine is irrelevant to the
test outcome.
* Comparing database query logs of a (linux-based) good run with a
(windows-based) bad run shows no relevant differences in the queries
being sent to PostgreSQL, until the failure occurs where the windows log
just stops abruptly.
* The error isn't the result of a database deadlock.

I also tried this with ruby 1.8.7. This doesn't give a deadlock error -
instead it just hangs at the same point.

Any ideas on how to get these tests to run to completion successfully?

Thanks,

Charles Duffy
This topic is locked and can not be replied to.