Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Not a Bug
-
10.2(EOL), 10.3(EOL)
-
None
Description
When compiling with clang 4.0.1 in Travis CI, we get the following errors:
leftmain.type_datetime_hires 'innodb' w5 [ fail ]
|
Test ended at 2018-02-26 16:38:32
|
|
CURRENT_TEST: main.type_datetime_hires
|
--- /home/travis/build/ottok/mariadb/mysql-test/r/type_datetime_hires.result 2018-02-26 16:10:37.771159137 +0000
|
+++ /home/travis/build/ottok/mariadb/mysql-test/r/type_datetime_hires.reject 2018-02-26 16:38:32.047346337 +0000
|
@@ -15,14 +15,14 @@
|
0000-00-00 00:00:00.000
|
2010-12-11 00:20:03.123
|
2010-12-11 01:02:03.456
|
-2010-12-11 03:04:05.789
|
+2010-12-11 03:04:05.785
|
2010-12-11 15:47:11.123
|
select truncate(a, 6) from t1;
|
truncate(a, 6)
|
0.000000
|
20101211002003.120000
|
20101211010203.457031
|
-20101211030405.790000
|
+20101211030405.785000
|
20101211154711.120000
|
select a DIV 1 from t1;
|
a DIV 1
|
@@ -33,21 +33,21 @@
|
20101211154711
|
select group_concat(distinct a) from t1;
|
group_concat(distinct a)
|
-0000-00-00 00:00:00.000,2010-12-11 00:20:03.123,2010-12-11 01:02:03.456,2010-12-11 03:04:05.789,2010-12-11 15:47:11.123
|
+0000-00-00 00:00:00.000,2010-12-11 00:20:03.123,2010-12-11 01:02:03.456,2010-12-11 03:04:05.785,2010-12-11 15:47:11.123
|
alter table t1 engine=innodb;
|
select * from t1 order by a;
|
a
|
0000-00-00 00:00:00.000
|
2010-12-11 00:20:03.123
|
2010-12-11 01:02:03.456
|
-2010-12-11 03:04:05.789
|
+2010-12-11 03:04:05.785
|
2010-12-11 15:47:11.123
|
select * from t1 order by a+0;
|
a
|
0000-00-00 00:00:00.000
|
2010-12-11 00:20:03.123
|
2010-12-11 01:02:03.456
|
-2010-12-11 03:04:05.789
|
+2010-12-11 03:04:05.785
|
2010-12-11 15:47:11.123
|
drop table t1;
|
create table t1 (a datetime(4)) engine=innodb;
|
|
select_pkeycache w4 [ fail ]
|
Test ended at 2018-02-26 16:39:27
|
|
CURRENT_TEST: main.select_pkeycache
|
--- /home/travis/build/ottok/mariadb/mysql-test/r/select_pkeycache.result 2018-02-26 16:10:37.735158872 +0000
|
+++ /home/travis/build/ottok/mariadb/mysql-test/r/select_pkeycache.reject 2018-02-26 16:39:27.235746730 +0000
|
@@ -2133,7 +2133,6 @@
|
wss_type
|
select wss_type from t1 where wss_type ='102935229216544093';
|
wss_type
|
-102935229216544093
|
select wss_type from t1 where wss_type =102935229216544093;
|
wss_type
|
102935229216544093
|
|
select w1 [ fail ]
|
Test ended at 2018-02-26 16:41:12
|
|
CURRENT_TEST: main.select
|
--- /home/travis/build/ottok/mariadb/mysql-test/r/select.result 2018-02-26 16:10:37.735158872 +0000
|
+++ /home/travis/build/ottok/mariadb/mysql-test/r/select.reject 2018-02-26 16:41:12.140507768 +0000
|
@@ -2133,7 +2133,6 @@
|
wss_type
|
select wss_type from t1 where wss_type ='102935229216544093';
|
wss_type
|
-102935229216544093
|
select wss_type from t1 where wss_type =102935229216544093;
|
wss_type
|
102935229216544093
|
These are all related failures in mysys/dtoa.c when converting from a string to a floating point number. For large values there seems to be a loss of precision.
The full list of test failures is:
main.type_datetime_hires main.select_pkeycache main.select main.select_jcl6 main.type_float main.func_str main.type_time_hires main.type_timestamp_hires
Attachments
Issue Links
- blocks
-
MDEV-15814 Travis-CI (consistent) failures for 10.3 branch
-
- Closed
-
Dumping the results I have so far with cross-compiler testing:
* Only repro with clang4 on Ubuntu 14.04 and 16.04
* clang version 4.0.1-svn305264-1~exp1 (branches/release_40); 14.04
* clang version 4.0.0-1ubuntu1~16.04.2 (tags/RELEASE_400/rc1)
* No show:
* macOS 10.13 clang-9.1
* On 14.04:
* clang3.3-9,5
* gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4
* gcc 4.4
* On 16.04
* gcc-5.4 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
* gcc-4.7 (Ubuntu/Linaro 4.7.4-3ubuntu12) 4.7.4
* clang version 5.0.0-3~16.04.1 (tags/RELEASE_500/final)
* On 17.10
* gcc-7 (Ubuntu 7.2.0-8ubuntu3.2) 7.2.0
* gcc-6 (Ubuntu 6.4.0-8ubuntu1) 6.4.0 20171010
Working on disabling affected tests for affected clang version in Travis. Another option suggested by otto is to just drop support for this version.