Example https_store with erlang 21.2.4 failed cause tuple_call
obi458 opened this issue · 1 comments
Does -compile(tuple_calls) not work?
As the header said, the error is
=CRASH REPORT==== 7-Mar-2019::21:08:40.099133 ===
crasher:
initial call: mochiweb_acceptor:init/4
pid: <0.242.0>
registered_name: []
exception error: bad argument
in function apply/3
called as apply({mochiweb_request,
[#Port<0.9>,
[{recbuf,8192}],
'GET',"/",
{1,1},
{8,
{"host",
{'Host',"127.0.0.1:8442"},
{"connection",
{'Connection',"keep-alive"},
{"cache-control",
{'Cache-Control',"max-age=0"},
{"accept",
{'Accept',
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8"},
nil,
{"accept-encoding",
{'Accept-Encoding',"gzip, deflate, br"},
nil,
{"accept-language",
{'Accept-Language',
"en-US,en;q=0.9,de;q=0.8"},
nil,nil}}},
nil},
nil},
{"upgrade-insecure-requests",
{"Upgrade-Insecure-Requests","1"},
nil,
{"user-agent",
{'User-Agent',
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"},
nil,nil}}}}]},
get,
[method])
in call from https_store:dispatch/1 (https_store.erl, line 83)
in call from mochiweb_http:headers/6 (mochiweb_http.erl, line 128)
ancestors: [http_8442,<0.116.0>]
message_queue_len: 0
messages: []
links: [<0.122.0>,#Port<0.9>]
dictionary: []
trap_exit: false
status: running
heap_size: 6772
stack_size: 27
reductions: 3232
neighbours:
The error raise only if i use debugger, seems debugger does not work with tuple_calls!
Runtime it works!