-
Notifications
You must be signed in to change notification settings - Fork 308
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
Failed tests with -flto=auto #337
Comments
Do these pass if you don't pass -flto? Very strange if so.
…On Thu, Dec 21, 2023 at 9:15 AM Vedingrot ***@***.***> wrote:
Hi, when compile with -O2 and -flto=auto fails 5 tests.
The following tests FAILED:
31 - s2cell_index_test (Subprocess aborted)
33 - s2cell_iterator_testing_test (Failed)
35 - s2cell_union_test (Failed)
75 - s2point_index_test (Subprocess aborted)
88 - s2region_coverer_test (Subprocess aborted)
LastTest.log
<https://github.com/google/s2geometry/files/13743937/LastTest.log>
—
Reply to this email directly, view it on GitHub
<#337>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGEMKTKI2W4YH3VZW5RIIDYKROCRAVCNFSM6AAAAABA6UGS3SVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TENZQHE3DANA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
They're pass without -flto. |
I also tried to add -ffat-lto-objects and it helps, but there is warning that looks worrying. |
OK can you provide a full set of commands for the first case that'll let me
reproduce it?
…On Thu, Dec 21, 2023 at 9:47 AM Vedingrot ***@***.***> wrote:
I also tried to add -ffat-lto-objects and it helps, but there is warning
that looks worrying.
ffat_lto.log
<https://github.com/google/s2geometry/files/13744279/ffat_lto.log>
—
Reply to this email directly, view it on GitHub
<#337 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGEMKXGERBMJAM3C3O5QMTYKRR2LAVCNFSM6AAAAABA6UGS3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRWGYZTEMBTG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
What compiler / version? |
I was using googletest installed on the system, but the problem with not googletest.
|
I can reproduce the same thing with This one looks like it is maybe the simplest failure:
It's just doing basic stuff with Maybe run the abseil-cpp tests with |
@jmr compiling abseil-cpp with |
I think the only parts of S2 that |
Hi, I just build with latest abseil library and
|
I would start but looking at s2cell_union_test. That is probably the simplest failure. |
Here's something to debug:
See what's going on with the s2geometry/src/s2/s2cell_union.cc Line 351 in 7940c9f
|
This looks like either a gcc LTO bug or LTO taking advantage of some UB.
All tests pass with The next step is probably to make a minimal test case. |
I made a test case from the apparently relevant parts of the code ( |
Hi, when compile with -O2 and -flto=auto fails 5 tests.
The following tests FAILED:
31 - s2cell_index_test (Subprocess aborted)
33 - s2cell_iterator_testing_test (Failed)
35 - s2cell_union_test (Failed)
75 - s2point_index_test (Subprocess aborted)
88 - s2region_coverer_test (Subprocess aborted)
LastTest.log
Compiler: gcc 13.2.1
The text was updated successfully, but these errors were encountered: