agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] JVM crash in latest cvs on 7.4.7 implementating ResultSetProvider
Date: Thu, 10 Mar 2005 13:14:10 +0100
Message-ID: <42303A12.6030201@mailblocks.com> (raw)
In-Reply-To: <3f71fdf10503100050360ea179@mail.gmail.com>
References: <3f71fdf10503100050360ea179@mail.gmail.com>

Stephen Crowley wrote:

>I'm getting a JVM crash in the latest cvs.  
>
>My function def:
>
>CREATE FUNCTION elab.getDailyReport(date)
>			RETURNS SETOF island_daily
>			AS 'elab.DailyReport.getDailyReport'
>			LANGUAGE java;
>
>DailyReport implements ResultSetProvider
>
>assignRowValues() isn't doing anything out of the ordinary.
>
>Any ideas?  The crash happens after about 50 rows returned. Any tips
>on debugging? How can I turn these frame pointers into something
>useful?
>  
>
Try a make clean and then recompiling PL/Java with -g option, i.e.

make PGSQLDIR=<...> CFLAGS=-g

or, if you care to debug the binary:

make PGSQLDIR=<...> CPPFLAGS=-DPLJAVA_DEBUG=1 CFLAGS=-g

The result of the latter compilation will be a binary that goes into a 
loop the first time PL/Java is initialized. It prints out the pid of the 
process and asks you to attach a gdb. So you do:

gdb /usr/local/pgsql/bin/postgres <the pid>

Then, inside of gdb you set the breakpoints you need and then issue:

set pljavaDebug=0
continue

this breaks the loop. Hope this helps,

Regards
Thomas Hallgren





view thread (4+ messages)  latest in thread

Message-ID: <42303A12.6030201@mailblocks.com>
Permalink:  ../42303A12.6030201@mailblocks.com/
Also on:    postgresql.org/message-id/42303A12.6030201@mailblocks.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] JVM crash in latest cvs on 7.4.7 implementating ResultSetProvider
  In-Reply-To: <42303A12.6030201@mailblocks.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