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

Issue with OpenSSL on Ubuntu 18.10 #6960

Closed
mamantoha opened this issue Oct 19, 2018 · 1 comment
Closed

Issue with OpenSSL on Ubuntu 18.10 #6960

mamantoha opened this issue Oct 19, 2018 · 1 comment

Comments

@mamantoha
Copy link
Contributor

mamantoha commented Oct 19, 2018

This code does not compile on Ubuntu 18.10

require "http/client"

url = "https://httpbin.org/get"
uri = URI.parse(url)
response = HTTP::Client.get(uri)

Output:

Invalid memory access (signal 11) at address 0x8
[0x55eb3bf59276] *CallStack::print_backtrace:Int32 +118
[0x55eb3bf4957d] __crystal_sigfault_handler +61
[0x7f0f82beadd0] ???
[0x55eb3bfad8a0] ???
[0x55eb3bf49b5e] ~procProc(Pointer(LibCrypto::Bio), Pointer(UInt8), Int32, Int32) +46
[0x7f0f82ea5b53] ???
[0x7f0f82ea5ff3] BIO_write +35
[0x7f0f82ea414a] ???
[0x7f0f82ea64c7] BIO_ctrl +119
[0x7f0f8311212d] ???
[0x7f0f83116a2f] ???
[0x7f0f8311164a] ???
[0x7f0f830fd854] SSL_do_handshake +84
[0x55eb3bfe8796] *OpenSSL::SSL::Socket::Client#initialize<TCPSocket, OpenSSL::SSL::Context::Client, Bool, String>:Nil +342
[0x55eb3bfe8626] *OpenSSL::SSL::Socket::Client::new:context:sync_close:hostname<TCPSocket, OpenSSL::SSL::Context::Client, Bool, String>:OpenSSL::SSL::Socket::Client +214
[0x55eb3bfdbcc3] *HTTP::Client#socket:IO+ +499
[0x55eb3bfdb54c] *HTTP::Client#send_request<HTTP::Request>:Bool +60
[0x55eb3bfdb4cd] *HTTP::Client#exec_internal_single<HTTP::Request>:(HTTP::Client::Response | Nil) +29
[0x55eb3bfdb2ed] *HTTP::Client#exec_internal<HTTP::Request>:HTTP::Client::Response +29
[0x55eb3bfdb2c6] *HTTP::Client#exec<HTTP::Request>:HTTP::Client::Response +6
[0x55eb3bfdb275] *HTTP::Client#exec<String, String, HTTP::Headers, Nil>:HTTP::Client::Response +69
[0x55eb3bfdab68] *HTTP::Client::exec<String, URI, Nil, Nil, Nil>:HTTP::Client::Response +600
[0x55eb3bfda8fd] *HTTP::Client::get<URI>:HTTP::Client::Response +29
[0x55eb3bf3c22d] __crystal_main +1837
[0x55eb3bfed296] *Crystal::main_user_code<Int32, Pointer(Pointer(UInt8))>:Nil +6
[0x55eb3bfed1f9] *Crystal::main<Int32, Pointer(Pointer(UInt8))>:Int32 +41
[0x55eb3bf471e6] main +6
[0x7f0f8279f09b] __libc_start_main +235
[0x55eb3bf3ba3a] _start +42
[0x0] ???

Package: libssl-dev
Version: 1.1.1-1ubuntu2

Installation of libssl1.0-dev package fixes this issue.

@j8r
Copy link
Contributor

j8r commented Oct 19, 2018

Fixed by #6738

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

2 participants