pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ljwilson <ljwilson@digitalav.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #6204: Using plperl functions generate crash
Date: Thu, 19 Apr 2012 06:30:06 -0700 (PDT)
Message-ID: <1334842206353-5651759.post@n5.nabble.com> (raw)
In-Reply-To: <CA+Tgmobntf7sZR1jw4L5FGCK9bXvKEFkbNGxVwE927VxW9zdmg@mail.gmail.com>
References: <201109140915.p8E9Fs0w075076@wwwmaster.postgresql.org>
	<CAOWY8=am64=JeuFS+9SzELw4mgbi3p9qBVBmfQERTs_PgLJatw@mail.gmail.com>
	<loom.20111010T192453-600@post.gmane.org>
	<B28B3294-3D6F-4958-8D1E-B8E065CF1F65@enterprisedb.com>
	<4E933F4B.1080501@hogranch.com>
	<CAFqwwS5y2tLV1XdGXBpMQFfYEA9N1BrZyrbbuAZzG2S8HmjNeg@mail.gmail.com>
	<1324485031237-5092359.post@n5.nabble.com>
	<1324502463083-5092951.post@n5.nabble.com>
	<1334055689658-5629612.post@n5.nabble.com>
	<CA+Tgmobntf7sZR1jw4L5FGCK9bXvKEFkbNGxVwE927VxW9zdmg@mail.gmail.com>

I began testing PostgreSQL 9.1.x last week, and came across this issue.
Repeatable under the following scenarios (all 32-bit)

1. Windows XP SP3 with latest updates.
2. Windows 7 SP1 with latest updates.
3. Any flavor of Perl 5.1.4.x (I've tried strawberry-perl-5.14.2.1-32bit,
ActivePerl-5.14.2.1402-MSWin32-x86-295342, and compiled my own for 5.14.0,
5.14.1, and 5.14.2)
4. postgresql-9.1.0-windows, postgresql-9.1.1-windows,
postgresql-9.1.2-windows, and postgresql-9.1.3-windows from the one-click
installers.
5. Compiled postgresql-9.1.3 from source using Windows Platform SDK 7.0.

But here is what will work:
1. Compile postgresql-9.1.3 using mingw32
2. Replace only the plperl.dll the official binaries supply with the
plperl.dll you get from the mingw32 compile
3. Then the test which started this bug discussion works.

This makes me think there is an incompatibility in some environments related
to plperl. I thought maybe it was the version of msvcr90.dll since the
mingw32 compile doesn't link with it. I've got four versions of it on my XP
test box, and have put each version of that dll in my various install
subdirectories (perl\bin, perl\lib, pgsql\bin, pgsql\lib), and none of them
make a difference (assuming it is seeing them "first"). 

My MSVCR90.DLL versions (size)
9.0.21022.8 (655,872 bytes)
9.0.30729.1 (655,872 bytes)
9.0.30729.4148 (653,120 bytes)
9.0.30729.6161 (653,136 bytes)

If it is an environment issue of some kind it would be interesting to know
what locales people have where it works versus where it doesn't. I'm using
the standard ones that the PostgreSQL one-click installer defaults to.

I'd be glad to post the plperl.dll (160,324 bytes) that works for me if
there is a proper place for this kind of thing. Or just compile it from
source yourself using the mingw instructions at
http://www.postgresql.org/docs/9.1/static/installation-platform-notes.html#INSTALLATION-NOTES-MINGW

...jack



--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-6204-Using-plperl-functions-generate-crash-tp4802111p565...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.



view thread (15+ messages)  latest in thread

Message-ID: <1334842206353-5651759.post@n5.nabble.com>
Permalink:  ../1334842206353-5651759.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1334842206353-5651759.post@n5.nabble.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 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-bugs@postgresql.org
  Cc: ljwilson@digitalav.com
  Subject: Re: BUG #6204: Using plperl functions generate crash
  In-Reply-To: <1334842206353-5651759.post@n5.nabble.com>
  References: <201109140915.p8E9Fs0w075076@wwwmaster.postgresql.org> <CAOWY8=am64=JeuFS+9SzELw4mgbi3p9qBVBmfQERTs_PgLJatw@mail.gmail.com> <loom.20111010T192453-600@post.gmane.org> <B28B3294-3D6F-4958-8D1E-B8E065CF1F65@enterprisedb.com> <4E933F4B.1080501@hogranch.com> <CAFqwwS5y2tLV1XdGXBpMQFfYEA9N1BrZyrbbuAZzG2S8HmjNeg@mail.gmail.com> <1324485031237-5092359.post@n5.nabble.com> <1324502463083-5092951.post@n5.nabble.com> <1334055689658-5629612.post@n5.nabble.com> <CA+Tgmobntf7sZR1jw4L5FGCK9bXvKEFkbNGxVwE927VxW9zdmg@mail.gmail.com> <1334842206353-5651759.post@n5.nabble.com>

* 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