From joki@jocki.domestic  Fri Apr 25 05:18:42 1997
Received: from jocki.domestic (kuebart.stuttgart.netsurf.de [194.233.216.182])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA11019
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Apr 1997 05:18:40 -0700 (PDT)
Received: (from joki@localhost)
	by jocki.domestic (8.8.5/8.8.5) id OAA00424;
	Fri, 25 Apr 1997 14:09:15 +0200 (MET DST)
Message-Id: <199704251209.OAA00424@jocki.domestic>
Date: Fri, 25 Apr 1997 14:09:15 +0200 (MET DST)
From: joa@kuebart.stuttgart.netsurf.de
Reply-To: joa@kuebart.stuttgart.netsurf.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: Problem with kaffe core dump
X-Send-Pr-Version: 3.2

>Number:         3383
>Category:       ports
>Synopsis:       kaffe core dumps if LD_LIBRARY_PATH not set
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 25 05:20:00 PDT 1997
>Closed-Date:    Sat Aug 8 17:06:12 PDT 1998
>Last-Modified:  Sat Aug  8 17:06:56 PDT 1998
>Originator:     Joachim Kuebart
>Release:        FreeBSD 2.2-RELEASE i386
>Organization:
>Environment:

LD_LIBRARY_PATH not set!

CLASSPATH=.:/usr/local/share/java/classes.zip:/usr/local/share/kaffe/biss.zip
KAFFEHOME=/usr/lcoal/share/kaffe

The problem also occurs when one or both of CLASSPATH and KAFFEHOME are NOT set.

>Description:

When LD_LIBARARY_PATH is not set to include /usr/lcoal/lib, kaffe(1) generates
a bus error and gets its core dumped.
The manpage says LD_LIBRARY_PATH only needs to be set when ld.so(1)'s default
library path doesn't include /usr/local/lib. However, the error also occurs when
this path was set using ldconfig(8) to belong to ld.so's default search path.

>How-To-Repeat:

Get a test.class file with a valid java bytecode (e.g. generated by guavac or
kaffe sun.tools.javac.Main)

Call
	kaffe test

This generates
	Bus error (core dumped)

>Fix:
	
Include the ENVIRONMENT script that comes along with kaffe anywhere in the startup
scripts and correct the manpage.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sat Aug 8 17:06:12 PDT 1998 
State-Changed-Why:  
Try the latest version of kaffe in ports.  It seems to have solved 
this problem. 
>Unformatted:
