NetBSD Problem Report #44931
From www@NetBSD.org Wed May 4 01:05:35 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 26A1063C2A2
for <gnats-bugs@gnats.NetBSD.org>; Wed, 4 May 2011 01:05:35 +0000 (UTC)
Message-Id: <20110504010534.6EC1D63BBEC@www.NetBSD.org>
Date: Wed, 4 May 2011 01:05:34 +0000 (UTC)
From: emilianogavilan@gmail.com
Reply-To: emilianogavilan@gmail.com
To: gnats-bugs@NetBSD.org
Subject: graphics/imlib2 crashes on amd64
X-Send-Pr-Version: www-1.0
>Number: 44931
>Category: pkg
>Synopsis: graphics/imlib2 crashes on amd64
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 04 01:10:00 +0000 2011
>Closed-Date: Tue Sep 27 08:42:45 +0000 2011
>Last-Modified: Tue Sep 27 08:42:45 +0000 2011
>Originator: Emiliano Gavilan
>Release: 5.99.49
>Organization:
>Environment:
NetBSD beaujolais.vinotinto.com.ar 5.99.49 NetBSD 5.99.49 (GENERIC) #0: Sat Apr 23 07:48:33 UTC 2011 builds@b7.netbsd.org:/home/builds/ab/HEAD/amd64/201104230600Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Packages which depends upon graphics/imlib2 crashes under amd64. The problem is in the assembly optimization. While the package provides an option to enable such optimization, there's no way to disable it (the package will autoprobe support if not explicitly tell not to).
>How-To-Repeat:
The problem manifests on users of the library. For example sysutils/idesk
crashes on launch.
>Fix:
Real fix (on the source code) not provided.
This patch effectively disables the optimization (simply setting "PKG_OPTIONS.imlib2 = -imlib2-amd64" doesn't work, as explained above)
cvs diff: Diffing graphics/imlib2
Index: graphics/imlib2/options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/imlib2/options.mk,v
retrieving revision 1.9
diff -u -r1.9 options.mk
--- graphics/imlib2/options.mk 31 Jan 2011 10:21:41 -0000 1.9
+++ graphics/imlib2/options.mk 4 May 2011 01:00:36 -0000
@@ -20,6 +20,8 @@
.if !empty(PKG_OPTIONS:Mimlib2-amd64)
CONFIGURE_ARGS+= --enable-amd64
+.else
+CONFIGURE_ARGS+= --disable-amd64
.endif
PLIST_VARS+= x11
>Release-Note:
>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44931 CVS commit: pkgsrc/graphics/imlib2
Date: Wed, 4 May 2011 02:00:02 +0000
Module Name: pkgsrc
Committed By: obache
Date: Wed May 4 02:00:02 UTC 2011
Modified Files:
pkgsrc/graphics/imlib2: options.mk
Log Message:
exactly disable MMX/AMD64 optimization if pkg option is off.
part of PR#44931.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/graphics/imlib2/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: adam@NetBSD.org
State-Changed-When: Tue, 27 Sep 2011 08:42:45 +0000
State-Changed-Why:
The problem has been fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.