I'm currently stumped here, thanks for any hints what to try next:
All of a sudden, all attempst to run the MSC_Tests.ttcn locally, from osmo-ttcn3-hacks/msc, are failing with the same error. This happens regardless of the selection of tests to run, i.e. even if not related to SMPP at all.
Our jenkins doesn't seem to encounter that error.
It seems that titan is sending an invalid SMPP packet, then something happens that SMPP_Emulation does not expect to happen, and the entire run of tests is aborted.
I've already tried to 'make clean' in the osmo-ttcn3-hacks root dir, 'make deps', and re-ran the gen_links and regen_makefile scripts in msc/. I'm still getting the same error:
none -> fail reason: "Unexpected SMPP from peer" [...] terminate called after throwing an instance of 'TC_Error' ./MSC_Tests: Abort was called /usr/lib/titan/libttcn3-parallel-dynamic.so(_Z14signal_handleri+0xa3)[0x7f1e319950a3] /lib/x86_64-linux-gnu/libc.so.6(+0x3bf90)[0x7f1e3085af90] [...] /usr/lib/titan/libttcn3-parallel-dynamic.so(+0x24c077)[0x7f1e3164c077] Error: Receiving of data failed from the MTC at 127.0.0.1 [127.0.0.1]: Connection reset by peer MC@x43: The control connection to MTC is lost. Destroying all PTC connections. MC@x43: MTC terminated. ttcn3_start: error: the MTC terminated unexpectedly exit MC@x43: Shutting down session. MC@x43: Shutdown complete.
Comparing expected results './expected-results.xml' against results in 'junit-xml-1051482.log' -------------------- pass MSC_Tests.TC_cr_before_reset
Summary: pass: 1 skip: 202
So when encountering the SMPP failure, titan exits and stops running the remaining tests.
osmo-msc logs:
20230201010116947 DSMPP DEBUG [] smpp_pdu_rx(00 00 00 2e 00 00 00 09 00 00 00 00 00 00 00 01 6d 73 63 5f 74 65 73 74 65 72 00 6f 73 6d 6f 63 6f 6d 31 00 4d 53 43 5f 54 65 73 74 73 00 ) (smpp_smsc.c:718) 20230201010116947 DSMPP ERROR [] Error ([command_length:0000002E(OK)][command_id:00000009(OK)][command_status:00000000(OK)][sequence_number:00000001(OK)][system_id:msc_tester(OK)][password:osmocom1(OK)][system_type:MSC_Tests(OK)][interface_version:00(Value length exceed buffer length)]) in smpp34_unpack() (smpp_smsc.c:513) 20230201010116948 DSMPP ERROR [] length invalid 872415232 (smpp_smsc.c:805)
Attached is a pcap showing an SMPP from titan that seems to cause the trouble.
Could a debian dist-upgrade have caused this error?
TTCN-3 and ASN.1 Compiler for the TTCN-3 Test Executor Version: 8.2.0 Build date: Sep 10 2022 11:52:51 Compiled with: GCC 12.2.0 Using OpenSSL 3.0.7 1 Nov 2022
FYI, I have this in my apt/sources.list.d: deb https://downloads.osmocom.org/packages/osmocom:/nightly/Debian_Unstable/ ./
~N
FYI, the solution was that debian unstable installed titan 8.2.0, and we already learnt that 8.2.0 is no good, 2 months ago: https://osmocom.org/issues/5788
now built 8.3.0 and msc tests work again. I guess we could upgrade our latest feed titan to 8.3.0.
~N