[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 <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |meissner@novell.com |ovo.novell.com | -- 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 User AxelKoellhofer@web.de added comment http://bugzilla.novell.com/show_bug.cgi?id=521020#c1 --- Comment #1 from Axel Köllhofer <AxelKoellhofer@web.de> 2009-07-10 14:28:28 MDT --- As a testcase, you can use the idesk-packages which are now available from my OBS-Repo. http://software.opensuse.org/search?baseproject=openSUSE%3A11.1&p=1&q=idesk - start a session with a minimal WM like fluxbox or IceWM (the latter should be installed by default) - copy /usr/share/idesk/dot.ideskrc to ~/.ideskrc - create a folder ~/.idesktop - copy /usr/share/idesk/default.lnk to ~/.idesktop/ - run "idesk" from a terminal - with imlib2-1.4.2-2.4 from openSUSE 11.1 OSS-repo, idesk crashes on x86_64, however, segfault is only shown when running it through "strace". - with patched imlib2 idesk starts without any problems, giving you a little icon (a house) on the top left called "Idesk". -- 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 User meissner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=521020#c2 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ast@novell.com --- Comment #2 from Marcus Meissner <meissner@novell.com> 2009-07-13 08:36:53 MDT --- i applied above patch for opensuse Factory and it cured the segfault. Maintenance, I would like to queue this (imlib2) for a planned update for 11.1,sle11. -- 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 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:planned:update -- 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 User meissner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=521020#c4 --- Comment #4 from Marcus Meissner <meissner@novell.com> 2009-07-17 06:54:53 MDT --- checked into Factory now. -- 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 http://bugzilla.novell.com/show_bug.cgi?id=521020#c5 --- Comment #5 from Marcus Meissner <meissner@novell.com> 2009-12-02 16:16:52 UTC --- submitted for sle11 sp1 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=521020 https://bugzilla.novell.com/show_bug.cgi?id=521020#c Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:planned:update |. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=521020 https://bugzilla.novell.com/show_bug.cgi?id=521020#c6 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Marcus Meissner <meissner@novell.com> 2011-07-27 10:01:45 UTC --- done -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com