-
Notifications
You must be signed in to change notification settings - Fork 104
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
send_packet_out () can cause a segmentation fault if used in a transparent service if the parent does not exist
To Reproduce
Use the tutorial 1 configuration (https://polycube.readthedocs.io/en/latest/tutorials/tutorial1/tutorial1.html)
- create a new transparent service that uses send_packet_out
- attach it to veth1
- execute a ping
- segmentation fault
Expected behavior
the service should indicate that the parent does not exist
Please tell us about your environment:
- OS details: Ubuntu 18.04
- Kernel details: 5.15.0-55-generic
- Polycube Version: 0.1.0-beta+
- Polycube Log: "Segmentation Fault"
Additional context
you need to check if the father exists.
Like
polycube/src/polycubed/src/port.cpp
Line 205 in b80ce02
| logger->warn("packetout: port {0}:{1} is down", parent_.get_name(), name_); |
The error is here:
| Port *parent = dynamic_cast<Port *>(parent_); |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working