-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
Bad file descriptor on ARM build #217
Comments
I removed the try catch in main and added a gdb backtrace |
Hi @inf265 , Thank you for using the library and reporting the issue. Although I don't have access to ARM to replicate the problem directly, I have some insights into what you've described. The warning may be caused by the fact that the library is using:
If, in your system, GetChar() returns an unsigned type and EOF has a negative value, it could trigger this warning. However, this would only affect the local session, not the remote one. Therefore, the abrupt closure of your telnet connection is likely not caused by this warning. The exception in the main is thrown by Session::Disconnect():
This method is called by the exit action of a CliTelnetSession. So, something is causing the telnet session to close, leading to the subsequent exception. Investigating the root cause of the telnet session closing soon after the connection is essential. You can try using a newer version of the asio library (or try with Boost) if you're using an older one. Additionally, experimenting with different telnet clients or connection options might provide more insights. Please keep me informed if you gather new information. |
I had the same issue, solved it by changing the Telnet negotiation mode to Active :) |
Should we add in the README.md file that the telnet client must be configured with negotiation = active to successfully connect to the CLI? |
I apologize I meant passive not active 😄 Maybe you should add it to the read me (windows is ok with both it solved the problem on Linux) also I found that in genericasioremotecli I had to remove the lines 81,84,87 in order to fix the Linux problem (a combination of the two - telnet négociation and removing the lines) I'm havent really figured out why but that is what worked for me 😄 |
I have fixed an ARM issue with the commit: 2921758 |
Hi,
first of all many thanks for this work, it is amazing, I was able to make a cli in nearby no-time.
I am using standalone version with:
and then telnet to localhost 5000. That works fine on my local PC x86.
Then I did the same on an iMX8 ARM aarch64, the telnet session immediately closes
and the process where "complete" is running exits with:
What I've seen when compiling on ARM was a warning:
Any help appreciated...
The text was updated successfully, but these errors were encountered: