[erlang-questions] size_object: bad tag for 0x600

Tuncer Ayaz <>
Sun Jun 6 23:44:14 CEST 2010


On Sun, Jun 6, 2010 at 11:33 PM, Tuncer Ayaz <> wrote:
> On Sun, Jun 6, 2010 at 11:01 PM, Saurabh Narula wrote:
>> Hello everyone,
>>
>> I am getting this error when i try to pattern match the result of C
>> language NIF function with the erlang term.
>>
>> Even though the Eterm returned from the C Language NIF and erlang
>> Term are same in format, the pattern match operation fails with the
>> error "size_object: bad tag for 0x600".
>
> The term you create seems to be of invalid type (tag) as size_object()
> bails out with that error. This might happen if the term is tagged as
> a binary but contains invalid data not matching the type.

One way to trigger that error is calling enif_make_list_from_array()
with an array where some elements are uninitialized.


More information about the erlang-questions mailing list