Re: 8.2.3: Server crashes on Windows using Eclipse/Junit

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Laurent Duperval <lduperval(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 8.2.3: Server crashes on Windows using Eclipse/Junit
Date: 2007-10-16 22:20:10
Message-ID: 20071016222010.GH13400@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Laurent Duperval wrote:
> On Mon, 15 Oct 2007 15:06:37 -0400, Kris Jurka wrote:
>
> >> I get en error in the logs that state:
> >>
> >> Server process exited with exit code -1073741502
> >
> > This is likely a server bug. If you can isolate the failing test and
> > extract a self contained example someone can probably fix it.
>
> It seems to be some sort of interaction between Eclipse and Junit/Postgres
> driver. When I run my tests, just before the server crash, I have dozens
> and dozens of spawned Postgres processes. When the crash occurs, all
> processes are killed and restarted again. And this process continues until
> the tests complete.

The fact that all Postgres processes disappear is normal. Postgres
itself (more precisely, the postmaster process) kills all server
processes when one of them dies unexpectedly.

> When I run the tests from an ant script I also see some spawned processes,
> but nothing like running it in Eclipse.
>
> If I run each test case separately, I don't see this issue. But when I run
> them as a whole (i.e. run all tests defined in my application) I get the
> same error every time.

Maybe Eclipse is trying to run more of them at a time than ant, and the
extra concurrency is killing the server for some reason. Was this
compiled with Cygwin, or is it the native (mingw) version?

--
Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J
"La vida es para el que se aventura"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bryan Murphy 2007-10-16 22:30:54 Index Usage
Previous Message Scott Marlowe 2007-10-16 22:19:46 Re: need help with rebuilding postgresql