beam vm crash

Alexander Petrovsky askjuise@REDACTED
Wed Apr 1 20:27:31 CEST 2020


Yeah, seems like you are right, thanks

ср, 1 апр. 2020 г. в 17:04, Mikael Pettersson <mikpelinux@REDACTED>:

> On Wed, Apr 1, 2020 at 2:02 PM Alexander Petrovsky <askjuise@REDACTED>
> wrote:
> >
> > Hello!
> >
> > On my erlang (22.2) i've catch the strange behavior:
> >
> > $ erl
> > Erlang/OTP 22 [erts-10.6] [source] [64-bit] [smp:8:8] [ds:8:8:10]
> [async-threads:1] [hipe]
> >
> > Eshell V10.6  (abort with ^G)
> > 1> cnt = ets:new(cnt, [named_table, public, ordered_set, {keypos,1},
> {write_concurrency,true}]).
> > cnt
> > 2> ets:update_counter(cnt, sent, {1, 3}, {sent, 0}).
> > beam/erl_term.h:1429:tag_val_def() Assertion failed: tag_val_def error
>
> With OTP-22.3 I get:
>
> 1> cnt = ets:new(cnt, [named_table, public, ordered_set, {keypos,1},
> {write_concurrency,true}]).
> cnt
> 2> ets:update_counter(cnt, sent, {1, 3}, {sent, 0}).
> ** exception error: bad argument
>      in function  ets:update_counter/4
>         called as ets:update_counter(cnt,sent,{1,3},{sent,0})
> 3>
>
> I think your example runs into
> https://bugs.erlang.org/browse/ERL-1125, which is fixed in newer
> versions.
>
-- 
Alexander Petrovsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200401/3dda122c/attachment.htm>


More information about the erlang-questions mailing list