|
|
|
|
|
|
Re: Compiler crashing while compilation [message #1730042 is a reply to message #1730032] |
Thu, 21 April 2016 07:07 |
|
Hi Murli,
-g is not exactly a debug option of the compiler , and it does not have much to do with gdb;
I understand the error appears during compilation, so you don't want to debug the created executable (which does not yet exist), but the compiler itself;
Certainly no debug option of the compiler will be of any help as that will refer to the created executable.
So if you want to pursue this line, you might want to build the compiler in debug mode with gdb from source. For that you will have to download the source from github and
modify the referring Makefile accordingly. There's a good chance indeed gdb will show you the problematic area.
Best regards
Elemer
|
|
|
|
|
|
|
Re: Compiler crashing while compilation [message #1730085 is a reply to message #1730068] |
Thu, 21 April 2016 10:31 |
|
Hi Murli,
OK , in general "-" is not supported as replacement of omit.
In the short term, we will generate an error message at compilation; a new release is expected mid-May so that will already contain the fix.
Thank you for your efforts
Best regards
Elemer
|
|
|
|
Re: Compiler crashing while compilation [message #1730185 is a reply to message #1730165] |
Fri, 22 April 2016 07:08 |
|
Hi Murli,
no,
using "-" (don't change) is semantically equivalent with implicitly unspecifying a field:
var MyRecordType MyVariable:= //assignment notation
{
field1 := '11001'B,
// field2 implicitly unspecified
field3 := "A string"
}
// Or
var MyRecordType MyVariable:= //assignment notation
{
field1 := '11001'B,
field2 := -, // field2 explicitly unspecified
field3 := "A string"
}
see the below example:
Types.asn
Types DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
HCS-ServingCellInformation ::= SEQUENCE {
hcs-PRIO INTEGER DEFAULT 0,
q-HCS INTEGER DEFAULT 0,
t-CR-Max INTEGER OPTIONAL
}
END
ASNExample.ttcn
module ASNExample {
/* import types from ASN.1 */
import from Types language "ASN.1:1997" all;
template HCS_ServingCellInformation hcs_ServingCellInformation := {
hcs_PRIO := 2,
q_HCS := 35//,
// t_CR_Max := - // Problem
}
template HCS_ServingCellInformation hcs_ServingCellInformation2 := {
hcs_PRIO := 2,
q_HCS := 35,
t_CR_Max := 1
}
control {
var HCS_ServingCellInformation v_ServingCellInformation1 := {
hcs_PRIO := 2,
q_HCS := 35,
t_CR_Max := 1
}
v_ServingCellInformation1 := {
hcs_PRIO := 2,
q_HCS := 35//,
//t_CR_Max := -
}
template HCS_ServingCellInformation hcs_ServingCellInformation3 modifies hcs_ServingCellInformation2:= {
hcs_PRIO := 2,
q_HCS := 35//,
// t_CR_Max := - // Problem
}
log(hcs_ServingCellInformation)
log(v_ServingCellInformation1)
log(hcs_ServingCellInformation2)
log(hcs_ServingCellInformation3)
}
}
with the result:
08:50:38.060412 TTCN-3 Main Test Component started on esekilxxen1843. Version: CRL 113 200/5 R4D.
08:50:38.060550 TTCN Logger v2.2 options: TimeStampFormat:=Time; LogEntityName:=No; LogEventTypes:=No; SourceInfoFormat:=None; *.FileMask:=LOG_ALL; *.ConsoleMask:=ACTION | ERROR | TESTCASE | STATISTICS | WARNING; LogFileSize:=0; LogFileNumber:=1; DiskFullAction:=Error
08:50:38.060673 Connected to MC.
08:50:38.068448 Executing control part of module ASNExample.
08:50:38.068512 Execution of control part in module ASNExample started.
08:50:38.068592 { hcs_PRIO := 2, q_HCS := 35, t_CR_Max := <uninitialized template> }
08:50:38.069707 { hcs_PRIO := 2, q_HCS := 35, t_CR_Max := 1 }
08:50:38.069732 { hcs_PRIO := 2, q_HCS := 35, t_CR_Max := 1 }
08:50:38.069749 { hcs_PRIO := 2, q_HCS := 35, t_CR_Max := 1 }
08:50:38.069768 Execution of control part in module ASNExample finished.
08:50:38.076377 Verdict statistics: 0 none, 0 pass, 0 inconc, 0 fail, 0 error.
08:50:38.076435 Test execution summary: 0 test case was executed. Overall verdict: none
08:50:38.076456 Exit was requested from MC. Terminating MTC.
So for the moment I'd recommend you remove the fields using "-".
I expect we should have a solution soon though, probably next week.
Best regards
Elemer
|
|
|
|
Re: Compiler crashing while compilation [message #1730360 is a reply to message #1730192] |
Mon, 25 April 2016 09:44 |
|
Hi Murli,
did you have time maybe to look into the endorsement we have talked about? It comes with absolutely no commitment from your side;
on the other hand we are now requested to collect case studies relevant to open sourcing Titan, and I believe your area is quite relevant.
Thank you and best regards
Elemer
|
|
|
Powered by
FUDForum. Page generated in 0.08684 seconds