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

GiST: spl_rattr in gistSplit()

From: Itai Zukerman <zukerman(at)math-hat(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: GiST: spl_rattr in gistSplit()
Date: 2003-03-02 12:52:03
Message-ID: 87znoeylqk.fsf@matt.w80.math-hat.com (view raw or flat)
Thread:
Lists: pgsql-hackers
[3rd day of trying to track down a SEGV]

In gistSplit() I see:

              newtup[0] = gistFormTuple(giststate, r, v.spl_rattr, v.spl_rattrsize, v.spl_risnull);

but v.spl_rattrsize hasn't been initialized:

  (gdb) p v.spl_rattrsize[0]
  $136 = -1073749368

Is this going to be a problem?  Eventually we get a GISTENTRY with bad
bytes in gistFormTuple(), but maybe it's never used?

  (gdb) p centry[0]
  $138 = {key = 137280264, rel = 0x0, page = 0x0, offset = 0, bytes = -1073749368, leafkey = 0 '\0'}

-- 
Itai Zukerman  <http://www.math-hat.com/~zukerman/>

pgsql-hackers by date

Next:From: Itai ZukermanDate: 2003-03-02 13:13:16
Subject: GiST: Bad newtup On Exit From gistSplit() ?
Previous:From: Hans-Jürgen SchönigDate: 2003-03-02 08:11:40
Subject: Re: System Tables and Triggers

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