[erlang-questions] gen_statem badrecord,trans_opts
Raimo Niskanen
raimo+erlang-questions@REDACTED
Wed May 9 12:25:45 CEST 2018
On Wed, May 09, 2018 at 12:14:59PM +0200, Raimo Niskanen wrote:
> On Wed, May 09, 2018 at 05:40:51PM +0800, getonga wrote:
> > my own gen_statem module crash with this error msg:```
> > Context: child_terminated
> > Reason: {{badrecord,trans_opts},[{gen_statem,loop_event_actions_list,10,[{file,"gen_statem.erl"},{line,1210}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
> >
> > ```
> > I recheck my code many times, and not found any error in my return state. And the module runs for a long time, a week or some more, and this error happens for only two times.
>
> Which Erlang/OTP version or which stdlib version?
From the line number it appears to be Erlang/OTP-20.3.2 or later but before
21.0-rc1.
It looks like a bug I fixed in commit 3ed7d729cab697b9f668dadb563d629de10f593d
merged into master and included in 21.0-rc1.
Can you try that version?
--
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list