Bug 2008

Summary: crash if ending rx while status change is in progress
Product: ns-3 Reporter: Luca Dariz <luca.dariz>
Component: lr-wpanAssignee: Tom Henderson <tomh>
Status: RESOLVED FIXED    
Severity: major CC: luca.dariz, ns-bugs, tommaso.pecorella
Priority: P5    
Version: ns-3-dev   
Hardware: PC   
OS: Linux   
Attachments: simple test case
possible bugfix

Description Luca Dariz 2014-10-15 16:33:31 UTC
Created attachment 1903 [details]
simple test case

When receiving more than one packet (collision), if at the moment of receiving the second packet a state change is in progress the simulator will crash, as the currentRxParams have been cleared and the state is still BUSY_RX.
I attach a test case able to reproduce the bug, I am not sure how this case should be handled.
Comment 1 Tommaso Pecorella 2014-10-15 18:39:24 UTC
Created attachment 1905 [details]
possible bugfix

The patch is untested. No, it's tested. MAYBE it's tested.
The tests are passing, almost. I had to "fix" one of them (the collision one) because in one specific sub-clause one packet is now received, and before none was received.
Comment 2 Luca Dariz 2014-10-16 06:14:04 UTC
Hi Tommaso, 
thank you, this patch works also for my simulation.
Comment 3 Tommaso Pecorella 2015-05-02 16:24:09 UTC
changeset 11346	a8900f6fe42d