rpms/mysql/devel mysql-signal-align.patch, NONE, 1.1 mysql.spec, 1.131, 1.132 mysql-sparc-gcc-bug.patch, 1.1, NONE
Tom Lane
tgl at fedoraproject.org
Sat Oct 17 21:26:59 UTC 2009
- Previous message (by thread): rpms/gtrayicon/F-12 gtrayicon-1.1-makefile.patch, NONE, 1.1 gtrayicon.spec, NONE, 1.1
- Next message (by thread): rpms/haproxy/EL-4 haproxy.logrotate, NONE, 1.1 .cvsignore, 1.14, 1.15 haproxy.spec, 1.18, 1.19 sources, 1.14, 1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: tgl
Update of /cvs/pkgs/rpms/mysql/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24013
Modified Files:
mysql.spec
Added Files:
mysql-signal-align.patch
Removed Files:
mysql-sparc-gcc-bug.patch
Log Message:
Replace kluge fix for ndbd sparc crash with a real fix (mysql bug 48132)
mysql-signal-align.patch:
dbtup/DbtupRoutines.cpp | 5 +++--
ndbfs/AsyncFile.cpp | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
--- NEW FILE mysql-signal-align.patch ---
Fix a bit of silliness; the original coding not only computes the required
size of the temp variable incorrectly, but doesn't guarantee the correct
alignment. This demonstrably leads to ndbd crashing at launch on sparc64,
and is probably bad news for performance on other 64-bit machines even
if they don't give an actual SIGBUS.
Filed upstream at http://bugs.mysql.com/bug.php?id=48132
diff -Naur mysql-5.1.39.orig/storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp mysql-5.1.39/storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp
--- mysql-5.1.39.orig/storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp 2009-09-04 12:21:18.000000000 -0400
+++ mysql-5.1.39/storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp 2009-10-17 14:24:56.000000000 -0400
@@ -1144,8 +1144,9 @@
KeyReqStruct *req_struct,
Uint32* outBuffer)
{
- Uint32 tmp[sizeof(SignalHeader)+25];
- Signal * signal = (Signal*)&tmp;
+ SignalT<25> signalT;
+ Signal *signal= (Signal*)&signalT;
+
switch(attrId){
case AttributeHeader::FRAGMENT:
* outBuffer = fragptr.p->fragmentId;
diff -Naur mysql-5.1.39.orig/storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp mysql-5.1.39/storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
--- mysql-5.1.39.orig/storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp 2009-09-04 12:21:19.000000000 -0400
+++ mysql-5.1.39/storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp 2009-10-17 14:26:21.000000000 -0400
@@ -529,8 +529,8 @@
{
off_t off = 0;
const off_t sz = request->par.open.file_size;
- Uint32 tmp[sizeof(SignalHeader)+25];
- Signal * signal = (Signal*)(&tmp[0]);
+ SignalT<25> signalT;
+ Signal *signal= (Signal*)&signalT;
FsReadWriteReq* req = (FsReadWriteReq*)signal->getDataPtrSend();
Uint32 index = 0;
Index: mysql.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mysql/devel/mysql.spec,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -p -r1.131 -r1.132
--- mysql.spec 16 Oct 2009 04:26:47 -0000 1.131
+++ mysql.spec 17 Oct 2009 21:26:58 -0000 1.132
@@ -1,6 +1,6 @@
Name: mysql
Version: 5.1.39
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: MySQL client programs and shared libraries
Group: Applications/Databases
URL: http://www.mysql.com
@@ -33,7 +33,7 @@ Patch7: mysql-plugin-bug.patch
Patch8: mysql-setschedparam.patch
Patch9: mysql-ndb-stacksize.patch
Patch10: mysql-strmov.patch
-Patch11: mysql-sparc-gcc-bug.patch
+Patch11: mysql-signal-align.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gperf, perl, readline-devel, openssl-devel
@@ -649,6 +649,9 @@ fi
%{_mandir}/man1/mysql_client_test.1*
%changelog
+* Sat Oct 17 2009 Tom Lane <tgl at redhat.com> 5.1.39-4
+- Replace kluge fix for ndbd sparc crash with a real fix (mysql bug 48132)
+
* Thu Oct 15 2009 Tom Lane <tgl at redhat.com> 5.1.39-3
- Work around two different compiler bugs on sparc, one by backing off
optimization from -O2 to -O1, and the other with a klugy patch
--- mysql-sparc-gcc-bug.patch DELETED ---
- Previous message (by thread): rpms/gtrayicon/F-12 gtrayicon-1.1-makefile.patch, NONE, 1.1 gtrayicon.spec, NONE, 1.1
- Next message (by thread): rpms/haproxy/EL-4 haproxy.logrotate, NONE, 1.1 .cvsignore, 1.14, 1.15 haproxy.spec, 1.18, 1.19 sources, 1.14, 1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list