Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed test installing with zef: Sending non-SSL to SSL socket... #37

Open
MorayJ opened this issue Oct 7, 2018 · 4 comments
Open

Failed test installing with zef: Sending non-SSL to SSL socket... #37

MorayJ opened this issue Oct 7, 2018 · 4 comments

Comments

@MorayJ
Copy link

MorayJ commented Oct 7, 2018

I'm trying to install IRC::Client and this is a dependency. I get this failed test, and then it appears to hang.

===> Testing: IO::Socket::Async::SSL:ver<0.7.0>
# Failed test 'Sending non-SSL to SSL socket does not hang (connection closed)'
# at t/bad-incoming.t line 25
# Looks like you failed 1 test of 3

I am on:
This is Rakudo version 2018.06-369-gfa73bb4 built on MoarVM version 2018.06-391-g91d2878
implementing Perl 6.c.

@nige123
Copy link

nige123 commented Feb 11, 2019

This happened for me too. I'm on:

This is Rakudo version 2018.12 built on MoarVM version 2018.12
implementing Perl 6.d.

@juanman80
Copy link

This happened to me too, on Raspbian GNU/Linux 10 (buster), MoarVM version 2018.12:

===> Testing: IO::Socket::Async::SSL:ver<0.7.4>
# Failed test 'Sending non-SSL to SSL socket does not hang (connection closed)'                                                      
# at t/bad-incoming.t line 25
# Looks like you failed 1 test of 3

After this line, nothing happens but the process still uses 100% cpu.

@jnthn
Copy link
Collaborator

jnthn commented Sep 22, 2019

You'll need a newer MoarVM to do this, but: but running it under the debugger (for example, in Comma IDE), pausing it when it hangs, and seeing what's on the stack could provide useful information. Other things to check:

  • Does it work on a more recent Rakudo version?
  • What version of the OpenSSL library?

@Marcool04
Copy link

Hi,
I am seeing this same failure on a Raspberry Pi 3B+. System info:

$ uname -srmo
Linux 4.19.114-1-ARCH armv7l GNU/Linux
$ rakudobrew current
Currently running moar-blead
$ raku --version
This is Rakudo version 2020.02.1-338-gb0a720cb6 built on MoarVM version 2020.02.1-107-gab089e947
implementing Raku 6.d.
$ openssl version
OpenSSL 1.1.1f  31 Mar 2020

This is in fact the first test of the first testfile that is failing.

Here is what I have so far, with the OpenSSL dependency being installed and tested ok with no errors:

$ git clone https://github.com/jnthn/p6-io-socket-async-ssl.git
[snip]
$ cd p6-io-socket-async-ssl
$ zef install --debug IO::Socket::Async::SSL
===> Searching for: IO::Socket::Async::SSL
===> Found: IO::Socket::Async::SSL:ver<0.7.5> [via Zef::Repository::LocalCache]
===> Dependencies: OpenSSL
===> Filtering: IO::Socket::Async::SSL:ver<0.7.5>
===> Filtering [OK] for IO::Socket::Async::SSL:ver<0.7.5>
===> # SKIP: No need to build IO::Socket::Async::SSL:ver<0.7.5>
===> Testing: IO::Socket::Async::SSL:ver<0.7.5>
[IO::Socket::Async::SSL] Testing with plugin: Zef::Service::Shell::prove+{<anon|1>}
[IO::Socket::Async::SSL] # Failed test 'Sending non-SSL to SSL socket does not hang (connection closed)'
[IO::Socket::Async::SSL] # at t/bad-incoming.t line 25
[IO::Socket::Async::SSL] # You failed 1 test of 3
[IO::Socket::Async::SSL] t/bad-incoming.t ...
[IO::Socket::Async::SSL] Failed 1/3 subtests
[HANGS FOREVER]
^C
$ strace -o ~/p6-io-socket-async-ssl.strace1.txt raku -Ilib t/bad-incoming.t
not ok 1 - Sending non-SSL to SSL socket does not hang (connection closed)
# Failed test 'Sending non-SSL to SSL socket does not hang (connection closed)'
# at t/bad-incoming.t line 25
ok 2 - No connection emitted
ok 3 - Server tap did not QUIT on bad incoming connection
1..3
# You failed 1 test of 3
Segmentation fault (core dumped)

The stacktrace is here:
https://termbin.com/le8g
And I have uploaded the coredump here: https://send.firefox.com/download/084116f5fce0768c/#_VMlaPLI5roJiDixTyCQqw
The firefox send link needs a password, pm me for that if you'd like the dump I'm happy to share it (just not publicly).

Other checks:
I have made sure that the OpenSSL raku module functions ok by using it directly, and as far as I can tell it does.

Looking at the stack trace - which I'm not very adept at reading - it could be related to threading? Not sure though to be honest. Let me know if there's anything else I can do to help debug.

Thanks for all the great work on raku!
Regards,
Mark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants