Uh oh!
There was an error while loading. Please reload this page.
pythonbuf fix - #2675
Conversation
YannickJadoul
left a comment
There was a problem hiding this comment.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
… Deleted test_thread.{cpp,py}
YannickJadoul
left a comment
There was a problem hiding this comment.
A few things, but nothing drastic, so I'm fine with not having these done, as long as CI passes.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nickbridgechess
commented
Nov 18, 2020
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. |
YannickJadoul
commented
Nov 18, 2020
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? |
nickbridgechess
commented
Nov 18, 2020
Thanks for all your help on this. Is there anything else I need to do? |
YannickJadoul
commented
Nov 18, 2020
I'm looking how to shut up MSVC. If you don't mind any of us pushing changes to your branch, then nope :-) |
nickbridgechess
commented
Nov 18, 2020
Do whatever you have to! LMK if you need anything from me. |
YannickJadoul
commented
Nov 18, 2020
Great! Thanks a lot for the quick fixes, and for finding this in the first place! :-) |
9928fc4 to
9e81c2dCompare9e81c2d to
483d501CompareYannickJadoul
commented
Nov 18, 2020
Windows tests just failed with the known fluke: So this PR unfortunately does not fix them :-( |
YannickJadoul
commented
Nov 19, 2020
Finally, green! Good to merge, as far as I'm concerned! :-) |
YannickJadoul
commented
Nov 19, 2020
Thanks, @nickbridgechess! :-) |
nickbridgechess
commented
Nov 20, 2020
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: