Skip to content
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

Segfault with quick_merge_sorter and MSYS2 MinGW-w64 GCC 9.1 #151

Closed
Morwenn opened this issue Aug 13, 2019 · 1 comment
Closed

Segfault with quick_merge_sorter and MSYS2 MinGW-w64 GCC 9.1 #151

Morwenn opened this issue Aug 13, 2019 · 1 comment
Labels
Milestone

Comments

@Morwenn
Copy link
Owner

Morwenn commented Aug 13, 2019

I just upgraded my compiler to a 64-bit MSYS2 MinGW-w64 GCC 6.1, and most tests in the "distribution" category featuring quick_merge_sort seem to fail. I'm not sure why, but it's definitely worth investigating.

More info: I logged the size prior to the failure and it always happens during the second iteration when the size is 3336 (out of 10000 elements).

@Morwenn Morwenn added the bug label Aug 13, 2019
@Morwenn Morwenn added this to the 1.5.0 milestone Aug 16, 2019
@Morwenn
Copy link
Owner Author

Morwenn commented Aug 16, 2019

Apparently the issue seemed to be a codegen issue. I pushed some dirty workaround which should be enough to circumvent the issue while not pessimizing the code for non-random-access iterators.

@Morwenn Morwenn closed this as completed Aug 16, 2019
Morwenn added a commit that referenced this issue Nov 25, 2022
This workaround isn't needed anymore in recent versions of MinGW-w64.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant