Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Broken PostgreSQL (latest CVS)

From: jwieck(at)debis(dot)com (Jan Wieck)
To: emkxp01(at)mtcc(dot)demon(dot)co(dot)uk
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Broken PostgreSQL (latest CVS)
Date: 1998-08-20 14:01:27
Message-ID: m0z9VHM-000EBPC@orion.SAPserv.Hamburg.dsh.de (view raw or flat)
Thread:
Lists: pgsql-hackers
>
> Hi hackers.
>
> I grabbed the latest CVS from this morning and did a clean build
> and initdb.
>
> Things look a little broken as I get a SIGSEGV when trying to
> create a table.

    I  noticed  them  too (but I thought it was a flaw since they
    where gone (up to now) after a 'make install' and  'initdb').

>
> Any idea what went wrong?
>
> Keith.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xe016e6b4 in _wordcopy_fwd_aligned ()
> (gdb) bt
> #0  0xe016e6b4 in _wordcopy_fwd_aligned ()
> #1  0xe011d62c in memmove ()
> #2  0x26ad0 in DataFill (data=0x1af964 "", tupleDesc=0x4, value=0xefffce3c,
>     nulls=0xefffce40 "", infomask=0xefffcbc6, bit=0x1af958 "\003")
>     at heaptuple.c:208
> #3  0x27abc in index_formtuple (tupleDescriptor=0x15b710, value=0xefffce3c,
>     null=0xefffce40 "") at indextuple.c:78

    Looks like the tuple desctiptor given to index_formtuple() is
    corrupted  somewhere  before  the  call   to   memmove()   in
    DataFill() line 208.

    I  think  it  must  have  happened  inside  of  DataFill() or
    something DataFill() called, because at the time of  failure,
    the  on-stack  variable  tupleDescriptor of index_formtuple()
    looks still good - so I assume index_formtuple()  handed  the
    correct  value  to  DataFill()  at  line  78  and it has been
    corrupted after.

    BTW: I love gdb.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#======================================== jwieck(at)debis(dot)com (Jan Wieck) #



In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 1998-08-20 15:23:24
Subject: Re: [HACKERS] Broken PostgreSQL (latest CVS)
Previous:From: Keith ParksDate: 1998-08-20 11:09:49
Subject: Broken PostgreSQL (latest CVS)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group