From owner-freebsd-emulation@freebsd.org Fri Sep 16 17:53:32 2016 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A59CBDD53E for ; Fri, 16 Sep 2016 17:53:32 +0000 (UTC) (envelope-from dchagin@chd.heemeyer.club) Received: from heemeyer.club (heemeyer.club [108.61.204.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "heemeyer.club", Issuer "heemeyer.club" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0A32A17C for ; Fri, 16 Sep 2016 17:53:30 +0000 (UTC) (envelope-from dchagin@chd.heemeyer.club) Received: from chd.heemeyer.club (dchagin.static.corbina.ru [78.107.232.239]) by heemeyer.club (8.15.2/8.15.1) with ESMTPS id u8GHrKeZ006819 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Sep 2016 17:53:22 GMT (envelope-from dchagin@chd.heemeyer.club) X-Authentication-Warning: heemeyer.club: Host dchagin.static.corbina.ru [78.107.232.239] claimed to be chd.heemeyer.club Received: from chd.heemeyer.club (localhost [127.0.0.1]) by chd.heemeyer.club (8.15.2/8.15.1) with ESMTPS id u8GHrJZi017018 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 16 Sep 2016 20:53:19 +0300 (MSK) (envelope-from dchagin@chd.heemeyer.club) Received: (from dchagin@localhost) by chd.heemeyer.club (8.15.2/8.15.2/Submit) id u8GHrJ3m017017; Fri, 16 Sep 2016 20:53:19 +0300 (MSK) (envelope-from dchagin) Date: Fri, 16 Sep 2016 20:53:19 +0300 From: Chagin Dmitry To: Chuck Tuffli Cc: freebsd-emulation@freebsd.org Subject: Re: help debugging Oracle Java error Message-ID: <20160916175319.GA16990@chd.heemeyer.club> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2016 17:53:32 -0000 On Fri, Sep 16, 2016 at 10:31:24AM -0700, Chuck Tuffli wrote: > What's the best way to go about debugging a failure with a Java > application using the Linux JDK provided by Oracle? The application in > question uses the gradle wrapper (i.e. gradlew) to run, but throws an > java.io.IOException error ("Too many levels of symbolic links"). Note > that this runs fine on Ubuntu so the assumption is the error is > related to some interaction with the Linux emulation. The JDK comes > from an RPM provided by Oracle and was installed using the rpm2cpio > method shown in the Handbook. Running JEdit with the Oracle JDK works > without error. TIA. > > --chuck > > $ uname -mrsv > FreeBSD 12.0-CURRENT FreeBSD 12.0-CURRENT #8 a212210(drm-next-4.7): > Tue Sep 6 12:20:35 UTC 2016 > root@gauntlet:/usr/obj/usr/src/sys/GENERIC amd64 > $ pkg which /compat/linux/bin > /compat/linux/bin was installed by package linux_base-c7-7.2.1511 > $ export JAVA_HOME=/compat/linux/usr/java/jdk1.8.0_101 > $ $JAVA_HOME/bin/java -version > java version "1.8.0_101" > Java(TM) SE Runtime Environment (build 1.8.0_101-b13) > Java HotSpot(TM) Server VM (build 25.101-b13, mixed mode) > $ ./gradlew tasks > > FAILURE: Build failed with an exception. > > * What went wrong: > java.io.IOException: Too many levels of symbolic links > > * Try: > Run with --stacktrace option to get the stack trace. Run with --info > or --debug option to get more log output. please, do ktrace -di ./gradlew tasks then kdump -HAR -m 64 > gradlew.out then send to me gradlew.out