NetBSD Problem Report #45879

From  Fri Jan 27 10:27:40 2012
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id DECE863DE10
	for <>; Fri, 27 Jan 2012 10:27:39 +0000 (UTC)
Message-Id: <>
Date: Fri, 27 Jan 2012 11:27:07 +0100 (CET)
Subject: openjdk7 dynamically loads X11R6 libraries instead of X11R7
X-Send-Pr-Version: 3.95

>Number:         45879
>Category:       pkg
>Synopsis:       openjdk7 dynamically loads X11R6 libraries instead of X11R7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 27 10:30:00 +0000 2012
>Closed-Date:    Sun Nov 23 06:14:54 +0000 2014
>Last-Modified:  Sun Nov 23 06:14:54 +0000 2014
>Originator:     Tom Ivar Helbekkmo
>Release:        NetBSD 5.99.60 (current as of 2012-01-24)
System: NetBSD 5.99.60 NetBSD 5.99.60 (ATHENE) #7: Thu Jan 26 11:07:55 CET 2012 i386
Architecture: i386
Machine: i386

After updating this system to a current -current, I decided to do a
major cleanup of the packages installed from pkgsrc.  I removed
everything with pkg_delete, and rebuilt, from pkgsrc, everything that
I needed.  This included openjdk7, as I use JSynthLib.

Running JSynthLib after this update caused the jvm to crash.  The
generated error log starts:

# A fatal error has been detected by the Java Runtime Environment:
#  SIGSEGV (0xb) at pc=0x9211c911, pid=14307, tid=3103784960
# JRE version: 7.0
# Java VM: OpenJDK Server VM (21.0-b17 mixed mode bsd-x86 )
# Problematic frame:
# C  []  _X11TransWritev+0x9

This makes no sense, as everything should be built for X11R7, and ldd
confirms that all executables and shared libraries that reference X
indeed do want R7.

After renaming /usr/X11R6, to get it out of the way, Java loads the
correct shared libraries, and everything works nicely.


Run a Java application that uses X, with R6 and R7 both present.





State-Changed-From-To: open->feedback
State-Changed-When: Sun, 30 Mar 2014 18:07:02 +0000
I have comment on this.

From: Ryo ONODERA <>
Subject: Re: pkg/45879: openjdk7 dynamically loads X11R6 libraries instead
 of X11R7
Date: Mon, 31 Mar 2014 03:46:37 +0900 (JST)

 From: Ryo ONODERA <>, Date: Mon, 31 Mar 2014 02:56:31 +0900 (JST)

 > Hi,
 > $ find /usr/pkg/java/openjdk7 | xargs readelf -Wd
 > has no reference to /usr/X11R7.
 > My environment is NetBSD/amd64 6.99.28 with native xorg.
 > I feel that this problem is gone.
 > Or no-one has /usr/X11R6 in their HDD.
 > Can I close this PR?

 Sorry I have wrong subject and my comment is not sent to you.

 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: Tom Ivar Helbekkmo <>
Subject: Re: pkg/45879
Date: Sat, 05 Apr 2014 10:16:33 +0200

 This is probably not worth the effort of pursuing.  As you say, people
 are unlikely to have X11R6 installed any more.  I've removed it, and
 would be unable to test any purported fix to this problem.

 It doesn't matter how beautiful your theory is, it doesn't matter how smart
 you are. If it doesn't agree with experiment, it's wrong.  -Richard Feynman

State-Changed-From-To: feedback->closed
State-Changed-When: Sun, 23 Nov 2014 06:14:54 +0000
Withdrawn by submitter.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.