diff options
-rw-r--r-- | 000_index.txt | 6 | ||||
-rw-r--r-- | 723_all_avoid_bus_error_5.0.76.patch | 28 |
2 files changed, 34 insertions, 0 deletions
diff --git a/000_index.txt b/000_index.txt index 2799ca8..f56d45d 100644 --- a/000_index.txt +++ b/000_index.txt @@ -471,3 +471,9 @@ @pn mysql @pn mysql-community @@ Do not crash on old grant tables when GRANT is called (Gentoo #229329, MySQL #16470) + +@patch 723_all_avoid_bus_error_5.0.76.patch +@ver 5.00.72.00 to 5.00.99.99 +@pn mysql +@pn mysql-community +@@ Prevent SIGBUS on Sparc with NDB diff --git a/723_all_avoid_bus_error_5.0.76.patch b/723_all_avoid_bus_error_5.0.76.patch new file mode 100644 index 0000000..c7651e5 --- /dev/null +++ b/723_all_avoid_bus_error_5.0.76.patch @@ -0,0 +1,28 @@ +memcpy ia64 fix causes problems for sparc. + +Signed-off-by: Friedrich Oslage <bluebird@gentoo.org> +X-Patch-URL: http://bugs.gentoo.org/attachment.cgi?id=175233&action=view +Gentoo-Bug: 250880 +Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=250880 + +--- ndb/src/kernel/blocks/dbacc/DbaccMain.cpp ++++ ndb/src/kernel/blocks/dbacc/DbaccMain.cpp +@@ -11667,12 +11667,15 @@ + default: + tmp = 0; + } ++#if !defined(__sparc__) + memcpy(signal->theData, &tmp, 8); /* must be memcpy, gives strange results on + * ithanium gcc (GCC) 3.4.1 smp linux 2.4 + * otherwise + */ +- // Uint32 * src = (Uint32*)&tmp; +- // signal->theData[0] = src[0]; +- // signal->theData[1] = src[1]; ++#elif ++ Uint32 * src = (Uint32*)&tmp; ++ signal->theData[0] = src[0]; ++ signal->theData[1] = src[1]; ++#endif + } + |