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

ERL-1220: tls_connection crash due to mishandled timeout in 21.3 #4213

Closed
OTP-Maintainer opened this issue Apr 8, 2020 · 2 comments
Closed
Labels
bug Issue is reported as a bug priority:medium team:PS Assigned to OTP team PS
Milestone

Comments

@OTP-Maintainer
Copy link

Original reporter: JIRAUSER14601
Affected version: OTP-21.3.8.5
Fixed in version: OTP-21.3.8.5
Component: ssl
Migrated from: https://bugs.erlang.org/browse/ERL-1220


I'm getting a crash when making ssl requests. Here is the crash report
{code:java}
=PROGRESS REPORT==== 8-Apr-2020::13:52:23.669134 ===
    supervisor: {local,hackney_sup}
    started: [{pid,<0.2834.0>},
              {id,laconic_cleanspeak},
              {mfargs,{hackney_pool,start_link,
                                    [laconic_cleanspeak,
                                     [{name,laconic_cleanspeak},
                                      {pool,laconic_cleanspeak},
                                      {connect_timeout,2000},
                                      {recv_timeout,2000}]]}},
              {restart_type,permanent},
              {shutdown,10000},
              {child_type,worker}]
2020-04-08 13:52:23.669 [debug] <0.1380.0>@Undefined:Undefined:Undefined Supervisor hackney_sup started hackney_pool:start_link(laconic_cleanspeak, [{name,laconic_cleanspeak},{pool,laconic_cleanspeak},{connect_timeout,2000},{recv_timeout,2000}]) at pid <0.2834.0>
{ok,accepted}
(hockey-mobile-local@MPT-01770.local)2> 2020-04-08 13:52:26.026 [error] <0.2836.0>@Undefined:Undefined:Undefined gen_statem <0.2836.0> in state data terminated with reason: {bad_action_from_state_function,{reply,undefined,{error,timeout}}} in gen_statem:parse_actions_reply/7 line 1290
=ERROR REPORT==== 8-Apr-2020::13:52:26.024127 ===
** State machine <0.2836.0> terminating
** Last event = {{timeout,recv},timeout}
** When server state  = [{data,
                          [{"State",
                            {connection,
                             {state,
                              {static_env,client,gen_tcp,tls_connection,tcp,
                               tcp_closed,tcp_error,
                               "prod-cleanspeak.miniclippt.com",443,
                               #Port<0.141>,
                               #Ref<0.772285634.2828926977.26531>,invalid,
                               hockey_ssl_session_cb,
                               {ssl_crl_cache,
                                {{#Ref<0.772285634.2828926977.26534>,
                                  #Ref<0.772285634.2828926977.26535>},
                                 []}},
                               {#Ref<0.772285634.2828926977.26532>,
                                #Ref<0.772285634.2828926977.26533>},
                               {extracted,
                                [{decoded,
                                  {{#Ref<0.772285634.2828795905.29183>,
                                    3182246526754555285,
                                    {rdnSequence,
                                     [[{'AttributeTypeAndValue',
                                        {2,5,4,6},
                                        "US"}],
                                      [{'AttributeTypeAndValue',
                                        {2,5,4,8},
                                        {utf8String,<<"Texas">>}}],
                                      [{'AttributeTypeAndValue',
                                        {2,5,4,7},
                                        {utf8String,<<"Houston">>}}],
                                      [{'AttributeTypeAndValue',
                                        {2,5,4,10},
                                        {utf8String,<<"SSL Corporation">>}}],
                                      [{'AttributeTypeAndValue',
                                        {2,5,4,3},
                                        {utf8String,
                                         <<"SSL.com EV Root Certification Authority ECC">>}}]]}},
...

{code}
It looks like https://bugs.erlang.org/browse/ERL-884 but that one is closed.
@OTP-Maintainer
Copy link
Author

JIRAUSER14601 said:

You can close this bug, I was using 21.3 older then 21.3.8.5. Sorry

@OTP-Maintainer
Copy link
Author

ingela said:

No worries thanks for letting us know

@OTP-Maintainer OTP-Maintainer added bug Issue is reported as a bug team:PS Assigned to OTP team PS priority:medium labels Feb 10, 2021
@OTP-Maintainer OTP-Maintainer added this to the OTP-21.3.8.5 milestone Feb 10, 2021
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 priority:medium team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

1 participant