-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in AddressToJS for udp6 socket bound to link-local address #41500
Labels
dgram
Issues and PRs related to the dgram subsystem / UDP.
Comments
santigimeno
added a commit
to santigimeno/node
that referenced
this issue
Jan 15, 2022
An interface with index 0 doesn't make sense and makes `if_indextoname()` to return `ENXIO` which crashes the process. Fixes: nodejs#41500
santigimeno
added a commit
to santigimeno/node
that referenced
this issue
Feb 2, 2022
An interface with index 0 doesn't make sense and makes `if_indextoname()` to return `ENXIO` which crashes the process. Fixes: nodejs#41500
santigimeno
added a commit
to santigimeno/node
that referenced
this issue
Feb 2, 2022
An interface with index 0 doesn't make sense and makes `if_indextoname()` to return `ENXIO` which crashes the process. Fixes: nodejs#41500
nodejs-github-bot
pushed a commit
that referenced
this issue
Feb 11, 2022
An interface with index 0 doesn't make sense and makes `if_indextoname()` to return `ENXIO` which crashes the process. Fixes: #41500 PR-URL: #41547 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
bengl
pushed a commit
to bengl/node
that referenced
this issue
Feb 21, 2022
An interface with index 0 doesn't make sense and makes `if_indextoname()` to return `ENXIO` which crashes the process. Fixes: nodejs#41500 PR-URL: nodejs#41547 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
bengl
pushed a commit
to bengl/node
that referenced
this issue
Feb 21, 2022
An interface with index 0 doesn't make sense and makes `if_indextoname()` to return `ENXIO` which crashes the process. Fixes: nodejs#41500 PR-URL: nodejs#41547 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
This was referenced Mar 25, 2022
danielleadams
pushed a commit
to danielleadams/node
that referenced
this issue
Apr 21, 2022
An interface with index 0 doesn't make sense and makes `if_indextoname()` to return `ENXIO` which crashes the process. Fixes: nodejs#41500 PR-URL: nodejs#41547 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
danielleadams
pushed a commit
that referenced
this issue
Apr 24, 2022
An interface with index 0 doesn't make sense and makes `if_indextoname()` to return `ENXIO` which crashes the process. Fixes: #41500 PR-URL: #41547 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
v17.3.1
Platform
Linux darkk-ya-laptop 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
dgram
What steps will reproduce the bug?
Use the following four files to build the test-case:
dgram-udp6-address.js
:Dockerfile
:test.sh
:run.sh
:The test-case is run with
./run.sh
.How often does it reproduce? Is there a required condition?
It's 100% reproducible with this network set-up.
This network setup simulates the default setup of Rostelecom ISP in St. Petersburg regarding their handling of IPv6 as seen by my Ubuntu 16.04 laptop:
fe80::1
ICMP6, destination unreachable, unreachable route
to IPv6 packets with global destinationWhat is the expected behavior?
node
should not crash whole app. It should rather be some kind of exception, socket error or something like that.I've noticed the behavior while developing Electron app, whole app was terminated on
socket.address()
call.What do you see instead?
Additional information
Other affected versions are v12.22.8, v14.18.2, v16.13.1
Relevant
strace
snippet is:So, the kernel returns
sin6_flowinfo=htonl(0)
for the bound socket, so the assertion is false.#39143 seems to be a similar issue on AIX.
The text was updated successfully, but these errors were encountered: