NetBSD Problem Report #48229

From www@NetBSD.org  Sun Sep 22 07:59:30 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id DFE24725EA
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 22 Sep 2013 07:59:29 +0000 (UTC)
Message-Id: <20130922075928.B5B5A725EB@mollari.NetBSD.org>
Date: Sun, 22 Sep 2013 07:59:28 +0000 (UTC)
From: elykdav@gmail.com
Reply-To: elykdav@gmail.com
To: gnats-bugs@NetBSD.org
Subject: pkg_add sometimes hangs in mpool_get (Linux, ARMv7, GCC 4.8.1)
X-Send-Pr-Version: www-1.0

>Number:         48229
>Category:       pkg
>Synopsis:       pkg_add sometimes hangs in mpool_get (Linux, ARMv7, GCC 4.8.1)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    linux-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 22 08:00:01 +0000 2013
>Closed-Date:    Sat Jan 06 17:20:33 +0000 2024
>Last-Modified:  Sat Jan 06 17:20:33 +0000 2024
>Originator:     Kyle Davis
>Release:        2013Q2
>Organization:
>Environment:
Linux mizar 3.4.61-sunxi-5dda514 #3 PREEMPT Sun Sep 15 00:03:14 PDT 2013 armv7l GNU/Linux
>Description:
On some occasions, pkg_add will hang indefinitely. Inspection with gdb shows that it hangs in mpool_get, possibly in the loop inside mpool_look, although I couldn't get that information.
>How-To-Repeat:
It seems to happen at the same file every time in a particular package file, although there is no pattern to it.

db4 and perl are the only packages so far that have given me problems.
>Fix:
In order to attempt to find more information about the problem, I recompiled pkg_install and libnbcompat with -O0 and -g3, the problem seems to have disappeared after that. This is merely a workaround although it may point to what the problem actually is.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->agc
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Sun, 22 Sep 2013 15:55:16 +0000
Responsible-Changed-Why:
Over to maintainer.


Responsible-Changed-From-To: agc->linux-pkg-people
Responsible-Changed-By: agc@NetBSD.org
Responsible-Changed-When: Thu, 06 Feb 2014 21:29:09 +0000
Responsible-Changed-Why:
over to linux-pkg-people


State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 06 Jan 2024 17:20:33 +0000
State-Changed-Why:
This bug is over 10 years old. It sounds like a miscompile
with gcc 4.8.

Assume fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.