NetBSD Problem Report #37559

From martin@duskware.de  Tue Dec 18 11:12:30 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id C442263B8A2
	for <gnats-bugs@gnats.netbsd.org>; Tue, 18 Dec 2007 11:12:29 +0000 (UTC)
Message-Id: <20071218111105.4607F63B8A2@narn.NetBSD.org>
Date: Tue, 18 Dec 2007 11:11:05 +0000 (UTC)
From: sfandino@yahoo.com
Reply-To: sfandino@yahoo.com
To: netbsd-bugs-owner@NetBSD.org
Subject: icewm coredumps in sparc64
X-Send-Pr-Version: www-1.0

>Number:         37559
>Category:       pkg
>Synopsis:       icewm coredumps in sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 18 11:15:00 +0000 2007
>Closed-Date:    Sat Oct 01 20:42:03 +0000 2016
>Last-Modified:  Sat Oct 01 20:45:01 +0000 2016
>Originator:     Salvador Fandino
>Release:        4.0_RC5
>Organization:
>Environment:
NetBSD boletus.int.qindel.com 4.0_RC5 NetBSD 4.0_RC5 (SUNBLADE100) #3: Mon Dec 10 16:36:36 CET 2007  root@:/usr/src/sys/arch/sparc64/compile/SUNBLADE100 sparc64


>Description:
IceWM coredumps in sparc64

compiling it with gcc optimization disabled solves the problem

>How-To-Repeat:

>Fix:

applying the following patch to the package pkgsrc Makefile solves the problem:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/wm/icewm/Makefile,v
retrieving revision 1.38
diff -r1.38 Makefile
11a12,15
> COPTS+=-O0
> CXXFLAGS+=-O0
> LDOPTS+=-O0
> 



>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/37559: icewm coredumps in sparc64
Date: Tue, 18 Dec 2007 12:37:44 +0100

 On Tue, Dec 18, 2007 at 11:15:00AM +0000, sfandino@yahoo.com wrote:
 > applying the following patch to the package pkgsrc Makefile solves the problem:

 Please do not paper over the problem but fix the application bugs instead.
 Compiling it with -g and using gdb on the core should tell you where it
 dies.

 Thanks,

 Martin

From: Salvador Fandino <sfandino@yahoo.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/37559: icewm coredumps in sparc64
Date: Tue, 18 Dec 2007 03:54:15 -0800 (PST)

 Hi,

 >  Please do not paper over the problem but fix the application
 > bugs instead.
 >
 >  Compiling it with -g and using gdb on the core should tell you
 > whereit dies.


 The error happens inside registerProtocols2 in file wmapp.cc, line 238.

 I can't see any problem in the code, and as it works when the compiler optimizations are disabled, I guest it is a gcc bug. Unfortunatelly, I don't have enough knowledge about SPARC assembler and ABI to follow the generated code.

 Cheers

 - Salva



       ____________________________________________________________________________________
 Be a better friend, newshound, and 
 know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

State-Changed-From-To: open->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Sat, 01 Oct 2016 20:42:03 +0000
State-Changed-Why:
>  The error happens inside registerProtocols2 in file wmapp.cc, line 238.

this was right.  the problem was passing the address of a pid_t to a
function requiring at least long alignment.  i've fixed this and it
now runs for me.


From: "matthew green" <mrg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/37559 CVS commit: pkgsrc/wm/icewm
Date: Sat, 1 Oct 2016 20:40:07 +0000

 Module Name:	pkgsrc
 Committed By:	mrg
 Date:		Sat Oct  1 20:40:06 UTC 2016

 Modified Files:
 	pkgsrc/wm/icewm: Makefile.common distinfo
 Added Files:
 	pkgsrc/wm/icewm/patches: patch-src_wmapp.cc

 Log Message:
 fix unaligned issues on sparc64: don't pass pid_t, but a long, to
 XChangeProperty().  PR#37559

 bump revision.


 To generate a diff of this commit:
 cvs rdiff -u -r1.68 -r1.69 pkgsrc/wm/icewm/Makefile.common
 cvs rdiff -u -r1.40 -r1.41 pkgsrc/wm/icewm/distinfo
 cvs rdiff -u -r0 -r1.1 pkgsrc/wm/icewm/patches/patch-src_wmapp.cc

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.