pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: init_htab causes SIGFPE (or worse) due to miscalculation for large nbuckets
Date: Mon, 10 Dec 2012 19:45:44 -0800
Message-ID: <1355197546.15663.61.camel@sussancws0025> (raw)
In-Reply-To: <2050.1355192347@sss.pgh.pa.us>
References: <1355079715.3896.14.camel@jdavis>
	<18018.1355093132@sss.pgh.pa.us>
	<1355185776.13316.4.camel@sussancws0025>
	<1036.1355189242@sss.pgh.pa.us>
	<1355191549.15663.10.camel@sussancws0025>
	<2050.1355192347@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Mon, 2012-12-10 at 21:19 -0500, Tom Lane wrote:
> I hadn't gone any further than to code and test the functions I listed.
> If you are working on a complete patch, please press on.

Attached. This fixes my test case[1] and uses the functions that you
wrote. I made them static because I couldn't think of a reason for
something outside to call them.

Regards,
	Jeff Davis

[1]: The test case will just eat a lot of memory right now, but that's
only because I set work_mem so high. So, it doesn't actually complete,
but it no longer corrupts the HASHHDR.

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

Attachments:

  htab.patch.gz (application/x-gzip, 5.4K) download

view thread (9+ messages)  latest in thread

Message-ID: <1355197546.15663.61.camel@sussancws0025>
Permalink:  ../1355197546.15663.61.camel@sussancws0025/
Also on:    postgresql.org/message-id/1355197546.15663.61.camel@sussancws0025

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pgsql@j-davis.com, tgl@sss.pgh.pa.us
  Subject: Re: init_htab causes SIGFPE (or worse) due to miscalculation for large nbuckets
  In-Reply-To: <1355197546.15663.61.camel@sussancws0025>
  References: <1355079715.3896.14.camel@jdavis> <18018.1355093132@sss.pgh.pa.us> <1355185776.13316.4.camel@sussancws0025> <1036.1355189242@sss.pgh.pa.us> <1355191549.15663.10.camel@sussancws0025> <2050.1355192347@sss.pgh.pa.us> <1355197546.15663.61.camel@sussancws0025>

* 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