[Bug 521020] New: imlib2-1.4.2 causes segfaults on x86_64 - proposed patch
http://bugzilla.novell.com/show_bug.cgi?id=521020 Summary: imlib2-1.4.2 causes segfaults on x86_64 - proposed patch Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: AxelKoellhofer@web.de QAContact: qa@suse.de Found By: --- Created an attachment (id=304393) --> (http://bugzilla.novell.com/attachment.cgi?id=304393) proposed patch User-Agent: Opera/9.80 (X11; Linux x86_64; U; de) Presto/2.2.15 Version/10.00 The little tool idesk (probably amongst others) segfaults on x86_64 due to a bug in imlib2 if the library is compiled with "--enable-amd64". The problem has been reported for several distros http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg265361.html http://bugs.gentoo.org/show_bug.cgi?id=253619 http://bugs.archlinux.org/task/6367 and the workaround was always to set "--disable-amd64". On openSUSE 11.1 x86_64, imlib2 is compiled with "--enable-amd64" and the problem is also present. However, when compiling imlib2 from svn the problem is no longer present even when compiling with "--enable-amd64". As stated in the bugreports cited above, the reason for this behavior is in "buggy assembler code" (whatever that means) and by diffing the new sources against version 1.4.2 there are only two minimal changes which looked related to x86_64 specific code. --- src/lib/amd64_blend_cmod.S.orig 2009-07-10 12:36:42.519830688 +0200 +++ src/lib/amd64_blend_cmod.S 2009-07-10 12:36:46.071799793 +0200 @@ -11,6 +11,7 @@ /*\ Some useful masks \*/ .data + .align 16 m0X000000: .byte 0, 0, 0, 0, 0, 0, 255, 0 .byte 0, 0, 0, 0, 0, 0, 255, 0 m10000000: .byte 0, 0, 0, 0, 0, 0, 0, 1 --- src/lib/amd64_blend.S.orig 2009-07-10 12:36:42.523829520 +0200 +++ src/lib/amd64_blend.S 2009-07-10 12:36:46.075829356 +0200 @@ -11,6 +11,7 @@ /*\ Some useful masks \*/ .data + .align 16 m0X000000: .byte 0, 0, 0, 0, 0, 0, 255, 0 .byte 0, 0, 0, 0, 0, 0, 255, 0 m10000000: .byte 0, 0, 0, 0, 0, 0, 0, 1 Applying this patch to version 1.4.2 and rebuilding the src.rpm with also fixed the issue for me even with "--enable-amd64" being set. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=521020
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=521020
User AxelKoellhofer@web.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=521020#c1
--- Comment #1 from Axel Köllhofer
http://bugzilla.novell.com/show_bug.cgi?id=521020
User meissner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=521020#c2
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=521020
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=521020
User meissner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=521020#c4
--- Comment #4 from Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=521020
http://bugzilla.novell.com/show_bug.cgi?id=521020#c5
--- Comment #5 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=521020
https://bugzilla.novell.com/show_bug.cgi?id=521020#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=521020
https://bugzilla.novell.com/show_bug.cgi?id=521020#c6
Marcus Meissner
participants (1)
-
bugzilla_noreply@novell.com