Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-1220

tls_connection crash due to mishandled timeout in 21.3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 21.3.8.5
    • Fix Version/s: 21.3.8.5
    • Component/s: ssl
    • Labels:
      None

      Description

      I'm getting a crash when making ssl requests. Here is the crash report

      =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">>}}]]}},
      ...
      
      

      It looks like https://bugs.erlang.org/browse/ERL-884 but that one is closed.

        Attachments

          Activity

            People

            Assignee:
            otp_team_ps Team PS
            Reporter:
            rjcoelho Rui Coelho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: