beam vm crash

Mikael Pettersson mikpelinux@REDACTED
Wed Apr 1 16:04:08 CEST 2020


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.


More information about the erlang-questions mailing list