diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-10-28 12:04:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-10-28 12:35:37 +0000 |
commit | 90f4f481265cfee0f315cb96d173ca84a59ed074 (patch) | |
tree | cac70f67840fff408b2b3d5b0403d18042c08026 /main | |
parent | a6f59ca45662d5bf74284feaba69583d00d1ebc1 (diff) | |
download | aports-90f4f481265cfee0f315cb96d173ca84a59ed074.tar.bz2 aports-90f4f481265cfee0f315cb96d173ca84a59ed074.tar.xz |
main/mariadb: upgrade to 10.1.18
Diffstat (limited to 'main')
-rw-r--r-- | main/mariadb/0001-Revert-MDEV-9127-Crash-reporter-often-fails-to-show-.patch | 149 | ||||
-rw-r--r-- | main/mariadb/APKBUILD | 20 | ||||
-rw-r--r-- | main/mariadb/mariadb-10.0.18-MDEV-8115.patch | 61 |
3 files changed, 8 insertions, 222 deletions
diff --git a/main/mariadb/0001-Revert-MDEV-9127-Crash-reporter-often-fails-to-show-.patch b/main/mariadb/0001-Revert-MDEV-9127-Crash-reporter-often-fails-to-show-.patch deleted file mode 100644 index 935bb81d4d..0000000000 --- a/main/mariadb/0001-Revert-MDEV-9127-Crash-reporter-often-fails-to-show-.patch +++ /dev/null @@ -1,149 +0,0 @@ -From dfa91fac7ecddd8b2c4c6459cc69396f5ec7e0a5 Mon Sep 17 00:00:00 2001 -From: Carlo Landmeter <clandmeter@gmail.com> -Date: Tue, 9 Aug 2016 21:48:38 +0200 -Subject: [PATCH] Revert "[MDEV-9127] Crash reporter often fails to show the - query that crashed" - -This reverts commit 7d4a7d8c5861e6587176052ea71c30ab12a49084. ---- - include/my_stacktrace.h | 2 +- - mysys/stacktrace.c | 30 ++++-------------------------- - sql/signal_handler.cc | 23 +---------------------- - 3 files changed, 6 insertions(+), 49 deletions(-) - -diff --git a/include/my_stacktrace.h b/include/my_stacktrace.h -index fad6e53..fb2525e 100644 ---- a/include/my_stacktrace.h -+++ b/include/my_stacktrace.h -@@ -45,7 +45,7 @@ C_MODE_START - #if defined(HAVE_STACKTRACE) || defined(HAVE_BACKTRACE) - void my_init_stacktrace(); - void my_print_stacktrace(uchar* stack_bottom, ulong thread_stack); --int my_safe_print_str(const char* val, int max_len); -+void my_safe_print_str(const char* val, int max_len); - void my_write_core(int sig); - #if BACKTRACE_DEMANGLE - char *my_demangle(const char *mangled_name, int *status); -diff --git a/mysys/stacktrace.c b/mysys/stacktrace.c -index 3956592..4cc767f 100644 ---- a/mysys/stacktrace.c -+++ b/mysys/stacktrace.c -@@ -129,32 +129,13 @@ static int safe_print_str(const char *addr, int max_len) - - #endif - --/* -- Attempt to print a char * pointer as a string. -- -- SYNOPSIS -- Prints either until the end of string ('\0'), or max_len characters have -- been printed. -- -- RETURN VALUE -- 0 Pointer was within the heap address space. -- The string was printed fully, or until the end of the heap address space. -- 1 Pointer is outside the heap address space. Printed as invalid. -- -- NOTE -- On some systems, we can have valid pointers outside the heap address space. -- This is through the use of mmap inside malloc calls. When this function -- returns 1, it does not mean 100% that the pointer is corrupted. --*/ -- --int my_safe_print_str(const char* val, int max_len) -+void my_safe_print_str(const char* val, int max_len) - { - char *heap_end; - - #ifdef __linux__ -- // Try and make use of /proc filesystem to safely print memory contents. - if (!safe_print_str(val, max_len)) -- return 0; -+ return; - #endif - - heap_end= (char*) sbrk(0); -@@ -162,14 +143,12 @@ int my_safe_print_str(const char* val, int max_len) - if (!PTR_SANE(val)) - { - my_safe_printf_stderr("%s", "is an invalid pointer"); -- return 1; -+ return; - } - - for (; max_len && PTR_SANE(val) && *val; --max_len) - my_write_stderr((val++), 1); - my_safe_printf_stderr("%s", "\n"); -- -- return 0; - } - - #if defined(HAVE_PRINTSTACK) -@@ -748,7 +727,7 @@ void my_write_core(int unused) - } - - --int my_safe_print_str(const char *val, int len) -+void my_safe_print_str(const char *val, int len) - { - __try - { -@@ -758,7 +737,6 @@ int my_safe_print_str(const char *val, int len) - { - my_safe_printf_stderr("%s", "is an invalid string pointer"); - } -- return 0; - } - #endif /*__WIN__*/ - -diff --git a/sql/signal_handler.cc b/sql/signal_handler.cc -index 9dd3e53..9077b24 100644 ---- a/sql/signal_handler.cc -+++ b/sql/signal_handler.cc -@@ -65,12 +65,6 @@ extern "C" sig_handler handle_fatal_signal(int sig) - #ifdef HAVE_STACKTRACE - THD *thd; - #endif -- /* -- This flag remembers if the query pointer was found invalid. -- We will try and print the query at the end of the signal handler, in case -- we're wrong. -- */ -- bool print_invalid_query_pointer= false; - - if (segfaulted) - { -@@ -207,12 +201,7 @@ extern "C" sig_handler handle_fatal_signal(int sig) - "Some pointers may be invalid and cause the dump to abort.\n"); - - my_safe_printf_stderr("Query (%p): ", thd->query()); -- if (my_safe_print_str(thd->query(), MY_MIN(65536U, thd->query_length()))) -- { -- // Query was found invalid. We will try to print it at the end. -- print_invalid_query_pointer= true; -- } -- -+ my_safe_print_str(thd->query(), MY_MIN(65536U, thd->query_length())); - my_safe_printf_stderr("\nConnection ID (thread ID): %lu\n", - (ulong) thd->thread_id); - my_safe_printf_stderr("Status: %s\n\n", kreason); -@@ -276,16 +265,6 @@ extern "C" sig_handler handle_fatal_signal(int sig) - "\"mlockall\" bugs.\n"); - } - -- if (print_invalid_query_pointer) -- { -- my_safe_printf_stderr( -- "\nWe think the query pointer is invalid, but we will try " -- "to print it anyway. \n" -- "Query: "); -- my_write_stderr(thd->query(), MY_MIN(65536U, thd->query_length())); -- my_safe_printf_stderr("\n\n"); -- } -- - #ifdef HAVE_WRITE_CORE - if (test_flags & TEST_CORE_ON_SIGNAL) - { --- -2.9.1 - diff --git a/main/mariadb/APKBUILD b/main/mariadb/APKBUILD index 87c91a4ef1..9b79f30899 100644 --- a/main/mariadb/APKBUILD +++ b/main/mariadb/APKBUILD @@ -3,8 +3,8 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=mariadb -pkgver=10.1.17 -pkgrel=1 +pkgver=10.1.18 +pkgrel=0 pkgdesc="A fast SQL database server" url="http://www.mariadb.org" pkgusers="mysql" @@ -20,7 +20,6 @@ source="https://downloads.mariadb.org/interstitial/mariadb-$pkgver/source/mariad $pkgname.initd fix-mysql-install-db-path.patch fix-ucontext-check.patch - 0001-Revert-MDEV-9127-Crash-reporter-often-fails-to-show-.patch " subpackages="$pkgname-doc $pkgname-dev $pkgname-common @@ -181,18 +180,15 @@ mysql() { _compat mysql mariadb; } _compat_client() { _compat mysql-client mariadb-client; } _compat_bench() { _compat mysql-bench mariadb-client; } -md5sums="036aca95257cb2948dd100605ec6d5a1 mariadb-10.1.17.tar.gz +md5sums="173b88ab54bdd1fc51483b6b26bef849 mariadb-10.1.18.tar.gz 195f8bf24dfdbc5aa7ccd969a1b1283f mariadb.initd b233fb7015a9659f5b825cd8010d2b52 fix-mysql-install-db-path.patch -96b7247f919bf4e1de13a9d0ce7ef515 fix-ucontext-check.patch -d0121427fa42aa35aa23a73cebe36b0b 0001-Revert-MDEV-9127-Crash-reporter-often-fails-to-show-.patch" -sha256sums="4ca45ac5e34418761868115ebc8c068d511fed08e283b2cac52559d63ba4aab5 mariadb-10.1.17.tar.gz +96b7247f919bf4e1de13a9d0ce7ef515 fix-ucontext-check.patch" +sha256sums="d7336907e9ff44496d6453f92526b25bd253638a64a051ca879f953499873b73 mariadb-10.1.18.tar.gz c37aa7c150c07a3ac478a6fd1b478b425c17ac412f9ba4f49b8a635edb6ed542 mariadb.initd 0f4d97cc9d512fc43cdb4b2f2a6dc16b37cb72a18c7d7a3e23e11a116d119904 fix-mysql-install-db-path.patch -3d9a12bf04fcf215567b6a395fe83fb6528602baf4283d42181bd73f93b5f538 fix-ucontext-check.patch -a32d531beb7c2b716842675d0cfdede0865412f4ddd9cef4e032624821d65eea 0001-Revert-MDEV-9127-Crash-reporter-often-fails-to-show-.patch" -sha512sums="900f019ec7544e315c98aea3647988f6ec257822b116c8a986851db678dd0bf71018dde1d0c90adeaa713af12348344ffc54c292a64869d9565f3f906599396d mariadb-10.1.17.tar.gz +3d9a12bf04fcf215567b6a395fe83fb6528602baf4283d42181bd73f93b5f538 fix-ucontext-check.patch" +sha512sums="6cb9d8ae0832323eef940ee7de59ec10d23ec691c0c6af577cac2ba280ecd6300a01ec5442cb7cf3a2a3b0cd9a973d4057aa92bcc71bc914e1e18b14ad7b6a8a mariadb-10.1.18.tar.gz 06751768cb00d2e433655635c38d267ef25084a5830ff40e719ac579223c7192dc34b43f919ab6faf480094632327511cbd22456064dde2d04dc15648b9e3b9f mariadb.initd f85e96490de56aa4e6115f931bf256bef4e1b93cadbe4ac947d6abdc03072bf2d0872e0268ae37cd98edf13538ece73e9f8b6efa8133bab23168a825c5066ab1 fix-mysql-install-db-path.patch -82fa93411483f5d1b57d978087a891bcab6a011e45c2d79b08d28718f5717994b423fc81d2170dad2fe65303153ac29655a81ce5039e73e37cebb159392a86cf fix-ucontext-check.patch -ce51e596108707fae6674c522ea9aea15559f0609f7076e787708c0d04a6491d0ed9226f6c31c270626046af628b32f803733843f6e888cfd0599e05e800ba24 0001-Revert-MDEV-9127-Crash-reporter-often-fails-to-show-.patch" +82fa93411483f5d1b57d978087a891bcab6a011e45c2d79b08d28718f5717994b423fc81d2170dad2fe65303153ac29655a81ce5039e73e37cebb159392a86cf fix-ucontext-check.patch" diff --git a/main/mariadb/mariadb-10.0.18-MDEV-8115.patch b/main/mariadb/mariadb-10.0.18-MDEV-8115.patch deleted file mode 100644 index 6ada096c7e..0000000000 --- a/main/mariadb/mariadb-10.0.18-MDEV-8115.patch +++ /dev/null @@ -1,61 +0,0 @@ -From 0014bdc7eef141dcd66930e853242b3be4960831 Mon Sep 17 00:00:00 2001 -From: Sergei Golubchik <serg@mariadb.org> -Date: Thu, 7 May 2015 22:18:34 +0200 -Subject: [PATCH] MDEV-8115 mysql_upgrade crashes the server with REPAIR VIEW - -on REPAIR don't do table-specific stuff for views -(because even if the view has a temp table opened for it, -it's not opened all the way down the engine. In particular, -Aria crashes in maria_status() because MARIA_HA* info - that is -table->table->file->file - is NULL) ---- - mysql-test/r/repair.result | 7 +++++++ - mysql-test/t/repair.test | 9 +++++++++ - sql/sql_admin.cc | 2 +- - 3 files changed, 17 insertions(+), 1 deletion(-) - -diff --git a/mysql-test/r/repair.result b/mysql-test/r/repair.result -index 52ae9c3..51c3374 100644 ---- a/mysql-test/r/repair.result -+++ b/mysql-test/r/repair.result -@@ -207,3 +207,10 @@ check table t1; - Table Op Msg_type Msg_text - test.t1 check status OK - drop table t1; -+create table t1 (a blob); -+create view v1 as select * from t1; -+repair view v1; -+Table Op Msg_type Msg_text -+test.v1 repair status OK -+drop view v1; -+drop table t1; -diff --git a/mysql-test/t/repair.test b/mysql-test/t/repair.test -index 337b73f..f625965 100644 ---- a/mysql-test/t/repair.test -+++ b/mysql-test/t/repair.test -@@ -208,3 +208,12 @@ repair table t1 use_frm; - select count(*) from t1; - check table t1; - drop table t1; -+ -+# -+# MDEV-8115 mysql_upgrade crashes the server with REPAIR VIEW -+# -+create table t1 (a blob); -+create view v1 as select * from t1; -+repair view v1; -+drop view v1; -+drop table t1; -diff --git a/sql/sql_admin.cc b/sql/sql_admin.cc -index 44057b6..9827c67 100644 ---- a/sql/sql_admin.cc -+++ b/sql/sql_admin.cc -@@ -901,7 +901,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables, - break; - } - } -- if (table->table) -+ if (table->table && !table->view) - { - if (table->table->s->tmp_table) - { |