10.0/sql/protocol.cc:522: void Protocol::end_statement(): Assertion `0' failed.
|
150424 18:45:26 [ERROR] mysqld got signal 6 ;
|
|
#6 0x00007f1cfb0c2311 in *__GI___assert_fail (assertion=0xee5f70 "0", file=<optimized out>, line=522, function=0xee7480 "void Protocol::end_statement()") at assert.c:81
|
#7 0x00000000005d36ab in Protocol::end_statement (this=0x7f1ce2bf85f8) at 10.0/sql/protocol.cc:522
|
#8 0x000000000067af47 in dispatch_command (command=COM_QUERY, thd=0x7f1ce2bf8070, packet=0x7f1ce2a18071 "CREATE VIEW v12 AS SELECT 1", packet_length=27) at 10.0/sql/sql_parse.cc:1721
|
#9 0x0000000000678eaf in do_command (thd=0x7f1ce2bf8070) at 10.0/sql/sql_parse.cc:996
|
#10 0x00000000007966bf in do_handle_one_connection (thd_arg=0x7f1ce2bf8070) at 10.0/sql/sql_connect.cc:1375
|
#11 0x0000000000796412 in handle_one_connection (arg=0x7f1ce2bf8070) at 10.0/sql/sql_connect.cc:1289
|
#12 0x00007f1cfcebcb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#13 0x00007f1cfb17295d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
Perl testcase
|
# It assumes the debug server is running on port 3306.
|
# All default options are enough
|
|
use DBD::mysql;
|
use Carp;
|
|
my $pid = fork();
|
|
if ($pid) {
|
sleep 1;
|
my $dbh = DBI->connect("dbi:mysql:host=127.0.0.1:port=3306:user=root:database=test", undef, undef, { RaiseError => 1 } );
|
foreach (1..100) {
|
$dbh->do("CREATE OR REPLACE VIEW v AS SELECT 1");
|
}
|
$dbh->do("shutdown");
|
print "All done.\n";
|
}
|
elsif ($pid == 0) {
|
my $dbh = DBI->connect("dbi:mysql:host=127.0.0.1:port=3306:user=root:database=test", undef, undef, { RaiseError => 1 } );
|
sleep 2;
|
croak "$$ Aborting now";
|
}
|
|
else {
|
die "Could not fork";
|
}
|
Apparently the problem appeared in 10.0 tree with the following revision:
commit 919443f7a553534de38d40a5cdf50cd3660ace1a
|
Author: Sergei Golubchik <sergii@pisem.net>
|
Date: Mon Jan 19 16:11:48 2015 +0100
|
|
MDEV-5679 MariaDB holds stdin open after startup as mysqld
|
|
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
|
index e0eaf55..7138027 100644
|
--- a/sql/mysqld.cc
|
+++ b/sql/mysqld.cc
|
@@ -5527,6 +5527,7 @@ int mysqld_main(int argc, char **argv)
|
(char*) "" : mysqld_unix_port),
|
mysqld_port,
|
MYSQL_COMPILATION_COMMENT);
|
+ fclose(stdin);
|
#if defined(_WIN32) && !defined(EMBEDDED_LIBRARY)
|
Service.SetRunning();
|
#endif
|
Same happens on CREATE TRIGGER.
{"report":{"fcp":1022,"ttfb":308.2000000476837,"pageVisibility":"visible","entityId":51061,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"19e3c714-31b9-42b6-9c84-d8f87fddf838","navigationType":0,"readyForUser":1085.1000000238419,"redirectCount":0,"resourceLoadedEnd":1203.3999999761581,"resourceLoadedStart":316.60000002384186,"resourceTiming":[{"duration":201.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":316.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":517.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":201.20000004768372,"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":316.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":518.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":253,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":317.10000002384186,"connectEnd":317.10000002384186,"connectStart":317.10000002384186,"domainLookupEnd":317.10000002384186,"domainLookupStart":317.10000002384186,"fetchStart":317.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":317.10000002384186,"responseEnd":570.1000000238419,"responseStart":570.1000000238419,"secureConnectionStart":317.10000002384186},{"duration":312.60000002384186,"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":317.5,"connectEnd":317.5,"connectStart":317.5,"domainLookupEnd":317.5,"domainLookupStart":317.5,"fetchStart":317.5,"redirectEnd":0,"redirectStart":0,"requestStart":317.5,"responseEnd":630.1000000238419,"responseStart":630.1000000238419,"secureConnectionStart":317.5},{"duration":315.89999997615814,"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":317.7000000476837,"connectEnd":317.7000000476837,"connectStart":317.7000000476837,"domainLookupEnd":317.7000000476837,"domainLookupStart":317.7000000476837,"fetchStart":317.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":317.7000000476837,"responseEnd":633.6000000238419,"responseStart":633.6000000238419,"secureConnectionStart":317.7000000476837},{"duration":316.2999999523163,"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":317.7000000476837,"connectEnd":317.7000000476837,"connectStart":317.7000000476837,"domainLookupEnd":317.7000000476837,"domainLookupStart":317.7000000476837,"fetchStart":317.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":317.7000000476837,"responseEnd":634,"responseStart":634,"secureConnectionStart":317.7000000476837},{"duration":316.5,"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":317.8000000715256,"connectEnd":317.8000000715256,"connectStart":317.8000000715256,"domainLookupEnd":317.8000000715256,"domainLookupStart":317.8000000715256,"fetchStart":317.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":317.8000000715256,"responseEnd":634.3000000715256,"responseStart":634.3000000715256,"secureConnectionStart":317.8000000715256},{"duration":316.8000000715256,"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":317.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":317.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":634.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":317,"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":318.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":318.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":635.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":316.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":318.10000002384186,"connectEnd":318.10000002384186,"connectStart":318.10000002384186,"domainLookupEnd":318.10000002384186,"domainLookupStart":318.10000002384186,"fetchStart":318.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":318.10000002384186,"responseEnd":634.7000000476837,"responseStart":634.7000000476837,"secureConnectionStart":318.10000002384186},{"duration":317,"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":318.3000000715256,"connectEnd":318.3000000715256,"connectStart":318.3000000715256,"domainLookupEnd":318.3000000715256,"domainLookupStart":318.3000000715256,"fetchStart":318.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":318.3000000715256,"responseEnd":635.3000000715256,"responseStart":635.3000000715256,"secureConnectionStart":318.3000000715256},{"duration":465.1999999284744,"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":324.3000000715256,"connectEnd":324.3000000715256,"connectStart":324.3000000715256,"domainLookupEnd":324.3000000715256,"domainLookupStart":324.3000000715256,"fetchStart":324.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":324.3000000715256,"responseEnd":789.5,"responseStart":789.5,"secureConnectionStart":324.3000000715256},{"duration":877.2999999523163,"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":326.10000002384186,"connectEnd":326.10000002384186,"connectStart":326.10000002384186,"domainLookupEnd":326.10000002384186,"domainLookupStart":326.10000002384186,"fetchStart":326.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":326.10000002384186,"responseEnd":1203.3999999761581,"responseStart":1203.3999999761581,"secureConnectionStart":326.10000002384186},{"duration":422.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":780.3999999761581,"connectEnd":780.3999999761581,"connectStart":780.3999999761581,"domainLookupEnd":780.3999999761581,"domainLookupStart":780.3999999761581,"fetchStart":780.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":780.3999999761581,"responseEnd":1202.8999999761581,"responseStart":1202.8999999761581,"secureConnectionStart":780.3999999761581}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":71,"responseStart":309,"responseEnd":326,"domLoading":312,"domInteractive":1226,"domContentLoadedEventStart":1226,"domContentLoadedEventEnd":1261,"domComplete":1929,"loadEventStart":1929,"loadEventEnd":1930,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1209.3000000715256},{"name":"bigPipe.sidebar-id.end","time":1210},{"name":"bigPipe.activity-panel-pipe-id.start","time":1210.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":1212.5},{"name":"activityTabFullyLoaded","time":1266.7000000476837}],"measures":[],"correlationId":"5327dcf142e0d4","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":166,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}