-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
[USB Serial JTAG] calling select() & poll() crashes (IDFGH-8509) #9964
Comments
We crash in vfs_console.c because vfs_console.c
Note: the null check we do in vfs.c is insufficent, because that points to vfs.c
|
Hello. Thank you for the report. I've fixed the crash issue (backports yet to be merged), however unfortunately I don't have much knowledge about select() and poll() so I created a new issue in our internal Jira about their implementation and I'll keep this issue open. |
Hi @chipweinberger, |
v4.4.2
ESP32-S3
What is the expected behavior?
poll() and select() should be implemented for USB Serial JTAG. Is there a reason they are not?
relevant code: https://github.com/espressif/esp-idf/blob/master/components/vfs/vfs_usb_serial_jtag.c
I need poll() or select() to determine if bytes are waiting on stdin.
Use Case: If the user enters any input during boot, USB Host is disabled and instead the user enters a Usb Serial Console.
What is the actual behavior?
The code crashes. Null ptr deref trying to execute the non-existent function.
(This was very annoying to debug due to the virtual pointers! At the least we should log + assert😀)
Steps to reproduce.
Code:
Debug Logs.
More Information.
No response
The text was updated successfully, but these errors were encountered: