Bug #6036

Test failures in Fedora Rawhide/17

Added by Bohuslav Kabrda about 2 years ago. Updated over 1 year ago.

[ruby-core:42685]
Status:Closed
Priority:Normal
Assignee:Vit Ondruch
Category:-
Target version:-
ruby -v:ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux] Backport:

Description

Hi, I'm getting these test failures [1] on both Fedora 17 and Rawhide. The tests unfortunately don't run all, because there is probably an endless loop in one of them, which I can't reproduce when running tests separately (is there a way to output each test file in 'make test', so that I can find the file with the endless loop?).
BTW I'm running tests with GDBM 1.10 and some tests are skipped claiming I have GDBM 1.8 - which is probably an issue with the regexps matching GDBM version.

Regards,
Bohuslav "Slavek" Kabrda

[1] https://gist.github.com/1845285


Subtasks

Bug #6089: Test suite fails with OpenSSL 1.0.1ClosedMartin Bosslet


Related issues

Related to ruby-trunk - Bug #6221: OpenSSL 1.0.1 is breaking the drb test suite Closed 03/29/2012

Associated revisions

Revision 34646
Added by Akira Tanaka about 2 years ago

  • test/dbm/test_dbm.rb: fix skip condition for libgdbm 1.8.0 or prior. reported by Bohuslav Kabrda. [Bug #6036]

History

#1 Updated by Akira Tanaka about 2 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r34646.
Bohuslav, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • test/dbm/test_dbm.rb: fix skip condition for libgdbm 1.8.0 or prior. reported by Bohuslav Kabrda. [Bug #6036]

#2 Updated by Bohuslav Kabrda about 2 years ago

Well, thanks for fixing the gdbm support, but the other 16 failures and 20 errors are the main reason why I reported the bug... Could you have a look at that?
Thanks.

#3 Updated by Yui NARUSE about 2 years ago

  • Status changed from Closed to Assigned
  • Assignee set to Vit Ondruch

Bohuslav Kabrda wrote:

Well, thanks for fixing the gdbm support, but the other 16 failures and 20 errors are the main reason why I reported the bug... Could you have a look at that?
Thanks.

Vit, could you inspect this?

#4 Updated by Vit Ondruch about 2 years ago

Tests passes with following command: "make check TESTS="-v -x testpathname.rb -x testdrbssl.rb -x testparse.rb -x testx509cert.rb"

The testdrbssl.rb and testx509cert.rb might be related to the OpenSSL changes?

#5 Updated by Vit Ondruch about 2 years ago

The testpathname appears to hang somewhere. The TestPathname#testpathsubext_510 is the last output which appears in my log, however there might be some entries lost due to not flushed log.

#6 Updated by Akira Tanaka about 2 years ago

2012/2/20 Vit Ondruch v.ondruch@tiscali.cz:

The testpathname appears to hang somewhere. The TestPathname#testpathsubext_510 is the last output which appears in my log, however there might be some entries lost due to not flushed log.

I installed Fedora but I couldn't reproduce the problem.

% ./ruby test/pathname/test_pathname.rb
Run options:

# Running tests:

...(snip)...

Finished tests in 0.520247s, 505.5290 tests/s, 1039.8904 assertions/s.

263 tests, 541 assertions, 0 failures, 0 errors, 0 skips
% ./ruby -v
ruby 1.9.3p134 (2012-02-19 revision 34690) [i686-linux]
% lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch
Distributor ID: Fedora
Description: Fedora release 18 (Rawhide)
Release: 18
Codename: Rawhide
--
Tanaka Akira

#7 Updated by Vit Ondruch about 2 years ago

Akira Tanaka wrote:

2012/2/20 Vit Ondruch v.ondruch@tiscali.cz:

The testpathname appears to hang somewhere. The TestPathname#testpathsubext_510 is the last output which appears in my log, however there might be some entries lost due to not flushed log.

I installed Fedora but I couldn't reproduce the problem.

% ./ruby test/pathname/test_pathname.rb
Run options:

# Running tests:

...(snip)...

Finished tests in 0.520247s, 505.5290 tests/s, 1039.8904 assertions/s.

263 tests, 541 assertions, 0 failures, 0 errors, 0 skips
% ./ruby -v
ruby 1.9.3p134 (2012-02-19 revision 34690) [i686-linux]
% lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch
Distributor ID: Fedora
Description: Fedora release 18 (Rawhide)
Release: 18
Codename: Rawhide
--
Tanaka Akira

I am afraid that the test results differs if you run the whole test suite in once or if you run just part of the test suite, as you did.

#8 Updated by Akira Tanaka about 2 years ago

2012/2/22 Vit Ondruch v.ondruch@tiscali.cz:

I am afraid that the test results differs if you run the whole test suite in once or if you run just part of the test suite, as you did.

I see.

The hang is reproduced on my environment.

However the hang is occur at TestProcess#testabort, not
TestPathname#test
pathsubext_510.

|TestProc#testtoproc = 0.00 s = .
|TestProc#testtos = 0.00 s = .
|TestProcess#testabort =
C/home/akr/ruby/193/ruby/test/drb/ut
arraydrbssl.rb:22:in join':
Interrupt
| from /home/akr/ruby/193/ruby/test/drb/ut_array_drbssl.rb:22:in
'
|/home/akr/ruby/193/ruby/test/drb/ut
drbdrbssl.rb:23:in join': Interrupt
| from /home/akr/ruby/193/ruby/test/drb/ut_drb_drbssl.rb:23:in
'
|
|
|Finished tests in 3031.769106s, 2.1611 tests/s, 593.4136 assertions/s.
|
| 1) Failure:
|test
dsigalgorithmmismatch(OpenSSL::TestX509Certificate)
[/home/akr/ruby/193/ruby/test/openssl/test_x509cert.rb:175]:
|OpenSSL::X509::CertificateError expected but nothing was raised.
|...

After C, bactrace shows drb.

I think the problem is caused by drb tests.
--
Tanaka Akira

#9 Updated by Vit Ondruch about 2 years ago

Akira Tanaka wrote:

2012/2/22 Vit Ondruch v.ondruch@tiscali.cz:

I am afraid that the test results differs if you run the whole test suite in once or if you run just part of the test suite, as you did.

I see.

The hang is reproduced on my environment.

However the hang is occur at TestProcess#testabort, not
TestPathname#test
pathsubext_510.

Yes, that might be. I just noted that the "TestPathname#testpathsubext510" was last entry in my log, so there might be other tests passed, but not flushed yet.

|TestProc#testtoproc = 0.00 s = .
|TestProc#testtos = 0.00 s = .
|TestProcess#testabort =
C/home/akr/ruby/193/ruby/test/drb/ut
arraydrbssl.rb:22:in join':
Interrupt
| from /home/akr/ruby/193/ruby/test/drb/ut_array_drbssl.rb:22:in
'
|/home/akr/ruby/193/ruby/test/drb/ut
drbdrbssl.rb:23:in join': Interrupt
| from /home/akr/ruby/193/ruby/test/drb/ut_drb_drbssl.rb:23:in
'
|
|
|Finished tests in 3031.769106s, 2.1611 tests/s, 593.4136 assertions/s.
|
| 1) Failure:
|test
dsigalgorithmmismatch(OpenSSL::TestX509Certificate)
[/home/akr/ruby/193/ruby/test/openssl/test_x509cert.rb:175]:
|OpenSSL::X509::CertificateError expected but nothing was raised.
|...

After C, bactrace shows drb.

I think the problem is caused by drb tests.
--
Tanaka Akira

That makes sense. I now testing with drb tests disabled, and it does not hang.

#10 Updated by Vit Ondruch about 2 years ago

It seems that the errors are due to updated openssl library: openssl-1.0.1-0.1.beta2.fc17 ... there is a lot of errors around, Python, MySql ...

#11 Updated by Vit Ondruch about 2 years ago

It seems that the patch [1] changes the behavior of openssl and makes the test_x509cert.rb fail:

1) Failure:
testdsigalgorithmmismatch(OpenSSL::TestX509Certificate) [test/openssl/testx509cert.rb:175]:
OpenSSL::X509::CertificateError expected but nothing was raised.

I also notified Fedora's openssl maintainer about these issues [2].

[1] http://cvs.openssl.org/filediff?f=openssl/crypto/asn1/a_sign.c&v1=1.21.4.1&v2=1.21.4.2
[2] https://bugzilla.redhat.com/show_bug.cgi?id=797217

#12 Updated by Yui NARUSE about 2 years ago

Could you make another ticket ans assign it to Martin Boßlet about openssl?

#13 Updated by Vit Ondruch almost 2 years ago

  • Status changed from Assigned to Closed

Since the remaining issues were reported in separate issues #6089, #6221, I'm closing this ticket

Also available in: Atom PDF