Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » DTE: Uninitialized field error. Even though the field is initialized.
DTE: Uninitialized field error. Even though the field is initialized. [message #1723728] Wed, 17 February 2016 11:44 Go to next message
murli sharma is currently offline murli sharmaFriend
Messages: 85
Registered: November 2015
Member
Hi,

While running our script, we came across one strange error in template SysInfoTypeSB1 c_SB1_Def .



RLC_r3_wk37.ttcn :: Template for assigned value

template SysInfoTypeSB1 c_SB1_Def :=
{
sib_ReferenceList := {
{
sib_Type := {sysInfoType6 := 1},
scheduling := {
scheduling := {
segCount := 4, //even though value is assigned to segCount , while running the script we are getting DTE. It is detecting segCount to be uninitialized value
sib_Pos := {rep64 := 3},
sib_PosOffsetInfo := {
so4,
so2,
so2
}
}

}

}


Error Log Prints:

MTC@linaro: encode_SS__PORT__CMD__REQ(): Stream after encoding: 'A05BD400389C5C0A020340F000'O
MTC@linaro: { sib_ReferenceList := { { sib_Type := { sysInfoType6 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 3 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType7 := NULL }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep16 := 2 }, sib_PosOffsetInfo := omit } } }, { sib_Type := { sysInfoType11 := 2 }, scheduling := { scheduling := { segCount := 2, sib_Pos := { rep64 := 29 }, sib_PosOffsetInfo := { so2 (0) } } } }, { sib_Type := { sysInfoType12 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 13 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType18 := 2 }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep64 := 18 }, sib_PosOffsetInfo := omit } } } }, v6b0NonCriticalExtensions := omit }
MTC@linaro: RLC_r3_wk37.ttcn:32425: Dynamic test case error: Performing a valueof or send operation on a non-specific integer template.

I'm attaching the code.

Thanks

[Updated on: Thu, 18 February 2016 04:27]

Report message to a moderator

Re: DTE: Uninitialized field error. Even though the field is initialized. [message #1723739 is a reply to message #1723728] Wed, 17 February 2016 14:08 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Murli,

we cannot compile as rrc_asn1_types.h, rrc_asn1_types.c are missing.
These are likely generated by OSS's ASN.1 compiler,

I guess the ASN.1 files are already included in the package so if you don't want to send the files directly , please send me the instructions how to compile and I can compile it with our OSS .


BR Elemer



Re: DTE: Uninitialized field error. Even though the field is initialized. [message #1724198 is a reply to message #1723739] Mon, 22 February 2016 09:45 Go to previous messageGo to next message
murli sharma is currently offline murli sharmaFriend
Messages: 85
Registered: November 2015
Member
Dear Elemer,



We can not share SUT or other dependency files.

So we have modified the script, so that just using the sample script you can reproduce the issue in your setup.

Kindly find the sample script in attachment.



New observation;

When we call the template directly from the DTE location, we see all values are initialized properly.

But when the Template is stored in a global and that global is passed as an argument to a function, <Uninitialized Template> issue is seen.



File name: RLC_r3_wk37.ttcn, Line No: 32449, In function ts_SendSB1_DefSchedul(),

  log("*****Actual Template being called: ");
  log(c_SB1_Def);                                                       //No error when Template is called directly
  log("*****Referance of the Template passed in the function: p_SB");
  log(p_SB);                                                                 //DTE here




Run.log:

MTC@linaro: *****Actual Template being called: 
MTC@linaro: { sib_ReferenceList := { { sib_Type := { sysInfoType6 := 1 }, scheduling := { scheduling := { segCount := 4, sib_Pos := { rep64 := 3 }, sib_PosOffsetInfo := { so4 (1), so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType7 := NULL }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep16 := 2 }, sib_PosOffsetInfo := omit } } }, { sib_Type := { sysInfoType11 := 1 }, scheduling := { scheduling := { segCount := 3, sib_Pos := { rep64 := 29 }, sib_PosOffsetInfo := { so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType12 := 1 }, scheduling := { scheduling := { segCount := 3, sib_Pos := { rep64 := 13 }, sib_PosOffsetInfo := { so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType18 := 1 }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep64 := 18 }, sib_PosOffsetInfo := omit } } } }, v6b0NonCriticalExtensions := omit }
MTC@linaro: *****Referance of the Template passed in the function: p_SB
MTC@linaro: { sib_ReferenceList := { { sib_Type := { sysInfoType6 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 3 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType7 := NULL }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep16 := 2 }, sib_PosOffsetInfo := omit } } }, { sib_Type := { sysInfoType11 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 29 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType12 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 13 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType18 := 2 }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep64 := 18 }, sib_PosOffsetInfo := omit } } } }, v6b0NonCriticalExtensions := omit }
MTC@linaro: RLC_r3_wk37.ttcn:32453: Dynamic test case error: Performing a valueof or send operation on a non-specific integer template.



Thanks a lot for your support,
Murli
Re: DTE: Uninitialized field error. Even though the field is initialized. [message #1724339 is a reply to message #1724198] Tue, 23 February 2016 09:19 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Murli,


here's the code sequence in question:
            function ts_SendSB1_DefSchedul(template SysInfoTypeSB1 p_SB, template integer p_CellId, template integer p_Timing, inout template GlobalVariableCollection GVC_) runs on BASE_COMP
            {
                /* 1. */
		log("*****Actual Template being called: ");
		log(c_SB1_Def);
		log("*****Referance of the Template passed in the function: p_SB");
		log(p_SB);		
                GVC_.tcv_Segs := o_SIB_Segmentation(valueof(o_SIB_PER_Encoding(valueof(SIB:{sB1 := p_SB}))));

:
:

and the corresponding log:
MTC@linaro: *****Actual Template being called: 
MTC@linaro: { sib_ReferenceList := { { sib_Type := { sysInfoType6 := 1 }, scheduling := { scheduling := { segCount := 4, sib_Pos := { rep64 := 3 }, sib_PosOffsetInfo := { so4 (1), so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType7 := NULL }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep16 := 2 }, sib_PosOffsetInfo := omit } } }, { sib_Type := { sysInfoType11 := 1 }, scheduling := { scheduling := { segCount := 3, sib_Pos := { rep64 := 29 }, sib_PosOffsetInfo := { so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType12 := 1 }, scheduling := { scheduling := { segCount := 3, sib_Pos := { rep64 := 13 }, sib_PosOffsetInfo := { so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType18 := 1 }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep64 := 18 }, sib_PosOffsetInfo := omit } } } }, v6b0NonCriticalExtensions := omit }
MTC@linaro: *****Referance of the Template passed in the function: p_SB
MTC@linaro: { sib_ReferenceList := { { sib_Type := { sysInfoType6 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 3 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType7 := NULL }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep16 := 2 }, sib_PosOffsetInfo := omit } } }, { sib_Type := { sysInfoType11 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 29 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType12 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 13 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType18 := 2 }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep64 := 18 }, sib_PosOffsetInfo := omit } } } }, v6b0NonCriticalExtensions := omit }
MTC@linaro: RLC_r3_wk37.ttcn:32453: Dynamic test case error: Performing a valueof or send operation on a non-specific integer template.



from which it can be seen that p_SB contains uninitialized fields.

The reason for this is that the value of segCount is changed in function ts_SendSIB6 (which is called before ts_SendSB1_DefSchedul).

:
 ts_SendSIB6(cb_SIB6_Def(GVC_.tcv_TmpCellInfo), p_CellId, tsc_Now, GVC_);
log("**********38");					
                    ts_SendSIB7(c_SIB7_Def, p_CellId, tsc_Now, GVC_);
					log("**********39");
                    ts_SendSIB11(GVC_.tcv_SIB11, p_CellId, tsc_Now, GVC_);
					log("**********40");
                    ts_SendSIB12(GVC_.tcv_SIB12, p_CellId, tsc_Now, GVC_);
					log("**********41");
                    ts_SendSIB18(GVC_.tcv_SIB18, p_CellId, tsc_Now, GVC_);
		 log("**********42")
                    ts_SendSB1_DefSchedul(GVC_.tcv_SB1, p_CellId, tsc_Now, GVC_);
:

Specifically by:

GVC_.tcv_SB1.sib_ReferenceList[0].scheduling := c_SIB6_Schedul1;


And c_SIB_Schedul1 only has one field set, everything else is left uninitialized.


I hope this helps

Best regards
Elemer












Re: DTE: Uninitialized field error. Even though the field is initialized. [message #1724469 is a reply to message #1724339] Wed, 24 February 2016 06:12 Go to previous messageGo to next message
murli sharma is currently offline murli sharmaFriend
Messages: 85
Registered: November 2015
Member
Hi Elemer,

Thanks for pointing out the error.
Can you please tell me how did you find this error in the script so that I can myself debug such issues in future?
I mean you found it by going through the script or some other way?

Thanks
Re: DTE: Uninitialized field error. Even though the field is initialized. [message #1724495 is a reply to message #1724469] Wed, 24 February 2016 09:03 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Murli,

there's no secret here,
I just added log() statements, same as you did. You just made the wrong assumption that p_SB is set to c_SB1_Def:

log("*****Actual Template being called: ");
log(c_SB1_Def);

instead the function is called with GVC_.tcv_SB1.

It takes a bit of getting used to , but the logfiles tell the whole story .

Best regards

Elemer

Re: DTE: Uninitialized field error. Even though the field is initialized. [message #1724520 is a reply to message #1724495] Wed, 24 February 2016 10:20 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Murli,

one question:

you (and I'd guess, your team) are obviously power users of Titan, working on large and complex projects.

Would you consider endorsing Titan , in a statement like "This an this company uses Eclipse Titan for that and that" ?

If you do ,maybe you could post about it in this forum, possibly in the group LinkedIn 'TTCN-3 Professionals', maybe other fora.

Titan could use all the positive PR ; this may attract new users and eventually could be beneficial to us all.


Thank you and best regards
Elemer
Re: DTE: Uninitialized field error. Even though the field is initialized. [message #1724656 is a reply to message #1724520] Thu, 25 February 2016 10:25 Go to previous message
murli sharma is currently offline murli sharmaFriend
Messages: 85
Registered: November 2015
Member
Hi Elemer,

We'd be happy to endorse Titan.
But we'll have to discuss with our HR partner.
I'll update on this soon.

Thanks
Previous Topic:size restriction with regards to handling of ASN.1 BER encoded packets
Next Topic:Testing SIPmsg demo defined in titan.TestPorts.SIPmsg
Goto Forum:
  


Current Time: Sat Apr 27 04:15:25 GMT 2024

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

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

Back to the top