Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 229559 Details for
Bug 315283
app-antivirus/clamav-0.96: -ftree-vectorize produces segfault at startup
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
clamav-0.96-attribute-aligned.patch
clamav-0.96-attribute-aligned.patch (text/plain), 1013 bytes, created by
steveb
on 2010-04-28 19:01:57 UTC
(
hide
)
Description:
clamav-0.96-attribute-aligned.patch
Filename:
MIME Type:
Creator:
steveb
Created:
2010-04-28 19:01:57 UTC
Size:
1013 bytes
patch
obsolete
>diff --git a/libclamav/c++/llvm/include/llvm/ADT/SmallVector.h b/libclamav/c++/llvm/include/llvm/ >index 89acefd..2953729 100644 >--- a/libclamav/c++/llvm/include/llvm/ADT/SmallVector.h >+++ b/libclamav/c++/llvm/include/llvm/ADT/SmallVector.h >@@ -57,17 +57,21 @@ protected: > // something else. An array of char would work great, but might not be > // aligned sufficiently. Instead, we either use GCC extensions, or some > // number of union instances for the space, which guarantee maximal alignment. >-#ifdef __GNUC__ >+ >+ // Don't use use attribute aligned here, because it makes the class alignof >+ // 16, and new is only guaranteed to return 8-byte aligned data (on 32-bit), >+ // leading to a crash. >+/*#ifdef __GNUC__ > typedef char U; > U FirstEl __attribute__((aligned)); >-#else >+#else*/ > union U { > double D; > long double LD; > long long L; > void *P; > } FirstEl; >-#endif >+/*#endif*/ > // Space after 'FirstEl' is clobbered, do not add any instance vars after it. > > protected:
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 Raw
Actions:
View
Attachments on
bug 315283
:
228273
|
229557
|
229559
|
229569
|
229571
|
229573