pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yiqing Jin <yiqing.jin@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: segfault when creating index on huge table
Date: Thu, 16 Jul 2015 13:34:47 -0700
Message-ID: <2B30837D-16A9-40F1-A150-2F3511F54FB4@gmail.com> (raw)
In-Reply-To: <4948.1437070492@sss.pgh.pa.us>
References: <CAL8HZuNR2FR1owZHWG-p64GJtNfbbmPx1Y2OXmJ_XuQ3P8YtVA@mail.gmail.com>
	<4948.1437070492@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hi Tom, 

Thanks for your reply!

I’m having trouble getting the full stack trace since it’s a controlled environment and I need to figure out a way to install all the debug info packages.

but for now i have checked all core dumps which all seems crashed at same point.

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffe2b31000
Core was generated by `postgres: osm osm_planet [local] ALTER TABLE          '.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000785180 in med3_tuple (a=0x7f31613f1028, b=0x7f31613f1040, c=0xffffffff3ffffffd, cmp_tuple=0x7f43613f1010, state=0x1) at qsort_tuple.c:66
66	{
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.149.el6_6.5.x86_64


I’ll try get help to get a full stack trace and post here as soon as possible.

Thanks
Yiqing

> On Jul 16, 2015, at 11:14 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> Yiqing Jin <yiqing.jin@gmail.com> writes:
>> I'm trapped with a problem when trying to create an index on a table with
>> about 2.8 billion records in it.
>> ALTER TABLE ONLY nodes ADD CONSTRAINT pk_nodes PRIMARY KEY (id);
>> or
>> create index pknode on nodes(id);
> 
>> Postgres terminated with segfault during the proocess.
> 
> That shouldn't happen.  Can you get a stack trace from the core dump?
> 
> https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend
> 
> 			regards, tom lane



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (7+ messages)  latest in thread

Message-ID: <2B30837D-16A9-40F1-A150-2F3511F54FB4@gmail.com>
Permalink:  ../2B30837D-16A9-40F1-A150-2F3511F54FB4@gmail.com/
Also on:    postgresql.org/message-id/2B30837D-16A9-40F1-A150-2F3511F54FB4@gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: yiqing.jin@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: segfault when creating index on huge table
  In-Reply-To: <2B30837D-16A9-40F1-A150-2F3511F54FB4@gmail.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