ALT Linux Team development discussions
 help / color / mirror / Atom feed
* Re: [devel] ruby-1.9.2-alt1.r29034.1: Sisyphus/i586 test rebuild failed
  @ 2010-10-12 10:09   ` Alexey I. Froloff
  2010-10-12 12:16     ` Dmitry V. Levin
  2010-10-16 10:40     ` Alexey I. Froloff
  0 siblings, 2 replies; 6+ messages in thread
From: Alexey I. Froloff @ 2010-10-12 10:09 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 1838 bytes --]

On Sat, Oct 02, 2010 at 11:34:02PM +0400, ALT beekeeper wrote:
> Package: ruby-1.9.2-alt1.r29034.1
> Status: Sisyphus/i586 test rebuild failed

>   1) Error:
> test_client_auth(OpenSSL::TestSSL):
> OpenSSL::SSL::SSLError: SSL_read:: sslv3 alert bad record mac
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:36:in `sysread'
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:36:in `fill_rbuff'
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:160:in `gets'
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/openssl/test_ssl.rb:277:in `block in test_client_auth'
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/openssl/test_ssl.rb:123:in `call'
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/openssl/test_ssl.rb:123:in `start_server'
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/openssl/test_ssl.rb:247:in `test_client_auth'

> Package: ruby-1.9.2-alt1.r29034.1
> Status: Sisyphus/x86_64 test rebuild failed

>   1) Error:
> test_eof_0(OpenSSL::TestEOF2):
> OpenSSL::SSL::SSLError: SSL_read:: internal error
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:36:in `sysread'
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:36:in `fill_rbuff'
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:68:in `read'
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/ruby/ut_eof.rb:8:in `block in test_eof_0'
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/openssl/test_pair.rb:80:in `open_file'
>     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/ruby/ut_eof.rb:5:in `test_eof_0'

Как это лечить?

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [devel] ruby-1.9.2-alt1.r29034.1: Sisyphus/i586 test rebuild failed
  2010-10-12 10:09   ` [devel] ruby-1.9.2-alt1.r29034.1: Sisyphus/i586 test rebuild failed Alexey I. Froloff
@ 2010-10-12 12:16     ` Dmitry V. Levin
  2010-10-12 12:27       ` Alexey I. Froloff
  2010-10-16 10:40     ` Alexey I. Froloff
  1 sibling, 1 reply; 6+ messages in thread
From: Dmitry V. Levin @ 2010-10-12 12:16 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 1975 bytes --]

On Tue, Oct 12, 2010 at 02:09:45PM +0400, Alexey I. Froloff wrote:
> On Sat, Oct 02, 2010 at 11:34:02PM +0400, ALT beekeeper wrote:
> > Package: ruby-1.9.2-alt1.r29034.1
> > Status: Sisyphus/i586 test rebuild failed
> 
> >   1) Error:
> > test_client_auth(OpenSSL::TestSSL):
> > OpenSSL::SSL::SSLError: SSL_read:: sslv3 alert bad record mac
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:36:in `sysread'
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:36:in `fill_rbuff'
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:160:in `gets'
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/openssl/test_ssl.rb:277:in `block in test_client_auth'
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/openssl/test_ssl.rb:123:in `call'
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/openssl/test_ssl.rb:123:in `start_server'
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/openssl/test_ssl.rb:247:in `test_client_auth'
> 
> > Package: ruby-1.9.2-alt1.r29034.1
> > Status: Sisyphus/x86_64 test rebuild failed
> 
> >   1) Error:
> > test_eof_0(OpenSSL::TestEOF2):
> > OpenSSL::SSL::SSLError: SSL_read:: internal error
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:36:in `sysread'
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:36:in `fill_rbuff'
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/.ext/common/openssl/buffering.rb:68:in `read'
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/ruby/ut_eof.rb:8:in `block in test_eof_0'
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/openssl/test_pair.rb:80:in `open_file'
> >     /usr/src/RPM/BUILD/ruby-1.9.2-alt1.r29034.1/test/ruby/ut_eof.rb:5:in `test_eof_0'
> 
> Как это лечить?

А что означают эти сообщения вида "OpenSSL::SSL::SSLError: SSL_read::"?


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [devel] ruby-1.9.2-alt1.r29034.1: Sisyphus/i586 test rebuild failed
  2010-10-12 12:16     ` Dmitry V. Levin
@ 2010-10-12 12:27       ` Alexey I. Froloff
  2010-10-12 22:34         ` Dmitry V. Levin
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey I. Froloff @ 2010-10-12 12:27 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

On Tue, Oct 12, 2010 at 04:16:53PM +0400, Dmitry V. Levin wrote:
> А что означают эти сообщения вида "OpenSSL::SSL::SSLError: SSL_read::"?
Это класс иксепшна (внутренний рубёвый) и функция (из libssl),
которая вернула ошибку.  Всё что после этого префикса получено от
ERR_peek_last_error() непосредственно после этой ошибки.

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [devel] ruby-1.9.2-alt1.r29034.1: Sisyphus/i586 test rebuild failed
  2010-10-12 12:27       ` Alexey I. Froloff
@ 2010-10-12 22:34         ` Dmitry V. Levin
  2010-10-13 18:45           ` Alexey I. Froloff
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry V. Levin @ 2010-10-12 22:34 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 473 bytes --]

On Tue, Oct 12, 2010 at 04:27:14PM +0400, Alexey I. Froloff wrote:
> On Tue, Oct 12, 2010 at 04:16:53PM +0400, Dmitry V. Levin wrote:
> > А что означают эти сообщения вида "OpenSSL::SSL::SSLError: SSL_read::"?
> Это класс иксепшна (внутренний рубёвый) и функция (из libssl),
> которая вернула ошибку.  Всё что после этого префикса получено от
> ERR_peek_last_error() непосредственно после этой ошибки.

Тогда надо смотреть сам тест и его openssl.cnf.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [devel] ruby-1.9.2-alt1.r29034.1: Sisyphus/i586 test rebuild failed
  2010-10-12 22:34         ` Dmitry V. Levin
@ 2010-10-13 18:45           ` Alexey I. Froloff
  0 siblings, 0 replies; 6+ messages in thread
From: Alexey I. Froloff @ 2010-10-13 18:45 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

On Wed, Oct 13, 2010 at 02:34:04AM +0400, Dmitry V. Levin wrote:
> > > А что означают эти сообщения вида "OpenSSL::SSL::SSLError: SSL_read::"?
> > Это класс иксепшна (внутренний рубёвый) и функция (из libssl),
> > которая вернула ошибку.  Всё что после этого префикса получено от
> > ERR_peek_last_error() непосредственно после этой ошибки.
> Тогда надо смотреть сам тест
http://git.altlinux.org/people/raorn/packages/?p=ruby.git;a=blob;f=test/openssl/test_ssl.rb
http://git.altlinux.org/people/raorn/packages/?p=ruby.git;a=blob;f=test/openssl/test_pair.rb
Это валящиеся тесты.

http://git.altlinux.org/people/raorn/packages/?p=ruby.git;a=blob;f=ext/openssl/lib/openssl/buffering.rb
http://git.altlinux.org/people/raorn/packages/?p=ruby.git;a=tree;f=ext/openssl
Это сам модуль.

> и его openssl.cnf.
Использует системный.

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [devel] ruby-1.9.2-alt1.r29034.1: Sisyphus/i586 test rebuild failed
  2010-10-12 10:09   ` [devel] ruby-1.9.2-alt1.r29034.1: Sisyphus/i586 test rebuild failed Alexey I. Froloff
  2010-10-12 12:16     ` Dmitry V. Levin
@ 2010-10-16 10:40     ` Alexey I. Froloff
  1 sibling, 0 replies; 6+ messages in thread
From: Alexey I. Froloff @ 2010-10-16 10:40 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 862 bytes --]

On Tue, Oct 12, 2010 at 02:09:45PM +0400, Alexey I. Froloff wrote:
> >   1) Error:
> > test_client_auth(OpenSSL::TestSSL):
> > OpenSSL::SSL::SSLError: SSL_read:: sslv3 alert bad record mac
> >   1) Error:
> > test_eof_0(OpenSSL::TestEOF2):
> > OpenSSL::SSL::SSLError: SSL_read:: internal error
> Как это лечить?
Сам же и отвечу:

* ext/openssl/ossl_asn1.c (obj_to_asn1bool): fixed ASN1::Boolean
  encoding issue for OpenSSL 1.0.0 compatibility.
  ASN1::Boolean.new(false).to_der wrongly generated "\1\1\377" which
  means 'true'.

  ASN1_TYPE_set of OpenSSL <= 0.9.8 treats value 0x100 as 'false'
  but OpenSSL >= 1.0.0 treats it as 'true'.  ruby-ossl was using
  0x100 for 'false' for backward compatibility.  Just use 0x0 for
  the case OpenSSL >= OpenSSL 0.9.7.

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-16 10:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-12 10:09   ` [devel] ruby-1.9.2-alt1.r29034.1: Sisyphus/i586 test rebuild failed Alexey I. Froloff
2010-10-12 12:16     ` Dmitry V. Levin
2010-10-12 12:27       ` Alexey I. Froloff
2010-10-12 22:34         ` Dmitry V. Levin
2010-10-13 18:45           ` Alexey I. Froloff
2010-10-16 10:40     ` Alexey I. Froloff

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git