Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » ASN.1 Information Objects parsing error(TTCN-3 ASN.1 compiler)
ASN.1 Information Objects parsing error [message #1857471] Thu, 09 February 2023 09:47 Go to next message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Dear All,

We got some issues with the ASN.1 compiler: it doesn't support the complex information objects like:
(see bug issue opened by my colleague Denis Filatov: https://gitlab.eclipse.org/eclipse/titan/titan.core/-/issues/688

Pdu ::= SEQUENCE {
  id      EXT-TYPE.&extId({Variants}),
  content SEQUENCE OF EXT-TYPE.&ExtContent({Variants}{@.id})
}



The step to reproduce the issues are:

ttcn3_compiler -A test.asn


The file test.asn is:

ModuleTestEmpty DEFINITIONS AUTOMATIC TAGS ::= BEGIN
IMPORTS ;
Pdu ::= SEQUENCE {
  id      EXT-TYPE.&extId({Variants}),
  content SEQUENCE OF EXT-TYPE.&ExtContent({Variants}{@.id})
}

EXT-TYPE ::= CLASS {
  &extId      VarId,
  &ExtContent
} WITH SYNTAX {&ExtContent IDENTIFIED BY &extId}

Variants EXT-TYPE ::= {
  {NULL IDENTIFIED BY v1},
  ...
}

VarId ::= INTEGER(0..255)

END


The issue is:
ttcn3_compiler.exe -A test.asn
Notify: Parsing ASN.1 module `test.asn'...
Notify: Checking modules...
test.asn: In ASN.1 module `ModuleTestEmpty':
test.asn:5: In type assignment `Pdu':
test.asn:7: In constraint #1 of type `open type':
test.asn:7: error: Type `@ModuleTestEmpty.Pdu.content' is not a SEQUENCE, SET of CHOICE type.
Notify: Error found in the input module. Code will not be generated.


The Titan version is:
TTCN-3 and ASN.1 Compiler for the TTCN-3 Test Executor
Version: 8.3.0
Build date: Jan 26 2023 09:02:42
Compiled with: GCC 11.3.0
Using OpenSSL 1.1.1s 1 Nov 2022
Commit id: a4679583a

Platform details: OS type and version Windows 10+Cygwin

Many thanks in advance for your support.

Yann Garcia
Senior Software Engineer
Microsoft MCAD.net Certified
**************************************
FSCOM SARL
Le Montespan B2
6, Avenue des Alpes
F-06600 Antibes, FRANCE
************************************************
Tel: +33 (0)4 92 94 49 08 (GMT+1)
Mobile: +33 (0)6 68 94 57 76 (GMT+1)
Email: yann.garcia@fscom.fr
Skype: yann.garcia
SlackID: U0263576GG3, U02T8HUD2KX
Re: ASN.1 Information Objects parsing error [message #1857575 is a reply to message #1857471] Wed, 15 February 2023 17:06 Go to previous messageGo to next message
Adam Knapp is currently offline Adam KnappFriend
Messages: 54
Registered: November 2020
Member
Hi Yann,

The bug have been fixed. See the details in the related ticket: https://gitlab.eclipse.org/eclipse/titan/titan.core/-/issues/688#note_1082767
Re: ASN.1 Information Objects parsing error [message #1857625 is a reply to message #1857575] Fri, 17 February 2023 07:50 Go to previous messageGo to next message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Good morning Adam,

Many thanks for your support.

Yann Garcia
Senior Software Engineer
Microsoft MCAD.net Certified
**************************************
FSCOM SARL
Le Montespan B2
6, Avenue des Alpes
F-06600 Antibes, FRANCE
************************************************
Tel: +33 (0)4 92 94 49 08 (GMT+1)
Mobile: +33 (0)6 68 94 57 76 (GMT+1)
Email: yann.garcia@fscom.fr
Skype: yann.garcia
SlackID: U0263576GG3, U02T8HUD2KX
Re: ASN.1 Information Objects parsing error [message #1857654 is a reply to message #1857625] Sun, 19 February 2023 06:59 Go to previous message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Good morning Adam,

Many thanks for your support.

Yann Garcia
Senior Software Engineer
Microsoft MCAD.net Certified
**************************************
FSCOM SARL
Le Montespan B2
6, Avenue des Alpes
F-06600 Antibes, FRANCE
************************************************
Tel: +33 (0)4 92 94 49 08 (GMT+1)
Mobile: +33 (0)6 68 94 57 76 (GMT+1)
Email: yann.garcia@fscom.fr
Skype: yann.garcia
SlackID: U0263576GG3, U02T8HUD2KX
Previous Topic:Assignment of ASN.1 based template
Next Topic:WITH SUCCESSOR not supported
Goto Forum:
  


Current Time: Thu Oct 10 05:07:16 GMT 2024

Powered by FUDForum. Page generated in 0.26464 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top