Skip to content

Crash of test `lr-wpan-ack` in ns-3 3.33 ?

Hello,

packaging ns-3 for NixOS we observe that a test crashes. Here is some related output we can obtain using ./test.py -v --nowaf:

[…]
[72/252] PASS: TestSuite tv-helper-distribution
Return code =  0
stderr =
returncode = 0
---------- begin standard out ----------

---------- begin standard err ----------

---------- end standard err ----------
Launch utils/ns3.33-test-runner-debug --test-name=lr-wpan-ack --stop-on-failure --fullness=QUICK
Synchronously execute /build/source/build/utils/ns3.33-test-runner-debug --test-name=lr-wpan-ack --stop-on-failure --fullness=QUICK --xml --tempdir=testpy-output/2021-01-16-17-34-56-CUT --out=testpy-output/2021-01-16-17-34-56-CUT/lr-wpan-ack.xml
[73/252] PASS: TestSuite steady-state-rwp-mobility-model
Return code =  -6
stderr =  assert failed. cond="!m_metadataSkipped", msg="Error: attempting to enable the packet metadata subsystem too late in the simulation, which is not allowed.
A common cause for this problem is to enable ASCII tracing after sending any packets.  One way to fix this problem is to call ns3::PacketMetadata::Enable () near the beginning of the program, before any packets are sent.", +0.000000000s -1 file=../src/network/model/pac
ket-metadata.cc, line=55
terminate called without an active exception

returncode = -6
---------- begin standard out ----------

---------- begin standard err ----------
assert failed. cond="!m_metadataSkipped", msg="Error: attempting to enable the packet metadata subsystem too late in the simulation, which is not allowed.
A common cause for this problem is to enable ASCII tracing after sending any packets.  One way to fix this problem is to call ns3::PacketMetadata::Enable () near the beginning of the program, before any packets are sent.", +0.000000000s -1 file=../src/network/model/pac
ket-metadata.cc, line=55
terminate called without an active exception

---------- end standard err ----------
Launch utils/ns3.33-test-runner-debug --test-name=lr-wpan-clear-channel-assessment --stop-on-failure --fullness=QUICK
Synchronously execute /build/source/build/utils/ns3.33-test-runner-debug --test-name=lr-wpan-clear-channel-assessment --stop-on-failure --fullness=QUICK --xml --tempdir=testpy-output/2021-01-16-17-34-56-CUT --out=testpy-output/2021-01-16-17-34-56-CUT/lr-wpan-clear-chan
nel-assessment.xml
[74/252] CRASH: TestSuite lr-wpan-ack
[…]

Is this issue specific to NixOS ? Is this a bug ?

Thanks for the release, Rémy

Edited by Rémy Grünblatt