Re: PG Seg Faults Performing a Query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bill Thoen <bthoen(at)gisnet(dot)com>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Andrej Ricnik-Bay <andrej(dot)groups(at)gmail(dot)com>, pgsql-general(at)postgreSQL(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: PG Seg Faults Performing a Query
Date: 2007-08-24 19:59:53
Message-ID: 4866.1187985593@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Bill Thoen <bthoen(at)gisnet(dot)com> writes:
> I'm a bit out of my depth with using these debugging tools and
> interpreting their results, but I think the problem is due to the output
> being just too big for interactive display.

Well, I can certainly believe it's related to the amount of data
involved, but the exact relationship is far from clear. popen()
doesn't do any actual data-pushing, it just sets up a pipe and forks
a child process --- so even if the child fails immediately after being
forked, that wouldn't lead to the problem seen here. The rarity of
a failure here explains why we hadn't noticed the lack of error checking
long ago.

What I suppose is that you are running into some system-wide resource
constraint. Exactly which one, and whether it's easy to fix, remain to
be seen.

> I tried using strace, but it produced so much telemetry and
> unfortunately I couldn't understand it anyway that I don't think this
> would do me any good.

Sorry, I should have said: the last few dozen lines before the crash are
all that will be interesting.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Stark 2007-08-24 20:08:51 Re: FATAL: could not reattach to shared memory (Win32)
Previous Message Tom Lane 2007-08-24 19:47:30 Re: FATAL: could not reattach to shared memory (Win32)

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian G. Pflug 2007-08-24 20:09:13 Re: simple replication
Previous Message Bill Thoen 2007-08-24 19:43:11 Re: PG Seg Faults Performing a Query