CREATE TABLE t1 (n BLOB, UNIQUE(n));
|
INSERT INTO t1 VALUES (1);
|
DELETE FROM t1 WHERE n = 1;
|
|
# Cleanup
|
DROP TABLE t1;
|
10.4 3e89e0f2 -DCMAKE_C_FLAGS="-DDBUG_ASSERT_AS_PRINTF" -DCMAKE_CXX_FLAGS="-DDBUG_ASSERT_AS_PRINTF" -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
Warning: assertion failed: marked_for_write_or_computed() at /data/src/10.4-bug/sql/field.cc line 4331
|
Attempting backtrace to find out the reason for the assert:
|
stack_bottom = 0x0 thread_stack 0x49000
|
mysys/stacktrace.c:270(my_print_stacktrace)[0x5557736fa539]
|
sql/field.cc:4334(Field_longlong::store(long long, bool))[0x5557731d273b]
|
sql/item.cc:6493(Item::save_in_field(Field*, bool))[0x5557731feffc]
|
sql/table.cc:8203(TABLE::update_virtual_fields(handler*, enum_vcol_update_mode))[0x55577308bf2a]
|
sql/handler.cc:2997(handler::ha_rnd_next(unsigned char*))[0x5557731ee35b]b
|
sql/records.cc:481(rr_sequential(READ_RECORD*))[0x555773310564]
|
sql/sql_delete.cc:804(mysql_delete(THD*, TABLE_LIST*, Item*, SQL_I_List<st_order>*, unsigned long long, unsigned long long, select_result*))[0x555773326913]
|
sql/sql_parse.cc:4985(mysql_execute_command(THD*))[0x555772fc7767]
|
sql/sql_class.h:2359(THD::enter_stage(PSI_stage_info_v1 const*, char const*, char const*, unsigned int))[0x555772fcdd74]
|
sql/sql_audit.h:168(mysql_audit_general)[0x555772fd1319]
|
sql/sql_parse.cc:1366(do_command(THD*))[0x555772fd28e2]
|
sql/sql_connect.cc:1398(do_handle_one_connection(CONNECT*))[0x5557730b641c]
|
sql/sql_connect.cc:1303(handle_one_connection)[0x5557730b6584]
|
perfschema/pfs.cc:1865(pfs_spawn_thread)[0x5557734141c4]
|
nptl/pthread_create.c:333(start_thread)[0x7f793cf28494]
|
x86_64/clone.S:99(clone)[0x7f793aef093f]
|
The warning is produced twice upon execution of the test case above.
No failure on debug or debug-ASAN builds.
No failure with limited key length.
Not applicable to 10.3 because of the unlimited key length.
- relates to
-
MDEV-371
Unique indexes for blobs
-
-
Closed
Michael Widenius
made changes -
Status
|
Open
[ 1
]
|
In Progress
[ 3
]
|
Michael Widenius
made changes -
Description
|
{code:sql}
CREATE TABLE t1 (n BLOB, UNIQUE(n));
INSERT INTO t1 VALUES (1);
DELETE FROM t1 WHERE n = 1;
# Cleanup
DROP TABLE t1;
{code}
{noformat:title=10.4 3e89e0f2 -DCMAKE_C_FLAGS="-DDBUG_ASSERT_AS_PRINTF" -DCMAKE_CXX_FLAGS="-DDBUG_ASSERT_AS_PRINTF" -DCMAKE_BUILD_TYPE=RelWithDebInfo}
Warning: assertion failed: marked_for_write_or_computed() at /data/src/10.4-bug/sql/field.cc line 4331
Attempting backtrace to find out the reason for the assert:
stack_bottom = 0x0 thread_stack 0x49000
mysys/stacktrace.c:270(my_print_stacktrace)[0x5557736fa539]
sql/field.cc:4334(Field_longlong::store(long long, bool))[0x5557731d273b]
sql/item.cc:6493(Item::save_in_field(Field*, bool))[0x5557731feffc]
sql/table.cc:8203(TABLE::update_virtual_fields(handler*, enum_vcol_update_mode))[0x55577308bf2a]
sql/handler.cc:2997(handler::ha_rnd_next(unsigned char*))[0x5557731ee35b]
sql/records.cc:481(rr_sequential(READ_RECORD*))[0x555773310564]
sql/sql_delete.cc:804(mysql_delete(THD*, TABLE_LIST*, Item*, SQL_I_List<st_order>*, unsigned long long, unsigned long long, select_result*))[0x555773326913]
sql/sql_parse.cc:4985(mysql_execute_command(THD*))[0x555772fc7767]
sql/sql_class.h:2359(THD::enter_stage(PSI_stage_info_v1 const*, char const*, char const*, unsigned int))[0x555772fcdd74]
sql/sql_audit.h:168(mysql_audit_general)[0x555772fd1319]
sql/sql_parse.cc:1366(do_command(THD*))[0x555772fd28e2]
sql/sql_connect.cc:1398(do_handle_one_connection(CONNECT*))[0x5557730b641c]
sql/sql_connect.cc:1303(handle_one_connection)[0x5557730b6584]
perfschema/pfs.cc:1865(pfs_spawn_thread)[0x5557734141c4]
nptl/pthread_create.c:333(start_thread)[0x7f793cf28494]
x86_64/clone.S:99(clone)[0x7f793aef093f]
{noformat}
The warning is produced twice upon execution of the test case above.
No failure on debug or debug-ASAN builds.
No failure with limited key length.
Not applicable to 10.3 because of the unlimited key length.
|
{code:sql}
CREATE TABLE t1 (n BLOB, UNIQUE(n));
INSERT INTO t1 VALUES (1);
DELETE FROM t1 WHERE n = 1;
# Cleanup
DROP TABLE t1;
{code}
{noformat:title=10.4 3e89e0f2 -DCMAKE_C_FLAGS="-DDBUG_ASSERT_AS_PRINTF" -DCMAKE_CXX_FLAGS="-DDBUG_ASSERT_AS_PRINTF" -DCMAKE_BUILD_TYPE=RelWithDebInfo}
Warning: assertion failed: marked_for_write_or_computed() at /data/src/10.4-bug/sql/field.cc line 4331
Attempting backtrace to find out the reason for the assert:
stack_bottom = 0x0 thread_stack 0x49000
mysys/stacktrace.c:270(my_print_stacktrace)[0x5557736fa539]
sql/field.cc:4334(Field_longlong::store(long long, bool))[0x5557731d273b]
sql/item.cc:6493(Item::save_in_field(Field*, bool))[0x5557731feffc]
sql/table.cc:8203(TABLE::update_virtual_fields(handler*, enum_vcol_update_mode))[0x55577308bf2a]
sql/handler.cc:2997(handler::ha_rnd_next(unsigned char*))[0x5557731ee35b]b
sql/records.cc:481(rr_sequential(READ_RECORD*))[0x555773310564]
sql/sql_delete.cc:804(mysql_delete(THD*, TABLE_LIST*, Item*, SQL_I_List<st_order>*, unsigned long long, unsigned long long, select_result*))[0x555773326913]
sql/sql_parse.cc:4985(mysql_execute_command(THD*))[0x555772fc7767]
sql/sql_class.h:2359(THD::enter_stage(PSI_stage_info_v1 const*, char const*, char const*, unsigned int))[0x555772fcdd74]
sql/sql_audit.h:168(mysql_audit_general)[0x555772fd1319]
sql/sql_parse.cc:1366(do_command(THD*))[0x555772fd28e2]
sql/sql_connect.cc:1398(do_handle_one_connection(CONNECT*))[0x5557730b641c]
sql/sql_connect.cc:1303(handle_one_connection)[0x5557730b6584]
perfschema/pfs.cc:1865(pfs_spawn_thread)[0x5557734141c4]
nptl/pthread_create.c:333(start_thread)[0x7f793cf28494]
x86_64/clone.S:99(clone)[0x7f793aef093f]
{noformat}
The warning is produced twice upon execution of the test case above.
No failure on debug or debug-ASAN builds.
No failure with limited key length.
Not applicable to 10.3 because of the unlimited key length.
|
Michael Widenius
made changes -
issue.field.resolutiondate
|
2019-04-19 11:41:48.0
|
2019-04-19 11:41:48.394
|
Michael Widenius
made changes -
Component/s
|
|
Debug
[ 14208
]
|
Component/s
|
Data types
[ 13906
]
|
|
Fix Version/s
|
|
10.4.5
[ 23311
]
|
Fix Version/s
|
10.4
[ 22408
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
Status
|
In Progress
[ 3
]
|
Closed
[ 6
]
|
Sergei Golubchik
made changes -
Workflow
|
MariaDB v3
[ 95370
]
|
MariaDB v4
[ 156071
]
|
{"report":{"fcp":865.3999996185303,"ttfb":300.8999996185303,"pageVisibility":"visible","entityId":75356,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"099d63d5-c6fb-469d-8835-64187d22c00c","navigationType":0,"readyForUser":937.7999992370605,"redirectCount":0,"resourceLoadedEnd":608.2999992370605,"resourceLoadedStart":306.5999994277954,"resourceTiming":[{"duration":28.40000057220459,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":306.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":306.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":335,"responseStart":0,"secureConnectionStart":0},{"duration":29.100000381469727,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":306.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":306.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":336,"responseStart":0,"secureConnectionStart":0},{"duration":171.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":307.0999994277954,"connectEnd":307.0999994277954,"connectStart":307.0999994277954,"domainLookupEnd":307.0999994277954,"domainLookupStart":307.0999994277954,"fetchStart":307.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":340.5,"responseEnd":478.5,"responseStart":361.29999923706055,"secureConnectionStart":307.0999994277954},{"duration":301,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":307.29999923706055,"connectEnd":307.29999923706055,"connectStart":307.29999923706055,"domainLookupEnd":307.29999923706055,"domainLookupStart":307.29999923706055,"fetchStart":307.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":341.5999994277954,"responseEnd":608.2999992370605,"responseStart":364.0999994277954,"secureConnectionStart":307.29999923706055},{"duration":63.09999942779541,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":307.5,"connectEnd":307.5,"connectStart":307.5,"domainLookupEnd":307.5,"domainLookupStart":307.5,"fetchStart":307.5,"redirectEnd":0,"redirectStart":0,"requestStart":343.19999980926514,"responseEnd":370.5999994277954,"responseStart":366,"secureConnectionStart":307.5},{"duration":63.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":307.5999994277954,"connectEnd":307.5999994277954,"connectStart":307.5999994277954,"domainLookupEnd":307.5999994277954,"domainLookupStart":307.5999994277954,"fetchStart":307.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":345,"responseEnd":370.69999980926514,"responseStart":367,"secureConnectionStart":307.5999994277954},{"duration":63.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":307.69999980926514,"connectEnd":307.69999980926514,"connectStart":307.69999980926514,"domainLookupEnd":307.69999980926514,"domainLookupStart":307.69999980926514,"fetchStart":307.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":345.3999996185303,"responseEnd":371.0999994277954,"responseStart":368.29999923706055,"secureConnectionStart":307.69999980926514},{"duration":34.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":308.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":308.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":342.79999923706055,"responseStart":0,"secureConnectionStart":0},{"duration":69.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":308.19999980926514,"connectEnd":308.19999980926514,"connectStart":308.19999980926514,"domainLookupEnd":308.19999980926514,"domainLookupStart":308.19999980926514,"fetchStart":308.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":351.79999923706055,"responseEnd":377.8999996185303,"responseStart":375.5,"secureConnectionStart":308.19999980926514},{"duration":36.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":308.29999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":308.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":344.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":69.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":308.5999994277954,"connectEnd":308.5999994277954,"connectStart":308.5999994277954,"domainLookupEnd":308.5999994277954,"domainLookupStart":308.5999994277954,"fetchStart":308.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":352.3999996185303,"responseEnd":378.0999994277954,"responseStart":376.5,"secureConnectionStart":308.5999994277954},{"duration":278.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":309.5999994277954,"connectEnd":309.5999994277954,"connectStart":309.5999994277954,"domainLookupEnd":309.5999994277954,"domainLookupStart":309.5999994277954,"fetchStart":309.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":363.8999996185303,"responseEnd":587.7999992370605,"responseStart":583.7999992370605,"secureConnectionStart":309.5999994277954},{"duration":291.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":313.79999923706055,"connectEnd":313.79999923706055,"connectStart":313.79999923706055,"domainLookupEnd":313.79999923706055,"domainLookupStart":313.79999923706055,"fetchStart":313.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":387.5999994277954,"responseEnd":605.0999994277954,"responseStart":601.3999996185303,"secureConnectionStart":313.79999923706055},{"duration":134,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":619,"connectEnd":619,"connectStart":619,"domainLookupEnd":619,"domainLookupStart":619,"fetchStart":619,"redirectEnd":0,"redirectStart":0,"requestStart":718.2999992370605,"responseEnd":753,"responseStart":751.7999992370605,"secureConnectionStart":619}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":93,"responseStart":300,"responseEnd":306,"domLoading":304,"domInteractive":993,"domContentLoadedEventStart":993,"domContentLoadedEventEnd":1042,"domComplete":1775,"loadEventStart":1775,"loadEventEnd":1775,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":971.2999992370605},{"name":"bigPipe.sidebar-id.end","time":972},{"name":"bigPipe.activity-panel-pipe-id.start","time":972.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":974.5},{"name":"activityTabFullyLoaded","time":1056.3999996185303}],"measures":[],"correlationId":"9a9d592267ac71","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":115,"dbReadsTimeInMs":19,"dbConnsTimeInMs":30,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}