agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] pljava state
Date: Tue, 27 Sep 2011 17:13:30 -0700
Message-ID: <4E8266AA.5050209@hogranch.com> (raw)
In-Reply-To: <x6vcsdy2xy.fsf@2ndquadrant.com>
References: <4E818E5A.3050807@hogranch.com>
	<x64nzyysi5.fsf@2ndquadrant.com>
	<4E82417F.90304@hogranch.com>
	<x6vcsdy2xy.fsf@2ndquadrant.com>

On 09/27/11 4:34 PM, Johann 'Myrkraverk' Oskarsson wrote:
> Here you probably need to prefix the path with 'file://', as in
>
> lss=# sqlj.install_jar(
> 'file:///home/XXXX/pljava-1.4.3/build/examples.jar', 'samples', true);
>
>> >  and k-rash, postgres goes down and recovers, leaving this lovely
>> >  error log...  any clues would be greatly appreciated...
> That crash is however rather unfortunate.  If the above fix works I
> can work on "securing" the crash.  If that doesn't work, there is a
> more serious error somewhere.

hmmm.

In sql, I...

lss=# select 
sqlj.install_jar('file:///home/piercej/pljava-1.4.3/build/examples.jar','samples',true);
The connection to the server was lost. Attempting reset: Failed.
!>

and java drops a different error...

$ more hs_err_pid5197.log
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x00007f52ca3da552, pid=5197, tid=139995980908480
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_22-b03 mixed mode)
# Problematic frame:
# J  java.lang.String.hashCode()I
#

---------------  T H R E A D  ---------------

Current thread (0x0000000000d588a0):  JavaThread "main" 
[_thread_in_Java, id=5197]

siginfo:si_signo=11, si_errno=0, si_code=2, si_addr=0x00007f525ab7b000

Registers:
RAX=0x00000000b2cfc518, RBX=0x00007fffa916a6c0, RCX=0x00007f52b4ea0630, 
RDX=0x00007f52ca3d8500
RSP=0x00007fffa916a698, RBP=0x00007fffa916a710, RSI=0x00007f52d101bca0, 
RDI=0x00007fffa916a680
R8 =0x00007f52d101f608, R9 =0x00007f52d100b2a8, R10=0x0000000000000114, 
R11=0x00007f535ab7a000
R12=0x00007fffa916a6f8, R13=0x00007f528525efdf, R14=0x00007fffa916a738, 
R15=0x0000000000d588a0
RIP=0x00007f52ca3da552, EFL=0x0000000000010202, 
CSGSFS=0x0000000000000033, ERR=0x0000000000000004
   TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007fffa916a698)
0x00007fffa916a698:   00007f52ca3d851e 00007fffa916a710
0x00007fffa916a6a8:   00007fffa916a738 00007fffa916a710
0x00007fffa916a6b8:   00007fffa916a6c0 00007f52ca37be1a
0x00007fffa916a6c8:   00007f52b4ea0630 00007f52b4e9de08
0x00007fffa916a6d8:   00007fffa916a6d8 00007f528525efdf
0x00007fffa916a6e8:   00007fffa916a738 00007f528525f520
0x00007fffa916a6f8:   0000000000000000 00007f528525f038
0x00007fffa916a708:   00007fffa916a720 00007fffa916a788
0x00007fffa916a718:   00007f52ca37befe 00007f52b4d7ef60
0x00007fffa916a728:   00007f52b4ea0630 00007f52b4d82888
0x00007fffa916a738:   00007f52b4e9de08 0000000000000001
0x00007fffa916a748:   00007f52b4e9deb8 00007fffa916a740
0x00007fffa916a758:   00007f5285259b5d 00007fffa916a7c0
0x00007fffa916a768:   00007f528525dae0 0000000000000000
0x00007fffa916a778:   00007f5285259ba0 00007fffa916a7a8
0x00007fffa916a788:   00007fffa916a800 00007f52ca37befe
0x00007fffa916a798:   0000000000000000 00007f52b4e9deb8
0x00007fffa916a7a8:   00007f52b4ea0b00 00007f52b4d7ef60
0x00007fffa916a7b8:   00007f52b4ea0630 00007f52b4d82888
0x00007fffa916a7c8:   00007fffa916a7c8 00007f52852592aa
0x00007fffa916a7d8:   00007fffa916a848 00007f528525dae0
0x00007fffa916a7e8:   0000000000000000 00007f52852592d0
0x00007fffa916a7f8:   00007fffa916a828 00007fffa916a888
0x00007fffa916a808:   00007f52ca37bde1 0000000000000000
0x00007fffa916a818:   00007f52b4ea0630 0000000000000001
0x00007fffa916a828:   00007f52b4ea0b00 00007f52b4d7ef60
0x00007fffa916a838:   00007f52b4ea06c8 00007f52b4ea04a0
0x00007fffa916a848:   00007f52b4d82888 00007fffa916a850
0x00007fffa916a858:   00007f528525914d 00007fffa916a900
0x00007fffa916a868:   00007f528525dae0 0000000000000000
0x00007fffa916a878:   00007f52852591d0 00007fffa916a8f0
0x00007fffa916a888:   00007fffa916a940 00007f52ca37bde1

Instructions: (pc=0x00007f52ca3da552)
0x00007f52ca3da542:   45 3b d0 7c d9 eb 02 33 c0 89 41 20 48 83 c4 38
0x00007f52ca3da552:   85 05 a8 0a 7a 90 c3 4c 8b d9 48 89 6c 24 18 4c

Stack: [0x00007fffa8f6d000,0x00007fffa916d000),  sp=0x00007fffa916a698,  
free space=2037k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, 
C=native code)
J  java.lang.String.hashCode()I
j  
java.util.ResourceBundle.putBundleInCache(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/util/Locale;Ljava/lang/Object;)V+13
j  
java.util.ResourceBundle.propagate(Ljava/lang/ClassLoader;Ljava/util/Vector;Ljava/util/Vector;Ljava/util/Locale;Ljava/lang/Object
;)Ljava/lang/Object;+42
j  
java.util.ResourceBundle.getBundleImpl(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/ClassLoader;)Ljava/util/ResourceBundle;+381
j  
java.util.ResourceBundle.getBundle(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;+5
j  sun.text.resources.LocaleData$1.run()Ljava/lang/Object;+8
v  ~StubRoutines::call_stub
V  [libjvm.so+0x389df5]
V  [libjvm.so+0x56f5f9]
V  [libjvm.so+0x389c05]
V  [libjvm.so+0x3eea2b]
C  [libjava.so+0xcf7e]  
Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0xe
j  
java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0
j  
sun.text.resources.LocaleData.getBundle(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;+9
j  
sun.text.resources.LocaleData.getDateFormatZoneData(Ljava/util/Locale;)Ljava/util/ResourceBundle;+3
j  
java.text.DateFormatSymbols.cacheLookup(Ljava/util/Locale;)[Ljava/util/ResourceBundle;+33
j  java.text.DateFormatSymbols.initializeData(Ljava/util/Locale;)V+2
j  java.text.DateFormatSymbols.<init>(Ljava/util/Locale;)V+49
j  
java.util.TimeZone.retrieveDisplayNames(Ljava/lang/String;Ljava/util/Locale;)[Ljava/lang/String;+5
j  
java.util.TimeZone.getDisplayNames(Ljava/lang/String;Ljava/util/Locale;)[Ljava/lang/String;+82
j  
java.util.TimeZone.getDisplayName(ZILjava/util/Locale;)Ljava/lang/String;+45
j  java.util.Date.toString()Ljava/lang/String;+157
j  java.util.Properties.store(Ljava/io/OutputStream;Ljava/lang/String;)V+65
j  org.postgresql.pljava.internal.ELogHandler.init()V+63
j  org.postgresql.pljava.internal.Session.init()J+0
v  ~StubRoutines::call_stub
V  [libjvm.so+0x389df5]
V  [libjvm.so+0x56f5f9]
V  [libjvm.so+0x389c05]
V  [libjvm.so+0x3b7595]
V  [libjvm.so+0x3a6907]

(etc etc etc..... is this enough?)

-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast





view thread (6+ messages)  latest in thread

Message-ID: <4E8266AA.5050209@hogranch.com>
Permalink:  ../4E8266AA.5050209@hogranch.com/
Also on:    postgresql.org/message-id/4E8266AA.5050209@hogranch.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] pljava state
  In-Reply-To: <4E8266AA.5050209@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox