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

crash #46

Closed
tank-bohr opened this issue Aug 23, 2019 · 1 comment
Closed

crash #46

tank-bohr opened this issue Aug 23, 2019 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tank-bohr
Copy link
Owner

tank-bohr commented Aug 23, 2019

What I've done

bookish_spork:start_server([ssl]),
bookish_spork:stub_request(),
hackney:get("https://localhost:32002", [], <<>>, [{ssl_options, [{verify, verify_none}]}])
bookish_spork:capture_request()

Actual result

2019-08-23T09:06:06.714141+03:00 error: ** State machine <0.954.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,"localhost",32002,#Port<0.100>,#Ref<0.3453212124.1051066371.98471>,#Ref<0.3453212124.1051066371.98479>,ssl_session_cache,{ssl_crl_cache,{{#Ref<0.3453212124.1051066371.98474>,#Ref<0.3453212124.1051066371.98475>},[]}},{#Ref<0.3453212124.1051066371.98472>,#Ref<0.3453212124.1051066371.98473>},#Ref<0.3453212124.1050935299.103344>,undefined},"***",{ssl_options,tls,[{3,3},{3,2},{3,1},{3,0}],verify_none,{#Fun<ssl.8.129595827>,[]},#Fun<ssl.9.129595827>,false,false,undefined,1,<<>>,"***",<<>>,"***","***","***",<<>>,"***",undefined,undefined,"***","***",[<<"À,">>,<<"À0">>,<<"À$">>,<<"À(">>,<<"À\b">>,<<"À.">>,<<"À2">>,<<"À&">>,<<"À*">>,<<0,163>>,<<0,106>>,<<0,157>>,<<0,61>>,<<"À+">>,<<"À/">>,<<"À#">>,<<"À'">>,<<"À-">>,<<"À1">>,<<"À%">>,<<"À)">>,<<0,162>>,<<0,64>>,<<0,156>>,<<0,60>>,<<"À\n">>,<<192,20>>,<<0,56>>,<<192,5>>,<<192,15>>,<<0,53>>,<<"À\t">>,<<192,19>>,<<0,50>>,<<192,4>>,<<192,14>>,<<0,47>>],undefined,true,268435456,true,undefined,infinity,false,undefined,undefined,undefined,undefined,true,"localhost",[],undefined,undefined,true,one_n_minus_one,false,false,{ssl_crl_cache,{internal,[]}},[{sha512,ecdsa},{sha512,rsa},{sha384,ecdsa},{sha384,rsa},{sha256,ecdsa},{sha256,rsa},{sha224,ecdsa},{sha224,rsa},{sha,ecdsa},{sha,rsa},{sha,dsa}],{elliptic_curves,[{1,3,132,0,39},{1,3,132,0,38},{1,3,132,0,35},{1,3,36,3,3,2,8,1,1,13},{1,3,132,0,36},{1,3,132,0,37},{1,3,36,3,3,2,8,1,1,11},{1,3,132,0,34},{1,3,132,0,16},{1,3,132,0,17},{1,3,36,3,3,2,8,1,1,7},{1,3,132,0,10},{1,2,840,10045,3,1,7},{1,3,132,0,3},{1,3,132,0,26},{1,3,132,0,27},{1,3,132,0,32},{1,3,132,0,33},{1,3,132,0,24},{1,3,132,0,25},{1,3,132,0,31},{1,2,840,10045,3,1,1},{1,3,132,0,1},{1,3,132,0,2},{1,3,132,0,15},{1,3,132,0,9},{1,3,132,0,8},{1,3,132,0,30}]},undefined,262144,full,[]},{socket_options,binary,raw,0,0,false},"***","***",false,#{active_n => 100,active_n_toggle => false,sender => <0.953.0>},"***","***","***","***",undefined,undefined}}}]}], ** Reason for termination = error:{bad_action_from_state_function,{reply,undefined,{error,timeout}}}, ** Callback mode = state_functions, ** Stacktrace =, **  [{gen_statem,parse_actions_reply,7,[{file,"gen_statem.erl"},{line,1290}]},{gen_statem,loop_event_actions_list,10,[{file,"gen_statem.erl"},{line,1206}]},{tls_connection,init,1,[{file,"tls_connection.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]
2019-08-23T09:06:06.719806+03:00 notice: TLS server: In state connection received CLIENT ALERT: Fatal - Internal Error
2019-08-23T09:06:06.720099+03:00 error: Error in process <0.814.0> with exit value:, {{case_clause,{error,{tls_alert,{internal_error,"received SERVER ALERT: Fatal - Internal Error"}}}},[{bookish_spork_server,read_from_socket,3,[{file,"/Users/xoma/repos/basin/_checkouts/bookish_spork/src/bookish_spork_server.erl"},{line,167}]},{bookish_spork_server,handle_connection,3,[{file,"/Users/xoma/repos/basin/_checkouts/bookish_spork/src/bookish_spork_server.erl"},{line,137}]},{bookish_spork_server,'-accept/2-AcceptorFun/0-0-',2,[{file,"/Users/xoma/repos/basin/_checkouts/bookish_spork/src/bookish_spork_server.erl"},{line,130}]}]}
2019-08-23T09:06:06.728731+03:00 error: crasher: initial call: tls_connection:init/1, pid: <0.954.0>, registered_name: [], error: {{bad_action_from_state_function,{reply,undefined,{error,timeout}}},[{gen_statem,parse_actions_reply,7,[{file,"gen_statem.erl"},{line,1290}]},{gen_statem,loop_event_actions_list,10,[{file,"gen_statem.erl"},{line,1206}]},{tls_connection,init,1,[{file,"tls_connection.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}, ancestors: [tls_connection_sup,ssl_connection_sup,ssl_sup,<0.80.0>], message_queue_len: 0, messages: [], links: [<0.953.0>,<0.86.0>], dictionary: [{ssl_pem_cache,ssl_pem_cache},{ssl_manager,ssl_manager}], trap_exit: true, status: running, heap_size: 10958, stack_size: 27, reductions: 31716; neighbours: neighbour: pid: <0.953.0>, registered_name: [], initial call: tls_sender:init/1, current_function: {gen_statem,loop_receive,3}, ancestors: [<0.949.0>], message_queue_len: 0, links: [<0.954.0>], trap_exit: false, status: waiting, heap_size: 376, stack_size: 12, reductions: 374, current_stacktrace: [{gen_statem,loop_receive,3,[{file,"gen_statem.erl"},{line,880}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]
2019-08-23T09:06:06.729595+03:00 error: supervisor: {local,tls_connection_sup}, errorContext: child_terminated, reason: {{bad_action_from_state_function,{reply,undefined,{error,timeout}}},[{gen_statem,parse_actions_reply,7,[{file,"gen_statem.erl"},{line,1290}]},{gen_statem,loop_event_actions_list,10,[{file,"gen_statem.erl"},{line,1206}]},{tls_connection,init,1,[{file,"tls_connection.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}, offender: [{pid,<0.954.0>},{id,undefined},{mfargs,{tls_connection,start_link,undefined}},{restart_type,temporary},{shutdown,4000},{child_type,worker}]

Expected result

  • No error

Environment

bookish_spork 7a384d8 #45

@tank-bohr tank-bohr added the bug Something isn't working label Aug 23, 2019
@tank-bohr tank-bohr added this to the 0.4 milestone Aug 23, 2019
@tank-bohr tank-bohr self-assigned this Aug 23, 2019
@tank-bohr
Copy link
Owner Author

Cannot reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant