Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
10.3(EOL)
-
None
Description
git 10.3 commit 358ae4b46dd52b329154cf
Version: '10.3.9-MariaDB-debug-log' socket: '/home/alice/aliska/2/current1_4/mysql.sock' port: 13060 Source distribution
|
=================================================================
|
==1225==ERROR: AddressSanitizer: global-buffer-overflow on address 0x563e0f135774 at pc 0x7fa934309676 bp 0x7fa904d2ff20 sp 0x7fa904d2f6c8
|
READ of size 38 at 0x563e0f135774 thread T33
|
#0 0x7fa934309675 in memcmp (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x77675)
|
#1 0x563e0d14feee in QUICK_GROUP_MIN_MAX_SELECT::add_range(SEL_ARG*) /home/alice/git/10.3/sql/opt_range.cc:13788
|
#2 0x563e0d14e0ae in TRP_GROUP_MIN_MAX::make_quick(PARAM*, bool, st_mem_root*) /home/alice/git/10.3/sql/opt_range.cc:13536
|
#3 0x563e0d10db28 in SQL_SELECT::test_quick_select(THD*, Bitmap<64u>, unsigned long long, unsigned long long, bool, bool, bool) /home/alice/git/10.3/sql/opt_range.cc:2680
|
#4 0x563e0c7bbb89 in get_quick_record_count /home/alice/git/10.3/sql/sql_select.cc:4247
|
#5 0x563e0c7c1578 in make_join_statistics /home/alice/git/10.3/sql/sql_select.cc:4877
|
#6 0x563e0c7a5705 in JOIN::optimize_inner() /home/alice/git/10.3/sql/sql_select.cc:1871
|
#7 0x563e0c7a18e1 in JOIN::optimize() /home/alice/git/10.3/sql/sql_select.cc:1446
|
#8 0x563e0c7bb498 in mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /home/alice/git/10.3/sql/sql_select.cc:4196
|
#9 0x563e0c796fd2 in handle_select(THD*, LEX*, select_result*, unsigned long) /home/alice/git/10.3/sql/sql_select.cc:382
|
#10 0x563e0c71cbc1 in execute_sqlcom_select /home/alice/git/10.3/sql/sql_parse.cc:6541
|
#11 0x563e0c70b3d4 in mysql_execute_command(THD*) /home/alice/git/10.3/sql/sql_parse.cc:3764
|
#12 0x563e0c7255ab in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /home/alice/git/10.3/sql/sql_parse.cc:8076
|
#13 0x563e0c7001b6 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /home/alice/git/10.3/sql/sql_parse.cc:1847
|
#14 0x563e0c6fd34e in do_command(THD*) /home/alice/git/10.3/sql/sql_parse.cc:1392
|
#15 0x563e0ca4aa7b in do_handle_one_connection(CONNECT*) /home/alice/git/10.3/sql/sql_connect.cc:1402
|
#16 0x563e0ca4a458 in handle_one_connection /home/alice/git/10.3/sql/sql_connect.cc:1308
|
#17 0x7fa93313e6b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
|
#18 0x7fa9325d341c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x10741c)
|
 |
0x563e0f135774 is located 0 bytes to the right of global variable 'is_null_string' defined in '/home/alice/git/10.3/sql/opt_range.cc:139:14' (0x563e0f135760) of size 20
|
SUMMARY: AddressSanitizer: global-buffer-overflow ??:0 memcmp
|
Shadow bytes around the buggy address:
|
0x0ac841e1ea90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ac841e1eaa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ac841e1eab0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ac841e1eac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ac841e1ead0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
=>0x0ac841e1eae0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04]f9
|
0x0ac841e1eaf0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ac841e1eb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ac841e1eb10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ac841e1eb20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0ac841e1eb30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
Shadow byte legend (one shadow byte represents 8 application bytes):
|
Addressable: 00
|
Partially addressable: 01 02 03 04 05 06 07
|
Heap left redzone: fa
|
Heap right redzone: fb
|
Freed heap region: fd
|
Stack left redzone: f1
|
Stack mid redzone: f2
|
Stack right redzone: f3
|
Stack partial redzone: f4
|
Stack after return: f5
|
Stack use after scope: f8
|
Global redzone: f9
|
Global init order: f6
|
Poisoned by user: f7
|
Container overflow: fc
|
Array cookie: ac
|
Intra object redzone: bb
|
ASan internal: fe
|
SELECT `col_varchar_key`, |
MIN(`col_varchar_nokey`) |
FROM `C` |
WHERE ((`col_varchar_key` <> '1975-11-25 16:08:50.006202') |
AND NOT (`col_varchar_nokey` = '2021-09-04 15:23:27.026063')) |
AND (NOT (`col_varchar_nokey` = '0000-00-00 00:00:00') |
AND `col_varchar_key` IN ('20321205133134.051183', |
'1980-11-18 20:07:33.050205', |
'0000-00-00 00:00:00', |
'0000-00-00 00:00:00')) |
GROUP BY `col_varchar_key` ; |
Attachments
Issue Links
- duplicates
-
MDEV-16241 Assertion `inited==RND' failed in handler::ha_rnd_end() or crash in in ha_innobase::innobase_get_index
- Closed