NetBSD Problem Report #32886
From www@netbsd.org Mon Feb 20 21:37:43 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id 9E74D63B871; Mon, 20 Feb 2006 21:37:43 +0000 (UTC)
Message-Id: <20060220213743.9E74D63B871@narn.netbsd.org>
Date: Mon, 20 Feb 2006 21:37:43 +0000 (UTC)
From: Lloyd.Parkes@ird.govt.nz
Reply-To: Lloyd.Parkes@ird.govt.nz
To: gnats-bugs@netbsd.org
Subject: pkgsrc libtool makes ksh dump core on Solaris 10
X-Send-Pr-Version: www-1.0
>Number: 32886
>Category: pkg
>Synopsis: pkgsrc libtool makes ksh dump core on Solaris 10
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: rillig
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 20 21:40:00 +0000 2006
>Closed-Date: Thu Jun 01 06:55:32 +0000 2006
>Last-Modified: Tue Dec 04 17:10:01 +0000 2007
>Originator: Lloyd Parkes
>Release: N/A
>Organization:
Inland Revenue
>Environment:
SunOS XXX 5.10 Generic_118822-25 sun4u sparc SUNW,UltraAX-i2
>Description:
When building devel/gettext-tools, libtool/ksh dumps core in work/gettext-0.14.5/gettext-tools/src.
Let me know if you want a '-x' log from libtool. It will be long.
>How-To-Repeat:
cd .../pkgsrc/devel/gettext-tools
bmake
>Fix:
Edit $LOCALBASE/bin/libtool to be a /usr/bin/bash script instead of a /bin/ksh script. zsh has been tested and doesn't work.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->tv
Responsible-Changed-By: recht@netbsd.org
Responsible-Changed-When: Wed, 22 Feb 2006 07:36:54 +0000
Responsible-Changed-Why:
over to maintainer
Responsible-Changed-From-To: tv->rillig
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Sat, 25 Feb 2006 14:01:11 +0000
Responsible-Changed-Why:
I'll take it.
State-Changed-From-To: open->feedback
State-Changed-By: rillig@netbsd.org
State-Changed-When: Sat, 25 Feb 2006 14:01:11 +0000
State-Changed-Why:
Please follow the instructions in http://netbsd.org/Documentation/pkgsrc/platforms.html,
section 3.2.7.3, rebuild libtool, make clean && make. That should fix
the problem.
From: Lloyd Parkes <Lloyd.Parkes@ird.govt.nz>
To: gnats-bugs@netbsd.org
Cc: rillig@netbsd.org, tv@netbsd.org, pkgsrc-bugs@netbsd.org,
gnats-admin@netbsd.org
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Mon, 27 Feb 2006 08:45:19 +1300
rillig@netbsd.org wrote:
> Please follow the instructions in http://netbsd.org/Documentation/pkgsrc/platforms.html,
> section 3.2.7.3, rebuild libtool, make clean && make. That should fix
> the problem.
That looks like it'll work, but why doesn't the bootstrap script take
care of this for me? I get a sample mk.conf created for me, so surely
this could be put in it with the appropriate comments.
Cheers
--
Lloyd Parkes
Senior Systems Programmer
Open Systems
Ph: +64 4 803 1437
From: joerg@britannica.bec.de
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Sun, 26 Feb 2006 22:09:15 +0100
On Sat, Feb 25, 2006 at 02:01:13PM +0000, rillig@netbsd.org wrote:
> Please follow the instructions in http://netbsd.org/Documentation/pkgsrc/platforms.html,
> section 3.2.7.3, rebuild libtool, make clean && make. That should fix
> the problem.
Does shells/pdksh or so work well enough that it could be added as
bootstrap tool and as default shell for pkgsrc? It was used as bootstrap
tool for buildlink2 according to its history before :-)
Joerg
From: Lloyd Parkes <Lloyd.Parkes@ird.govt.nz>
To: gnats-bugs@netbsd.org
Cc: rillig@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Mon, 27 Feb 2006 11:21:00 +1300
joerg@britannica.bec.de wrote:
> Does shells/pdksh or so work well enough that it could be added as
> bootstrap tool and as default shell for pkgsrc?
Probably, but I would prefer to keep the bootstrap is simple as possible
and the Solaris bash seems to work fine.
I'm trying to get the rest of my team here to use pkgsrc on Solaris for
all of our package building requirements and so I want to keep the
bootstrap as minimal as possible.
Cheers
--
Lloyd Parkes
Senior Systems Programmer
Open Systems
Ph: +64 4 803 1437
From: joerg@britannica.bec.de
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Sun, 26 Feb 2006 23:28:56 +0100
On Sun, Feb 26, 2006 at 10:25:02PM +0000, Lloyd Parkes wrote:
> joerg@britannica.bec.de wrote:
> > Does shells/pdksh or so work well enough that it could be added as
> > bootstrap tool and as default shell for pkgsrc?
>
> Probably, but I would prefer to keep the bootstrap is simple as possible
> and the Solaris bash seems to work fine.
The problem with bash is that it is sometimes not behaving and that it
is not very light-weight either. Given that this shell would be used a
lot, having a small / fast shell can make more sense.
Joerg
From: john heasley <heas@shrubbery.net>
To: Lloyd Parkes <Lloyd.Parkes@ird.govt.nz>
Cc: gnats-bugs@netbsd.org, rillig@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Mon, 27 Feb 2006 13:21:25 -0800
Mon, Feb 27, 2006 at 11:21:00AM +1300, Lloyd Parkes:
> joerg@britannica.bec.de wrote:
> > Does shells/pdksh or so work well enough that it could be added as
> > bootstrap tool and as default shell for pkgsrc?
>
> Probably, but I would prefer to keep the bootstrap is simple as possible
> and the Solaris bash seems to work fine.
In case its useful to anyone... I ran into problems w/ pdksh on solaris 9
when built 64-bit for use with, among other things, libtool. It's internal
memory "pool" management has a bug. I've been meaning to track down the
error but reducing ICELLS in alloc.c to 0, such that it always mallocs
instead of carving from a pool, the bug is avoided.
From: Lloyd Parkes <Lloyd.Parkes@ird.govt.nz>
To: gnats-bugs@netbsd.org
Cc: rillig@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Mon, 06 Mar 2006 09:53:07 +1300
joerg@britannica.bec.de wrote:
> The problem with bash is that it is sometimes not behaving and that it
> is not very light-weight either.
I was a bit worried about that, so I gave libtool driven by bash a bit
of a work over and it seemed to build pkgsrc stuff as quick as ksh and
it didn't crash or exhibit any odd behaviour.
Cheers
--
Lloyd Parkes
Senior Systems Programmer
Open Systems
Ph: +64 4 803 1437
State-Changed-From-To: feedback->open
State-Changed-By: grant@netbsd.org
State-Changed-When: Mon, 06 Mar 2006 09:35:20 +0000
State-Changed-Why:
no longer in feedback state.
From: grant beattie <grant@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: rillig@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org, Lloyd.Parkes@ird.govt.nz
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Mon, 6 Mar 2006 20:37:40 +1100
On Sun, Mar 05, 2006 at 08:55:02PM +0000, Lloyd Parkes wrote:
> I was a bit worried about that, so I gave libtool driven by bash a bit
> of a work over and it seemed to build pkgsrc stuff as quick as ksh and
> it didn't crash or exhibit any odd behaviour.
this is, at best, a workaround, and the real problem still needs to be
fixed. even a temporary fix would be good, maybe install libtool to run
with bash, as awful as that may be. :)
grant.
From: grant beattie <grant@NetBSD.org>
To: rillig@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org, Lloyd.Parkes@ird.govt.nz
Cc:
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Wed, 8 Mar 2006 11:05:13 +1100
this does not seem to break when libtool uses /bin/sh on Solaris 10.
as libtool is written in portable sh(1), at least one "fix" is to
override CONFIG_SHELL in libtool for Solaris.
I will do this unless there is any objection.
From: Lloyd Parkes <Lloyd.Parkes@ird.govt.nz>
To: grant beattie <grant@NetBSD.org>
Cc: rillig@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Wed, 08 Mar 2006 14:08:17 +1300
grant beattie wrote:
> this does not seem to break when libtool uses /bin/sh on Solaris 10.
> as libtool is written in portable sh(1), at least one "fix" is to
> override CONFIG_SHELL in libtool for Solaris.
>
> I will do this unless there is any objection.
>
I'm fine with this. I had assumed that because ksh is used, /bin/sh had
already been found wanting.
By the way, I have reproduced the problem on Solaris 9 as well as
Solaris 10.
Cheers
--
Lloyd Parkes
Senior Systems Programmer
Open Systems
Ph: +64 4 803 1437
From: grant beattie <grant@NetBSD.org>
To: Lloyd Parkes <Lloyd.Parkes@ird.govt.nz>
Cc: rillig@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Wed, 8 Mar 2006 13:03:57 +1100
On Wed, Mar 08, 2006 at 02:08:17PM +1300, Lloyd Parkes wrote:
> I'm fine with this. I had assumed that because ksh is used, /bin/sh had
> already been found wanting.
>
> By the way, I have reproduced the problem on Solaris 9 as well as
> Solaris 10.
yeah, I figured it affected more than Solaris 10, but 10 and Nevada
are all I have readily available right now. I need to reinstall 2.6,
7, 8 and 9 on my laptop :)
can you confirm that using /bin/sh for libtool fixes this on Solaris
9?
grant.
From: grant beattie <grant@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/32886 CVS commit: pkgsrc/devel/libtool-base
Date: Sat, 1 Apr 2006 11:21:42 +0000 (UTC)
Module Name: pkgsrc
Committed By: grant
Date: Sat Apr 1 11:21:42 UTC 2006
Modified Files:
pkgsrc/devel/libtool-base: Makefile
Log Message:
use /bin/sh on Solaris, as libtool can cause ksh to dump core under
certain circumstances, observed devel/gettext-tools.
fixes PR pkg/32886 from Lloyd Parkes.
bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -r1.77 -r1.78 pkgsrc/devel/libtool-base/Makefile
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: rillig@netbsd.org
State-Changed-When: Thu, 01 Jun 2006 06:55:32 +0000
State-Changed-Why:
It's fixed. Thanks for the PR.
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
To: grant@NetBSD.org, Lloyd.Parkes@ird.govt.nz
Cc: rillig@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Thu, 1 Jun 2006 09:44:48 +0200 (CEST)
> From: Lloyd Parkes <Lloyd.Parkes@ird.govt.nz>
> User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716)
>
> grant beattie wrote:
> > this does not seem to break when libtool uses /bin/sh on Solaris 10.
> > as libtool is written in portable sh(1), at least one "fix" is to
> > override CONFIG_SHELL in libtool for Solaris.
> >
> > I will do this unless there is any objection.
> >
>
> I'm fine with this. I had assumed that because ksh is used, /bin/sh had
> already been found wanting.
>
> By the way, I have reproduced the problem on Solaris 9 as well as
> Solaris 10.
>
I have set WRAPPER_SHELL=/bin/bash in mk.conf and work fine for me.
Gilles
From: Idar Tollefsen <idart@performancedesign.no>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Tue, 04 Dec 2007 15:46:30 +0100
This is a multi-part message in MIME format.
--------------050104020003020109060900
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
/bin/sh has the exact same problem as originally described for /bin/ksh;
it makes libtool coredump when building gettext-tools. Please reopen
this PR.
uname -a:
SunOS x1.andhoy.no 5.10 Generic_118855-14 i86pc i386 i86pc
devel/libtools-base:
libtool-base-1.5.24nb5
devel/gettext-tools:
gettext-tools-0.14.6nb1
Using /bin/bash, as suggested earlier, works. I've attached a patch that
replaces /bin/sh from the earlier patch with /bin/bash.
- Idar
--------------050104020003020109060900
Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
name="Makefile.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Makefile.diff"
--- Makefile.orig Sun Oct 7 14:32:00 2007
+++ Makefile Tue Dec 4 14:47:17 2007
@@ -58,7 +58,7 @@
.elif ${OPSYS} == "SunOS"
# force the use of /bin/sh on Solaris because under some conditions,
# it causes ksh to dump core; see PR pkg/32886.
-CONFIG_SHELL= /bin/sh
+CONFIG_SHELL= /bin/bash
.endif
--------------050104020003020109060900--
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/32886 (pkgsrc libtool makes ksh dump core on Solaris 10)
Date: Tue, 4 Dec 2007 18:05:32 +0100
On Tue, Dec 04, 2007 at 04:50:02PM +0000, Idar Tollefsen wrote:
> /bin/sh has the exact same problem as originally described for /bin/ksh;
> it makes libtool coredump when building gettext-tools. Please reopen
> this PR.
Please try /usr/xpg4/bin/sh.
Joerg
>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.