There is interesting production grade bug on Linux: if JVM is in client mode then after 1500 sessions Hibernate starts to behave strangely.
If -server option is used then test passes.
-untar the content in the hibernate source directory;
apply diff to the AllTests.java or simply add line to the class suite.addTest( ManySessionsTest.suite() );
run test :
ant -f build-test.xml junit -Dtestpattern=Many*Test -Dvm=client
this time test fails
ant -f build-test.xml junit -Dtestpattern=Many*Test -Dvm=server
now it passes
The bug affects 3.1 line and is present in the 3.2 trunc
This is complementary to bug
Environment: Java 5 on linux 32 and 64 bit version
Note: by default 64 bit version of JDK is in server mode.