Re: BUG #1015: Got a signal 11 while trying to create a temp table - Mailing list pgsql-bugs

From aarjan langereis
Subject Re: BUG #1015: Got a signal 11 while trying to create a temp table
Date
Msg-id 060701c3c7dd$45349680$6800a8c0@Aarjan
Whole thread Raw
In response to Re: BUG #1015: Got a signal 11 while trying to create a temp table  ("aarjan langereis" <a.j.langereis@inter.nl.net>)
Responses Re: BUG #1015: Got a signal 11 while trying to create a temp table
List pgsql-bugs
I'm using a RedHat machine. In my /etc/init.d/postgresql is this the line
that statsup the postmaster:

su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p
/usr/bin/postmaster -o '-p ${PGPORT}' start  > /var/log/pgsql.log 2>&1" <
/dev/null

I don't see that "ulimit -c 0".. nowhere in the script. Where do I have to
put the "ulimit -c unlimited"?
Because he is not dumping any core now...

In my first mail I spoke about 2 query's that where rather the same, both
use the 'blocks'-table (3.2M records) and joint it with another one.
One join was with the 'cpus'-table (17 records), this one worked perfect.
The other join was with the 'hosts'-table (205 records), the problem query.
From that and a full look het my 'hosts'-table I can conclude that the data
in the 'blocks'-table is not currupt..

Ok, id some other tests too:

Select * from blocks; gave me the whole table (I didn't look at all records,
but got a result in psql)
select hostid, sum(amount) from blocks group by hostid; crashed (3,2M
records used)
select hostid, sum(amount) from blocks where blockdate::date between
'2003-01-01' and '2003-02-01' group by hostid; worked (also for all other
months!!). (200K- 450K records used)
select hostid, sum(amount) from blocks where blockdate::date between
'2003-01-01' and '2003-07-01' group by hostid; crashed (1390618 records
used)
select hostid, sum(amount) from blocks where blockdate::date between
'2003-02-01' and '2003-07-01' group by hostid; worked (1202952 records used)

To me it seems to be the size of it all...

Yours,

Aarjan

----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "aarjan langereis" <a.j.langereis@inter.nl.net>
Cc: <pgsql-bugs@postgresql.org>
Sent: Saturday, December 20, 2003 6:27 PM
Subject: Re: [BUGS] BUG #1015: Got a signal 11 while trying to create a temp
table


> "aarjan langereis" <a.j.langereis@inter.nl.net> writes:
> > How do I get a "debugger backtrace" ?
>
> Find the "core" file left by the crashed backend --- it should be in
> $PGDATA/base/yourdbnumber/core and have a file date equal to the time
> of the crash.  If you don't find one, it's likely that the postmaster
> was started under "ulimit -c 0" which prevents core dumps.  Restart
> the postmaster under "ulimit -c unlimited" and reproduce the crash.
>
> Once you have the core file, do
> $ gdb /path/to/postgres-executable /path/to/core-file
> gdb> bt
> gdb> quit
>
> If bt just produces a list of numbers without any names, it's not going
> to be helpful.  In that case you need to rebuild Postgres with debugging
> symbols and start over.
>
> There is more info in the archives.
>
>
> > Selecting all data from the tables involved, does that also include a
'coun=
> > t(*)', if so, they work:
>
> Mmm, that really only proves that the page headers and tuple headers are
> OK, not that there is not data corruption within some row, because
> COUNT(*) won't try to extract any field values from any rows.  I'd
> suggest a SELECT * or COPY TO FILE operation to check whether there is
> any data corruption.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: can not configure --enable-thread-safety
Next
From: Tom Lane
Date:
Subject: Re: BUG #1015: Got a signal 11 while trying to create a temp table