-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
test_os debug assertion failure #83928
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
Comments
With CPython master branch and build.bat -e -p x64, if I run test_os I get the following (in a messagebox transcribed here for ease of consumption). Sorry if I am missing something. This means I am unable to run test_os to completion. I am on Windows 10.0.19559.1000 x64 with CL 19.24.28315/Visual Studio 16.4.3 For test_bad_fd: Program: C:\Users\ethanhs\cpython\PCbuild\amd64\python_d.exe Expression: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle) For information on how your program can cause an assertion (Press Retry to debug the application) |
Well, you're running a debug build but building a release build (unless you missed the "-d" from the command line -- "-e" is the default now, BTW), so your build may be out of sync. These assertion dialogs are supposed to be suppressed during the test suite, but only when run using "python.bat -m test test_os". If you're running the OS tests any other way, then you'll see these popups. (I hope you used Ctrl+C in the dialog to copy the text, by the way. That's a lot to copy out by hand!) --- FWIW, these are very good assertions for most programs. But most programs are not intentionally passing arbitrary values into system calls, so we have to suppress them for Python :) |
If I understand Steve's comment it sounds like there's nothing we can do here. Shall we close it as not a bug? |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: