-
Notifications
You must be signed in to change notification settings - Fork 834
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
ifaddrs.h: getifaddrs() causing invalid argument exception. #308
Comments
@MadcowD getifaddrs requires NETLINK\RAW socket support, which unfortunately we don't have at the moment. Meanwhile, help us prioritize this by up voting network interface query support in our user voice page. Thanks for trying out WSL and providing us valuable feedback. |
Also see #118 |
Hello! I'm seeing exactly the same issue for cpp-ethereum. I've worked through build errors in #147 and am now onto runtime errors, the first of which is a showstopper on See https://twitter.com/BobSummerwill/status/740820732737904640. The failure is occurring very early on, at https://github.com/bobsummerwill/cpp-ethereum/blob/merge_repos/libp2p/Network.cpp#L82, in code which is likely very similar to networking code which many other Linux apps have. |
Works on my latest internal builds, the fix should make its way to the insider builds eventually (if it already hasn't). |
This is fixed in the latest insider build 14971. Thanks. |
Hi, just a question. |
Hi @hostert -- these improvements are scheduled to be released as part of the next major Windows version, which we've been told is scheduled for release sometime in maybe the first quarter or half of 2017? |
Is this one really closed? I am on 14971 but am still experiencing the problem. |
Thank you @aseering. |
@marcobehler - I am not able to repro the above issue on build 14971 using the sample program posted by @MadcowD. Do you have the teredo interface installed by any means on your Windows box? If so, you might be running into #1414 or #468. See the workaround posted by @saschagehlich in #468 to disable the teredo interface. A fix for that is coming soon. |
@sunilmut I can confirm that @saschagehlich's workaround posted in in #468 resolved my problem in trying to run Middleman (middleman/middleman#1960). Thank you so much! Care to explain (to a Windows & Ubuntu newbie like myself) what this change actually does? |
@sunilmut can also make it work with @saschagehlich's workaround. (then the error goes away)... |
Glad to know @mattrothenberg and @marcobehler that it resolves both of your issues. @JasonLinMS can provide the exact details. But as I understand, the "Teredo Tunneling Pseudo-Interface" has a HW address of 32 bytes. In string format, each byte requires 3-byte for representation i.e 32*3 = 96bytes. While the 'ip' tool is hard coded to only expect 64 bytes overall. So, there is buffer overflow and the tool crashes. |
@sunilmut Thanks for the great explanation. |
The teredo issue should be fixed in 15007 |
Closing this out. If anyone is still (on builds 15007+) having problems, please let us know and we can reopen. |
* Re-enable DriveInfo test on Windows Subsystem for Linux https://github.com/dotnet/corefx/issues/11570 * Re-enable additional tests on WSL Related microsoft/WSL#1011 and microsoft/WSL#308 * correct xunit Facts * Disable some network tests on WSL Disable some network tests on WindowsSubsystemForLinux due to https://github.com/dotnet/corefx/issues/15513
* Re-enable DriveInfo test on Windows Subsystem for Linux https://github.com/dotnet/corefx/issues/11570 * Re-enable additional tests on WSL Related microsoft/WSL#1011 and microsoft/WSL#308 * correct xunit Facts * Disable some network tests on WSL Disable some network tests on WindowsSubsystemForLinux due to https://github.com/dotnet/corefx/issues/15513 Commit migrated from dotnet/corefx@1e95551
Hi. In alignement with my explorations today, it appears that
ifaddrs.h
is not fully implemented, or there is some other bug. Whenever one attempts to callgetifaddrs()
,errno
is set toEINVAL
.This is causing issues in #134 and is probably just as related to #69 as anything else is. Furthermore, this is the reason why almost all of the LibZMQ tests seem to be failing. I've attached the test suite output after building libzmq and running
make check
. Finally this is causing errors with Anaconda, in particular the iPython or Jupyter notebook projects cannot use sockets to communicate between the browser and the iPython kernel, this is seen in this issue #1331.The following code replicates the error:
The text was updated successfully, but these errors were encountered: