Skip to content

NeighborListNeighborCache::removeRadioFromNeighborLists function does nothing #974

@zqu14

Description

@zqu14

Issue Description:

In the NeighborListNeighborCache::removeRadioFromNeighborLists(const IRadio *radio) function:
line 133 neighborVector.erase(it); just deletes the radio from the temporary vector declared in
line 130 Radios neighborVector = elem->neighborVector;

It seems the vector elem->neighborVector does not have any actual change after running the function. Potentially leading to the Simulation terminated with exit code: 139 error after dynamically module deletion during the simulation.

Adding elem->neighborVector = neighborVector; after line 133 will fix this issue in my own testing (in version inet-4.2.5-e0c1741924).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions