gen_statem badrecord,trans_opts

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gen_statem badrecord,trans_opts

getonga
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.

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: gen_statem badrecord,trans_opts

Raimo Niskanen-2
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?


--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: gen_statem badrecord,trans_opts

Raimo Niskanen-2
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
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions