Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 187999 Details for
Bug 265792
>=app-text/stardict-3.0.1 sigbuses on sparc when loading cache files
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
stardict-sigbus.patch
stardict-sigbus.patch (text/plain), 1.35 KB, created by
Friedrich Oslage (RETIRED)
on 2009-04-11 18:02:47 UTC
(
hide
)
Description:
stardict-sigbus.patch
Filename:
MIME Type:
Creator:
Friedrich Oslage (RETIRED)
Created:
2009-04-11 18:02:47 UTC
Size:
1.35 KB
patch
obsolete
>diff --git a/src/lib/getuint32.h b/src/lib/getuint32.h >index 81fa4d1..ecdfc00 100644 >--- a/src/lib/getuint32.h >+++ b/src/lib/getuint32.h >@@ -1,12 +1,20 @@ > #ifndef _SD_GET_UINT32_H_ > #define _SD_GET_UINT32_H_ >+#if defined(ARM) || defined(__sparc__) >+#include <string.h> >+#endif > >-#ifdef ARM >+#if defined(ARM) || defined(__sparc__) > static inline guint32 get_uint32(const gchar *addr) > { >- guint32 result; >- memcpy(&result, addr, sizeof(guint32)); >- return result; >+ if (((addr - (char *)0) & 3) == 0) { >+ /* already aligned properly */ >+ return *reinterpret_cast<const guint32 *>(addr); >+ } else { >+ guint32 result; >+ memcpy(&result, addr, sizeof(guint32)); >+ return result; >+ } > } > #else > #define get_uint32(x) *reinterpret_cast<const guint32 *>(x) >diff --git a/src/lib/stddict.cpp b/src/lib/stddict.cpp >index 4aecdce..a237c98 100644 >--- a/src/lib/stddict.cpp >+++ b/src/lib/stddict.cpp >@@ -358,6 +358,11 @@ MapFile* cache_file::get_cache_loadfile(const gchar *filename, const std::string > > bool cache_file::load_cache(const std::string& url, const std::string& saveurl, CollateFunctions cltfunc, glong filedatasize) > { >+#if defined(ARM) || defined(__sparc__) >+ /* XXX: remove this after cache loading has been fixed to align the >+ * loaded data */ >+ return false; >+#endif > std::string oftfilename; > if (cachefiletype == CacheFileType_oft) > oftfilename=saveurl+".oft";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265792
: 187999 |
222719
|
223233