NetBSD Problem Report #33373
From www@netbsd.org Wed Apr 26 16:59:35 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id 43F2663B8F0; Wed, 26 Apr 2006 16:59:35 +0000 (UTC)
Message-Id: <20060426165935.43F2663B8F0@narn.netbsd.org>
Date: Wed, 26 Apr 2006 16:59:35 +0000 (UTC)
From: jfranz@bsdprojects.net
Reply-To: jfranz@bsdprojects.net
To: gnats-bugs@netbsd.org
Subject: games/cgoban-java: It's wrapper script ought to use /usr/pkg/bin/java or /usr/pkg/bin/sun15-java instead of calling the Java binary directly.
X-Send-Pr-Version: www-1.0
>Number: 33373
>Category: pkg
>Synopsis: games/cgoban-java: It's wrapper script ought to use /usr/pkg/bin/java or /usr/pkg/bin/sun15-java instead of calling the Java binary directly.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: rh
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 26 17:00:00 +0000 2006
>Closed-Date: Fri May 25 02:46:58 +0000 2007
>Last-Modified: Fri May 25 02:46:58 +0000 2007
>Originator: Johann Franz
>Release: Netbsd-3.0 RELEASE Dec. 15. 2005
>Organization:
Entirely unorganized.
>Environment:
NetBSD marvin 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005 builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
While trying to start the program games/cgoban2 I found it only runs when ulimit -d is set to the hard-limit given by -H.
The problem seems to be that cgoban2 doesn't know about pkg_alternatives. but rather directly calls /usr/pkg/java/sun-1.5/bin/java as it is configured through the Makefile, thus not setting ulimit -d `ulimit -H -d` before calling the java binary.
The last 3 error lines:
marvin% cgoban-java
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
marvin%
>How-To-Repeat:
1. Install games/cgoban-java (using lang/sun-jdk1.5 or maybe another version).
2. Start /usr/pkg/bin/cgoban-java.
>Fix:
Change pkgsrc/games/cgoban-java/Makefile so it makes the cgoban-java wrapper script use either /usr/pkg/bin/java or /usr/pkg/bin/sun15-java instead /usr/pkg/java/sun-1.5/bin/java binary. Thanks
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->rh
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Wed, 26 Apr 2006 20:19:32 +0000
Responsible-Changed-Why:
Over to maintainer.
From: Rene Hexel <rh@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/33373 CVS commit: pkgsrc/games/cgoban-java
Date: Fri, 25 May 2007 02:41:26 +0000 (UTC)
Module Name: pkgsrc
Committed By: rh
Date: Fri May 25 02:41:26 UTC 2007
Modified Files:
pkgsrc/games/cgoban-java: Makefile
Log Message:
Don't use the java executable directly in the cgoban-java script. Use the
corresponding wrapper script instead to make sure environment variables
and limits are set correctly. Fixes PR pkg/33373 by jfranz at bsdprojects
dot net.
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -r1.38 -r1.39 pkgsrc/games/cgoban-java/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: rh@netbsd.org
State-Changed-When: Fri, 25 May 2007 02:46:58 +0000
State-Changed-Why:
Fixed in cgoban-java-3.3.17nb1
>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.