Bug #87922 UBSan error on SetRingOrderTest.SetRingOrderCCW unit test

Submitted: 29 Sep 2017 19:17 Modified: 3 Oct 2017 16:23
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: GIS Severity:S3 (Non-critical)
Version:8.0.3 OS:Any
Assigned to: CPU Architecture:Any
Tags: gis, ubsan, unit tests

[29 Sep 2017 19:17] Laurynas Biveinis
Description:
cmake ... -DWITH_DEBUG=ON -DWITH_UBSAN=ON
make
./runtime_output_director/merge_large_tests-t
...
[ RUN      ] SetRingOrderTest.RingDegradedToPointTest
/home/laurynas/mysql-8.0.3/unittest/gunit/gis_algos-t.cc:159:44: runtime error: downcast of address 0x611000046ad8 which does not point to an object of type 'Gis_polygon_ring'
0x611000046ad8: note: object is of type 'Gis_line_string'
 00 be be be  88 72 da 37 37 56 00 00  00 00 00 00 00 00 00 00  a5 0f 2a 00 60 61 00 00  2b a8 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'Gis_line_string'
[       OK ] SetRingOrderTest.RingDegradedToPointTest (0 ms)
...

How to repeat:
See above
[3 Oct 2017 6:33] MySQL Verification Team
Hello Laurynas,

Thank you for the report and feedback!

Regards,
Umesh
[3 Oct 2017 6:36] MySQL Verification Team
test results

Attachment: 87922.results (application/octet-stream, text), 391.20 KiB.

[3 Oct 2017 16:23] Paul DuBois
Posted by developer:
 
Fixed in 9.0.0.

Work was done for test suite. No changelog entry needed.
[5 Oct 2017 12:21] Paul DuBois
Posted by developer:
 
Also fixed in 8.0.4.
[11 Apr 2018 16:35] Erlend Dahl
Bug#87923 ASan reporting a memory leak on merge_large_tests-t

was noted as a duplicate.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.055 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.