Bug #1427
closed
NFD crash when requested to create unicast UDP face with non-unicast IP address
Added by Junxiao Shi over 10 years ago.
Updated over 10 years ago.
Description
Steps to reproduce:
sudo vi /etc/hosts
, append a line:
255.255.255.255 invalid-ip.bug1427.redmine.named-data.net
start NFD
execute any of the following
nfdc create udp6://[fe80::]
nfdc create udp4://255.255.255.255
nfdc create udp://invalid-ip.bug1427.redmine.named-data.net
Expected: face creation fails, but NFD does not crash
Actual: FATAL: [Main] Failed to properly configure the socket. Check the address (connect: Invalid argument)
- Related to Bug #1421: Failed to create tcp6 and udp6 faces added
- Assignee changed from Giulio Grassi to Anonymous
This is not face problem, this is problem of not handling exceptions in the manager. Whenever command is received and some action is performed, it should be enclosed in try/catch.
I'm reassigning this to Steve.
- Status changed from New to In Progress
- Status changed from In Progress to Code review
Please re-test using http://gerrit.named-data.net/#/c/617/ .
Note:
nfdc create udp4://255.255.255.255
successfully created a face for me prior to any changes. I've added a "best effort" check to block 255.255.255.255 and any of the known interfaces' broadcast addresses.
- Description updated (diff)
- % Done changed from 0 to 100
This bug is fixed in Ia3f0a9337f3d97c34388773eab05bc39ad6dd804 patchset 1, and can close when it's merged.
- Status changed from Code review to Closed
Also available in: Atom
PDF