Bug #79238 | Enabling Undefined Behavior Sanitizer results in broken server | ||
---|---|---|---|
Submitted: | 11 Nov 2015 15:48 | Modified: | 15 Dec 2015 16:24 |
Reporter: | Laurynas Biveinis (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 5.7.9 | OS: | Ubuntu (15.10) |
Assigned to: | CPU Architecture: | Any | |
Tags: | ubsan |
[11 Nov 2015 15:48]
Laurynas Biveinis
[11 Nov 2015 15:50]
Laurynas Biveinis
Contents of bootstrap.log: $ cat var/log/bootstrap.log /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug --no-defaults --log-syslog=0 --bootstrap --basedir=/home/laurynas/mysql-5.7.9 --datadir=/home/laurynas/obj-5.7.9-ubsan/mysql-test/var/install.db --loose-skip-ndbcluster --tmpdir=/home/laurynas/obj-5.7.9-ubsan/mysql-test/var/tmp/ --secure-file-priv=/home/laurynas/obj-5.7.9-ubsan/mysql-test/var --innodb-log-file-size=5M --core-file --innodb_autoextend_increment=8 --innodb_buffer_pool_size=24M --lc-messages-dir=/home/laurynas/obj-5.7.9-ubsan/sql/share/ --character-sets-dir=/home/laurynas/mysql-5.7.9/sql/share/charsets --loose-auto_generate_certs=OFF --loose-sha256_password_auto_generate_rsa_keys=OFF /home/laurynas/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x000008ca0d08 which does not point to an object of type 'NAMED_ILINK' 0x000008ca0d08: note: object is of type 'ilink<NAMED_ILINK>' 00 00 00 00 40 03 2a 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<NAMED_ILINK>' /home/laurynas/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x000008ca6188 which does not point to an object of type 'i_string' 0x000008ca6188: note: object is of type 'ilink<i_string>' 00 00 00 00 48 55 20 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<i_string>' /home/laurynas/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x0000094e49c8 which does not point to an object of type 'i_string' 0x0000094e49c8: note: object is of type 'ilink<i_string>' 00 00 00 00 48 55 20 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f3 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<i_string>' /home/laurynas/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x0000094e49e8 which does not point to an object of type 'i_string' 0x0000094e49e8: note: object is of type 'ilink<i_string>' ff ff ff ff 48 55 20 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 24 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<i_string>' /home/laurynas/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x0000094e4a08 which does not point to an object of type 'i_string_pair' 0x0000094e4a08: note: object is of type 'ilink<i_string_pair>' 00 00 00 00 60 32 2c 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<i_string_pair>' /home/laurynas/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x0000094e49c8 which does not point to an object of type 'i_string' 0x0000094e49c8: note: object is of type 'ilink<i_string>' 00 00 00 00 48 55 20 04 00 00 00 00 c0 49 4e 09 00 00 00 00 00 00 00 00 00 00 00 00 e8 49 4e 09 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<i_string>' /home/laurynas/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x0000094e49e8 which does not point to an object of type 'i_string' 0x0000094e49e8: note: object is of type 'ilink<i_string>' 00 00 00 00 48 55 20 04 00 00 00 00 e0 49 4e 09 00 00 00 00 00 00 00 00 00 00 00 00 08 4a 4e 09 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<i_string>' /home/laurynas/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x0000094e4a08 which does not point to an object of type 'i_string_pair' 0x0000094e4a08: note: object is of type 'ilink<i_string_pair>' 00 00 00 00 60 32 2c 04 00 00 00 00 00 4a 4e 09 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<i_string_pair>' /home/laurynas/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x000008ca0d08 which does not point to an object of type 'NAMED_ILINK' 0x000008ca0d08: note: object is of type 'ilink<NAMED_ILINK>' 00 00 00 00 40 03 2a 04 00 00 00 00 00 0d ca 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<NAMED_ILINK>' /home/laurynas/mysql-5.7.9/sql/sql_list.h:761:17: runtime error: downcast of address 0x000008ca0d08 which does not point to an object of type 'NAMED_ILINK' 0x000008ca0d08: note: object is of type 'ilink<NAMED_ILINK>' 00 00 00 00 40 03 2a 04 00 00 00 00 00 0d ca 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<NAMED_ILINK>' /home/laurynas/mysql-5.7.9/sql/sql_list.h:701:12: runtime error: downcast of address 0x000008ca0d08 which does not point to an object of type 'NAMED_ILINK' 0x000008ca0d08: note: object is of type 'ilink<NAMED_ILINK>' 00 00 00 00 40 03 2a 04 00 00 00 00 00 0d ca 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<NAMED_ILINK>'
[11 Nov 2015 15:50]
Laurynas Biveinis
/home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ffee473e326 for type 'uint32', which requires 4 byte alignment 0x7ffee473e326: note: pointer points here 03 01 01 00 3e 10 01 00 24 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 2f 68 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ffee473e32a for type 'uint32', which requires 4 byte alignment 0x7ffee473e32a: note: pointer points here 3e 10 01 00 24 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 2f 68 6f 6d 65 2f ^ 2015-11-11T15:44:39.739923Z 0 [Warning] --bootstrap is deprecated. Please consider using --initialize instead /home/laurynas/mysql-5.7.9/sql/sql_list.h:761:17: runtime error: downcast of address 0x000008ca0d08 which does not point to an object of type 'NAMED_ILINK' 0x000008ca0d08: note: object is of type 'ilink<NAMED_ILINK>' 00 00 00 00 40 03 2a 04 00 00 00 00 c0 6a 4e 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<NAMED_ILINK>' /home/laurynas/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x7ff398002520 which does not point to an object of type 'Item_change_record' 0x7ff398002520: note: object is of type 'ilink<Item_change_record>' 00 00 00 00 d8 26 2a 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<Item_change_record>' /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:27:60: runtime error: load of misaligned address 0x7ff38c007921 for type 'ulonglong', which requires 8 byte alignment 0x7ff38c007921: note: pointer points here 00 00 00 74 69 6d 65 5f 7a 6f 6e 65 00 61 75 74 6f 63 6f 6d 6d 69 74 2c 63 68 61 72 61 63 74 65 ^ /home/laurynas/mysql-5.7.9/sql/sql_list.h:761:17: runtime error: downcast of address 0x000008ca6188 which does not point to an object of type 'i_string' 0x000008ca6188: note: object is of type 'ilink<i_string>' 00 00 00 00 48 55 20 04 00 00 00 00 80 61 ca 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<i_string>' /home/laurynas/mysql-5.7.9/sql-common/sql_string.cc:124:39: runtime error: null pointer passed as argument 2, which is declared to never be null /usr/include/x86_64-linux-gnu/bits/string3.h:53:71: runtime error: null pointer passed as argument 2, which is declared to never be null /home/laurynas/mysql-5.7.9/sql/sql_list.h:686:40: runtime error: downcast of address 0x0000098939d0 which does not point to an object of type 'Item_change_record' 0x0000098939d0: note: object is of type 'ilink<Item_change_record>' 00 00 00 00 d8 26 2a 04 00 00 00 00 c8 39 89 09 00 00 00 00 00 00 00 00 00 00 00 00 98 1d 89 09 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<Item_change_record>' /home/laurynas/mysql-5.7.9/include/my_bit.h:116:46: runtime error: left shift of 193 by 24 places cannot be represented in type 'int' /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff37c009a3b for type 'uint16', which requires 2 byte alignment 0x7ff37c009a3b: note: pointer points here 72 69 76 00 00 00 00 00 02 14 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:37:20: runtime error: store to misaligned address 0x7ff3a1ff7e5a for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7e5a: note: pointer points here 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:37:20: runtime error: store to misaligned address 0x7ff3a1ff7e62 for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7e62: note: pointer points here c2 02 e8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:37:20: runtime error: store to misaligned address 0x7ff3a1ff7e66 for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7e66: note: pointer points here 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:37:20: runtime error: store to misaligned address 0x7ff3a1ff7e72 for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7e72: note: pointer points here 08 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:37:20: runtime error: store to misaligned address 0x7ff3a1ff7e7f for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7e7f: note: pointer points here 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a0 7e ff a1 f3 7f 00 00 bf 81 b2 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:37:20: runtime error: store to misaligned address 0x7ff3a1ff7e83 for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7e83: note: pointer points here c2 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a0 7e ff a1 f3 7f 00 00 bf 81 b2 02 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:37:20: runtime error: store to misaligned address 0x7ff3a1ff7e87 for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7e87: note: pointer points here 15 c6 00 00 00 00 00 00 00 00 00 00 00 a0 7e ff a1 f3 7f 00 00 bf 81 b2 02 00 00 00 00 b0 7e ff ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ff3a1ff7e7f for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7e7f: note: pointer points here 00 00 00 00 c2 02 00 00 15 c6 00 00 31 00 00 00 00 00 00 00 00 a0 7e ff a1 f3 7f 00 00 bf 81 b2 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff37c009e83 for type 'uint16', which requires 2 byte alignment 0x7ff37c009e83: note: pointer points here 80 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^
[11 Nov 2015 15:51]
Laurynas Biveinis
/home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff37c009e85 for type 'uint16', which requires 2 byte alignment 0x7ff37c009e85: note: pointer points here 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff37c009e87 for type 'uint16', which requires 2 byte alignment 0x7ff37c009e87: note: pointer points here 01 00 b4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff37c009e89 for type 'uint16', which requires 2 byte alignment 0x7ff37c009e89: note: pointer points here b4 00 02 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff37c009e99 for type 'uint16', which requires 2 byte alignment 0x7ff37c009e99: note: pointer points here 01 00 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff37c009e9b for type 'uint16', which requires 2 byte alignment 0x7ff37c009e9b: note: pointer points here 60 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff37c009e9f for type 'uint16', which requires 2 byte alignment 0x7ff37c009e9f: note: pointer points here 60 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ff3a1ff7e5a for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7e5a: note: pointer points here 00 10 00 00 00 20 00 00 c2 02 e8 01 00 00 00 00 00 00 00 00 00 02 00 00 08 00 00 05 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:37:20: runtime error: store to misaligned address 0x7ff3a1ff7e5a for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7e5a: note: pointer points here 00 10 01 00 00 20 00 00 c2 02 e8 01 00 00 00 00 00 00 00 00 00 02 00 00 08 00 00 05 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff3a1ff7e8b for type 'uint16', which requires 2 byte alignment 0x7ff3a1ff7e8b: note: pointer points here 31 00 00 00 00 00 00 00 00 a0 7e ff a1 f3 7f 00 00 bf 81 b2 02 00 00 00 00 b0 7e ff a1 f3 7f 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:37:20: runtime error: store to misaligned address 0x7ff37c00a162 for type 'uint32', which requires 4 byte alignment 0x7ff37c00a162: note: pointer points here 00 00 1f 00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff3a1ff8133 for type 'uint16', which requires 2 byte alignment 0x7ff3a1ff8133: note: pointer points here 00 04 05 4a a1 f3 7f 00 00 00 99 b2 02 00 00 00 00 70 81 ff a1 f3 7f 00 00 f9 dc 79 03 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff3a1ff813f for type 'uint16', which requires 2 byte alignment 0x7ff3a1ff813f: note: pointer points here 00 00 fe 53 00 70 81 ff a1 f3 7f 00 00 f9 dc 79 03 00 00 00 00 fd 86 81 03 00 00 00 00 00 89 d3 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ff37c009eb3 for type 'uint32', which requires 4 byte alignment 0x7ff37c009eb3: note: pointer points here 41 2f 2f 00 00 20 00 00 ff 81 02 00 00 00 00 00 00 78 00 00 7c f3 7f 00 00 78 00 00 7c f3 7f 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ff3a1ff7153 for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7153: note: pointer points here c2 02 00 00 15 c6 00 00 31 00 00 00 00 00 00 00 00 6e 05 00 10 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ff3a1ff7142 for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7142: note: pointer points here 08 00 00 05 00 00 00 00 53 00 00 00 00 00 00 00 00 c2 02 00 00 15 c6 00 00 31 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ff3a1ff7132 for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7132: note: pointer points here c2 02 e8 01 00 00 00 00 00 00 00 00 00 02 49 00 08 00 00 05 00 00 00 00 53 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ff3a1ff7136 for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7136: note: pointer points here 00 00 00 00 00 00 00 00 00 02 49 00 08 00 00 05 00 00 00 00 53 00 00 00 00 00 00 00 00 c2 02 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff37c009f23 for type 'uint16', which requires 2 byte alignment 0x7ff37c009f23: note: pointer points here 80 02 00 00 01 00 b4 00 02 80 b6 00 00 01 00 c0 00 03 80 76 01 00 01 00 60 00 03 00 60 00 01 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff37c009f25 for type 'uint16', which requires 2 byte alignment 0x7ff37c009f25: note: pointer points here 00 00 01 00 b4 00 02 80 b6 00 00 01 00 c0 00 03 80 76 01 00 01 00 60 00 03 00 60 00 01 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff37c009f27 for type 'uint16', which requires 2 byte alignment 0x7ff37c009f27: note: pointer points here 01 00 b4 00 02 80 b6 00 00 01 00 c0 00 03 80 76 01 00 01 00 60 00 03 00 60 00 01 00 00 00 03 80 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff37c009f29 for type 'uint16', which requires 2 byte alignment 0x7ff37c009f29: note: pointer points here b4 00 02 80 b6 00 00 01 00 c0 00 03 80 76 01 00 01 00 60 00 03 00 60 00 01 00 00 00 03 80 76 01 ^
[11 Nov 2015 15:51]
Laurynas Biveinis
home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff37c009f39 for type 'uint16', which requires 2 byte alignment 0x7ff37c009f39: note: pointer points here 01 00 60 00 03 00 60 00 01 00 00 00 03 80 76 01 00 01 00 60 00 ff 50 52 49 4d 41 52 59 ff 55 73 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff37c009f3b for type 'uint16', which requires 2 byte alignment 0x7ff37c009f3b: note: pointer points here 60 00 03 00 60 00 01 00 00 00 03 80 76 01 00 01 00 60 00 ff 50 52 49 4d 41 52 59 ff 55 73 65 72 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff37c009f3f for type 'uint16', which requires 2 byte alignment 0x7ff37c009f3f: note: pointer points here 60 00 01 00 00 00 03 80 76 01 00 01 00 60 00 ff 50 52 49 4d 41 52 59 ff 55 73 65 72 ff 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ff3a1ff7157 for type 'uint32', which requires 4 byte alignment 0x7ff3a1ff7157: note: pointer points here 15 c6 00 00 31 00 00 00 00 00 00 00 00 6e 05 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ff37c009cfa for type 'uint32', which requires 4 byte alignment 0x7ff37c009cfa: note: pointer points here 49 53 41 4d 00 00 00 00 00 00 1f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:25:70: runtime error: load of misaligned address 0x7ff37c009d02 for type 'uint32', which requires 4 byte alignment 0x7ff37c009d02: note: pointer points here 00 00 1f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff37c009d1f for type 'uint16', which requires 2 byte alignment 0x7ff37c009d1f: note: pointer points here 00 00 00 00 00 00 00 00 00 00 00 00 00 35 00 00 00 00 00 00 00 00 00 00 00 d2 04 00 00 08 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff3a1ff715b for type 'uint16', which requires 2 byte alignment 0x7ff3a1ff715b: note: pointer points here 31 00 00 00 00 00 00 00 00 6e 05 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff37c00a561 for type 'uint16', which requires 2 byte alignment 0x7ff37c00a561: note: pointer points here 00 02 00 00 01 00 00 00 00 fe 53 00 00 05 03 4c c0 00 b6 00 00 01 00 00 00 00 fe 53 00 00 06 05 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff37c00a56d for type 'uint16', which requires 2 byte alignment 0x7ff37c00a56d: note: pointer points here 00 05 03 4c c0 00 b6 00 00 01 00 00 00 00 fe 53 00 00 06 05 4a 60 00 76 01 00 01 00 00 00 00 fe ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:23:70: runtime error: load of misaligned address 0x7ff37c00a579 for type 'uint16', which requires 2 byte alignment 0x7ff37c00a579: note: pointer points here 00 00 fe 53 00 00 06 05 4a 60 00 76 01 00 01 00 00 00 00 fe 53 00 00 07 0c 03 03 00 d6 01 00 08 ^ /home/laurynas/mysql-5.7.9/sql/field.h:547:7: runtime error: load of value 538976288, which is not a valid value for type 'enum_check_fields' /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:27:60: runtime error: load of misaligned address 0x7ff37c00f311 for type 'ulonglong', which requires 8 byte alignment 0x7ff37c00f311: note: pointer points here 00 00 00 53 50 45 43 49 46 49 45 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff37c008769 for type 'uint16', which requires 2 byte alignment 0x7ff37c008769: note: pointer points here 72 69 76 00 8f 8f 8f 8f 02 14 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:37:20: runtime error: store to misaligned address 0x7ff37c009231 for type 'uint32', which requires 4 byte alignment 0x7ff37c009231: note: pointer points here 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/sql/field.h:2630:24: runtime error: member access within address 0x7ff37c0114c8 which does not point to an object of type 'Field_temporal' 0x7ff37c0114c8: note: object has invalid vptr 8f 8f 8f 8f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ invalid vptr /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:32:20: runtime error: store to misaligned address 0x7ff37c008f11 for type 'uint16', which requires 2 byte alignment 0x7ff37c008f11: note: pointer points here 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/laurynas/mysql-5.7.9/include/byte_order_generic_x86.h:37:20: runtime error: store to misaligned address 0x7ff37c0020b1 for type 'uint32', which requires 4 byte alignment 0x7ff37c0020b1: note: pointer points here 20 20 20 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^
[11 Nov 2015 15:51]
Laurynas Biveinis
15:44:40 UTC - mysqld got signal 11 ; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. Attempting to collect some information that could help diagnose the problem. As this is a crash and something is definitely wrong, the information collection process might fail. key_buffer_size=8388608 read_buffer_size=131072 max_used_connections=0 max_threads=151 thread_count=1 connection_count=0 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68254 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x9891d90 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... stack_bottom = 7ff3a1ffac38 thread_stack 0x40000 /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(my_print_stacktrace+0x3b)[0x2b2b6ee] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(handle_fatal_signal+0x435)[0x7ea253] /lib/x86_64-linux-gnu/libpthread.so.0(+0x10d10)[0x7ff3e5db5d10] /usr/lib/x86_64-linux-gnu/libubsan.so.0(+0xa01a)[0x7ff3e4a1401a] /usr/lib/x86_64-linux-gnu/libubsan.so.0(+0x94d6)[0x7ff3e4a134d6] /usr/lib/x86_64-linux-gnu/libubsan.so.0(__ubsan_handle_dynamic_type_cache_miss+0x13)[0x7ff3e4a13d13] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(_ZN16Field_timestampfC1EPhS0_hN5Field5utypeEPKch+0x113)[0x8be85b] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(_Z10make_fieldP11TABLE_SHAREPhmS1_hj16enum_field_typesPK15charset_info_stN5Field13geometry_typeENS6_5utypeEP10st_typelibPKc+0x1625)[0x8d101e] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug[0x23b2546] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(_Z14open_table_defP3THDP11TABLE_SHAREj+0x452a)[0x23c3549] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(_Z15ha_create_tableP3THDPKcS2_S2_P24st_ha_create_informationbb+0x232)[0x975edd] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(_Z16rea_create_tableP3THDPKcS2_S2_P24st_ha_create_informationR4ListI12Create_fieldEjP6st_keyP7handlerb+0x2f7)[0x242c6b2] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug[0x22bba18] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(_Z26mysql_create_table_no_lockP3THDPKcS2_P24st_ha_create_informationP10Alter_infojPb+0x19a)[0x22bc6f7] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(_Z18mysql_create_tableP3THDP10TABLE_LISTP24st_ha_create_informationP10Alter_info+0x3fb)[0x22bcb1d] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(_Z21mysql_execute_commandP3THDb+0x8957)[0x20c7d2f] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(_Z11mysql_parseP3THDP12Parser_state+0x24f7)[0x20e8714] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug[0x86837e] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(handle_bootstrap+0x9c7)[0x8696de] /home/laurynas/obj-5.7.9-ubsan/sql/mysqld-debug(pfs_spawn_thread+0x3d8)[0x35f0a90] /lib/x86_64-linux-gnu/libpthread.so.0(+0x76aa)[0x7ff3e5dac6aa] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ff3e452feed] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (98954e0): CREATE TABLE IF NOT EXISTS tables_priv ( Host char(60) binary DEFAULT '' NOT NULL, Db char(64) binary DEFAULT '' NOT NULL, User char(32) binary DEFAULT '' NOT NULL, Table_name char(64) binary DEFAULT '' NOT NULL, Grantor char(77) DEFAULT '' NOT NULL, Timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, Table_priv set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') COLLATE utf8_general_ci DEFAULT '' NOT NULL, Column_priv set('Select','Insert','Update','References') COLLATE utf8_general_ci DEFAULT '' NOT NULL, PRIMARY KEY (Host,Db,User,Table_name), KEY Grantor (Grantor) ) engine=MyISAM CHARACTER SET utf8 COLLATE utf8_bin comment='Table privileges'; Connection ID (thread ID): 1 Status: NOT_KILLED The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains information that should help you find out what is causing the crash. Writing a core file safe_process[19498]: Child process: 19499, killed by signal: 11
[11 Nov 2015 17:50]
MySQL Verification Team
Hi, Can you repeat this output (and crash) on some other operating system. It would do if you can repeat it on a completely different Linux distribution. Thanks in advance.
[11 Nov 2015 19:41]
Laurynas Biveinis
Sinisa - Before I spend time on my part to set up required VMs, clone, build, etc., it would be really helpful if you told me the list of acceptable Linux distros, packaging an acceptable ubsan version. So that I don't waste my time in testing the wrong distros (such as Ubuntu 15.10 apparently :)
[12 Nov 2015 11:31]
MySQL Verification Team
Thank you for the bug report. Only repeatable on Ubuntu 15.10: miguel@ubuntu1510:~/mysql-5.7.9/mysql-test$ ./mtr --debug-server 1st Logging: ./mtr --debug-server 1st /home/miguel/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x000008d7ee88 which does not point to an object of type 'NAMED_ILINK' 0x000008d7ee88: note: object is of type 'ilink<NAMED_ILINK>' 00 00 00 00 40 93 37 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<NAMED_ILINK>' /home/miguel/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x000008d84308 which does not point to an object of type 'i_string' 0x000008d84308: note: object is of type 'ilink<i_string>' 00 00 00 00 48 e5 2d 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ilink<i_string>' /home/miguel/mysql-5.7.9/sql/sql_list.h:682:10: runtime error: downcast of address 0x000009b76128 which does not point to an object of type 'i_string' 0x000009b76128: note: object is of type 'ilink<i_string>' 00 00 00 00 48 e5 2d 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ^~~~~~~~~~~~~~~~~~~~~~~ <CUT>
[15 Dec 2015 16:24]
Paul DuBois
Noted in 5.8.0 changelog. Configuring MySQL with the -DWITH_UBSAN=ON CMake option produced a server that was not fully functional.