Open OTP-Maintainer opened 6 years ago
kenneth
said:
Which file are you compiling and with what options when the error above occurs?
Among the .asn1 modules you have sent there is imports from other ASN1 modules that you have not provided, like
for example CAP-classes imported from CAP-datatypes. So there is no chance that CAP-databases will be successfully compiled anyhow.
roadrunnr71
said:
I've attached a minimum project with all the ASN.1 files. There are multiple `Internal error: error:badarg` failures when trying to compile this.
roadrunnr71
said:
I managed to extract two minimal test cases. There might be more....
roadrunnr71
said:
I have found a fix for one of the problems (https://github.com/RoadRunnr/otp/commit/045418c604a8afcea3d718fbe9292e8eed7cbc19).
A small test ASN.1 is included, but I don't know (and don't have the time to investigate) how to hook it into the test suite.
kenneth
said:
Just for my understanding. Your fix is fixing compilation of Test2.asn1 or ChoiceDefault.asn1?
What .asn1 file is now causing the remaining fault?
What parameters are you using towards the asn1 compiler?
roadrunnr71
said:
It is fixing the ChoiceDefault.asn1. Test2.asn1 still breaks.
No extra arguments, i'm just doing a ```asn1ct:compile("Test2.asn1").```
The remaining asn1 files still don't work. I'll try to extract a few more failing cases into simplified constructs.
roadrunnr71
said:
I've extracted a minimal test case for another failure from the full set of ASN.1 files.
This time asn1ct_constructed_per failes with ```Internal error: error:badarg```
https://github.com/RoadRunnr/otp/commit/420d9fe71bad58978a560480b36774644d2b775b
Original reporter:
roadrunnr71
Affected versions:OTP-20.2.1
,OTP-20.3
Component:asn1
Migrated from: https://bugs.erlang.org/browse/ERL-594