pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <myon@debian.org>
To: Chapman Flack <chap@anastigmatix.net>
Cc: pgsql-pkg-debian@postgresql.org
Subject: Re: PL/Java 1.5.1_BETA2
Date: Tue, 18 Sep 2018 12:46:03 +0200
Message-ID: <20180918104603.GE6196@msg.df7cb.de> (raw)
In-Reply-To: <5B9ECCD1.1050309@anastigmatix.net>
References: <5B96B226.2080803@anastigmatix.net>
	<20180915203221.GA19015@msg.df7cb.de>
	<5B9D73A2.2090402@anastigmatix.net>
	<20180916201808.GA30681@msg.df7cb.de>
	<5B9ECCD1.1050309@anastigmatix.net>

Re: Chapman Flack 2018-09-16 <5B9ECCD1.1050309@anastigmatix.net>
> > i.e. it's replacing both occurrences of "i386" by "1".
> 
> Ok, that's irritating. I can guess what is happening. I implement the
> -Dpljava.libjvmdefault by passing the string into cpp with a -D, and that
> gets converted to a string using the CppAsString2 macro, and that apparently
> is not protected from expansion of other macros, and I bet something is
> defining i386 to be 1.
> 
> Phooey.
> 
> I don't know if that will be easy to fix using cpp. An alternative would be
> to pass it to cpp already quoted according to C rules, but that would be
> somewhat ugly to express in a Maven build script.

We could try "-Ui386" if there's a way to pass that flag into the
build process?

Filed at https://github.com/tada/pljava/issues/176, let's continue
there.

> Your SET command to correct the library name completed the installation
> of PL/Java, but at that point it was no longer within a CREATE EXTENSION
> command, so the various functions, tables, etc., have just been installed
> 'loose' (exactly as they would if you were installing in 9.0 or earlier
> with no 'extension' mechanism).

Oh, that's unexpected. Wouldn't it be time to unsupport that and move
to a "normal" extension .sql script?

> > Proceeding to load the examples:
> 
> > Server beendete die Verbindung unerwartet
> 
> Is there anything in the server log with details of the crash?
> In many cases there will be a lengthy message from the JVM in the server
> log, and that message will contain a file name (something like
> /tmp/hs_err_pidnnnn.log) which will contain *even more* detail.
> I would be interested to see that. Was this still on i386 ?

Filed as https://github.com/tada/pljava/issues/177 with attachment.

> > 20:07:07 ERROR:  java.lang.ClassNotFoundException: org.postgresql.pljava.example.annotation.ComplexTuple
> > 20:07:07 CONTEXT:  SQL statement "SELECT javatest.assertHasValues( CAST('(1,2)' AS javatest.complextuple), 1, 2)"
> 
> I believe you'll find this a Heisenbug, and it will go away if you repeat
> the build and the test.

https://github.com/tada/pljava/issues/178

Christoph




view thread (17+ messages)  latest in thread

Message-ID: <20180918104603.GE6196@msg.df7cb.de>
Permalink:  ../20180918104603.GE6196@msg.df7cb.de/
Also on:    postgresql.org/message-id/20180918104603.GE6196@msg.df7cb.de

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-pkg-debian@postgresql.org
  Cc: myon@debian.org, chap@anastigmatix.net
  Subject: Re: PL/Java 1.5.1_BETA2
  In-Reply-To: <20180918104603.GE6196@msg.df7cb.de>
  References: <5B96B226.2080803@anastigmatix.net> <20180915203221.GA19015@msg.df7cb.de> <5B9D73A2.2090402@anastigmatix.net> <20180916201808.GA30681@msg.df7cb.de> <5B9ECCD1.1050309@anastigmatix.net> <20180918104603.GE6196@msg.df7cb.de>

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

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