vlm / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
1.03k stars 551 forks source link

Unable to compile a SEQUENCE consisting of CLASS members #375

Open sandman opened 4 years ago

sandman commented 4 years ago

Hi,

I am using the latest asn1c compiler (0.9.29) and am unable to compile a SEQUENCE consisting of CLASS members.

A minimum schema to reproduce the issue is attached. ItsRpArea.asn.txt

Below is the compiler output of asn1c -gen-autotools -fcompound-names -Wdebug-compiler -pdu=all ItsRpArea.asn

DEBUG: Compiling Int1 at line 8
DEBUG: expr constraint checking code for Int1
DEBUG: emit tag vectors for Int1 0, 1, 1
DEBUG: Compiling CddLatitude at line 13
DEBUG: Compiling fillBit at line 13
DEBUG: Compiling lat at line 14
DEBUG: member constraint checking code for fillBit
DEBUG: member constraint checking code for lat
DEBUG: Compiling CddLongitude at line 19
DEBUG: expr constraint checking code for CddLongitude
DEBUG: emit tag vectors for CddLongitude 0, 1, 1
DEBUG: Compiling ITS-RParea at line 28
asn1c: asn1_buffer.c:132: abuf_vprintf: Assertion ret >= 0 failed.

Any pointers what is the issue here?

sandman commented 4 years ago

As a broader context, this is an extract from the ISO 17419:2018 standard for ITS Globally Unique Identifiers. The ASN.1 schema is publicly available at https://standards.iso.org/iso/17419/ed-1/en/

DemiMarie commented 3 years ago

This means the compiler ran out of memory.