-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
pythonbuf fix #2675
pythonbuf fix #2675
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch! Thanks!
Is this related to this weird occasional failure on Windows, perhaps, @henryiii? I can't immediately find the issue (or maybe there is none), but it's hinting into that direction.
… Deleted test_thread.{cpp,py}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few things, but nothing drastic, so I'm fine with not having these done, as long as CI passes.
Any idea why some of the checks are failing? MSCV, for example, is complaining about unreachable code, and no object file being created... This is beyond me. |
I don't think you're to blame, to be honest :-| Could this just be MSVC/VS 2015 tripping over it's own stdlib headers? |
Thanks for all your help on this. Is there anything else I need to do? |
I'm looking how to shut up MSVC. If you don't mind any of us pushing changes to your branch, then nope :-) |
Do whatever you have to! LMK if you need anything from me. |
Great! Thanks a lot for the quick fixes, and for finding this in the first place! :-) |
9928fc4
to
9e81c2d
Compare
9e81c2d
to
483d501
Compare
Windows tests just failed with the known fluke:
So this PR unfortunately does not fix them :-( |
Finally, green! Good to merge, as far as I'm concerned! :-) |
Thanks, @nickbridgechess! :-) |
You're very welcome. I appreciate the help, and getting this fix in so quickly. |
Description
Fixes segfaults in multithreaded environments when using scoped_ostream_redirect.
The cause turns out to be the construction of a python str outside the GIL.
Recreate added to tests.
Suggested changelog entry: