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

gen_tcp:connect/2 crashes with {inet_backend, socket} #7530

Closed
alexeyshch opened this issue Aug 2, 2023 · 5 comments
Closed

gen_tcp:connect/2 crashes with {inet_backend, socket} #7530

alexeyshch opened this issue Aug 2, 2023 · 5 comments
Assignees
Labels
bug Issue is reported as a bug in progress priority:medium team:PS Assigned to OTP team PS

Comments

@alexeyshch
Copy link

alexeyshch commented Aug 2, 2023

Describe the bug
gen_tcp:connect/2 crashes with the following error:

1> gen_tcp:connect(#{port => 80, addr => {127, 0, 0, 1}, family => inet}, [{inet_backend, socket}]). 
** exception error: undefined function gen_tcp_socket:connect/3

Without {inet_backend, socket} it works as expected:

1> gen_tcp:connect(#{port => 80, addr => {127, 0, 0, 1}, family => inet}, []). 
{ok,#Port<0.5>}

Affected versions
OTP 26.0.2

@alexeyshch alexeyshch added the bug Issue is reported as a bug label Aug 2, 2023
@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Aug 4, 2023
@RaimoNiskanen
Copy link
Contributor

The bug seems to have been introduced in OTP-24.3, ticket OTP-17455, b12fd38

@bmk
Copy link
Contributor

bmk commented Aug 10, 2023

Fix for this issue has been merged into maint (and master).
Patches with this fix will (eventually) be released as: 24.3.4.14, 25.3.2.6 and 26.1

@bmk
Copy link
Contributor

bmk commented Sep 11, 2023

OTP 25.3.2.6 has now been released.

@bmk
Copy link
Contributor

bmk commented Sep 20, 2023

OTP 26.1 has now been released.

@bmk
Copy link
Contributor

bmk commented Oct 12, 2023

OTP 24.3.4.14 has now been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug in progress priority:medium team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

4 participants