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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 18 11:15:00 +0000 2007
>Last-Modified:  Tue Dec 18 13:45:00 +0000 2007
>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
> 



>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 

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.