[erlang-bugs] ASN.1 PER compile

Vicent Ferrer Guasch vicent.ferrerguasch@REDACTED
Sun Oct 26 19:05:28 CET 2014


Hello,

I am trying to compile the last S1AP (3GPP 36.413) ASN specifications
using asn1ct:compile/2 , but the generated source file is incorrect. I
think compile/2 has a problem with the table constraints using per
encoding i.e.

InitiatingMessage ::= SEQUENCE {

                 procedureCode
S1AP-ELEMENTARY-PROCEDURE.&procedureCode
({S1AP-ELEMENTARY-PROCEDURES}),

                 criticality
S1AP-ELEMENTARY-PROCEDURE.&criticality

({S1AP-ELEMENTARY-PROCEDURES}{@procedureCode}),

                 value
S1AP-ELEMENTARY-PROCEDURE.&InitiatingMessage
({S1AP-ELEMENTARY-PROCEDURES}{@procedureCode})

}

The generated code contains @, an example.

<<V1@REDACTED:2/unsigned-unit:1,V1@REDACTED/bitstring>> = Bytes1,

{V1@REDACTED,V1@REDACTED}

I have tried also uper enconding with the same results, although ber
encoding generates correct erlang code. I was using this compiler with
the same specifications last year, and I it was working properly.

I tried this on Debian testing with
http://packages.erlang-solutions.com/debian repo:

Erlang    17.3
asn1       3.0.2

I have also tried it on a Ubuntu 14.04:

Erlang    16.03
asn1       2.0.4

Let me know if you need further details

Best Regards,

Vicent




More information about the erlang-bugs mailing list