From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gaetano Mendola <mendola(at)bigfoot(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Preventing stack-overflow crashes (improving on |
Date: | 2003-12-31 16:30:02 |
Message-ID: | 91460000.1072888202@lerlaptop-red.iadfw.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
--On Wednesday, December 31, 2003 11:20:49 -0500 Tom Lane
<tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Gaetano Mendola <mendola(at)bigfoot(dot)com> writes:
>> Is ABS enough on a 64-bit architecture ?
>
> That was pseudocode, I wasn't actually planning to rely on a function.
> Something more like
>
> long diff;
>
> diff = stack_base_ptr - &stack_top_loc;
> if (diff < 0)
> diff = -diff;
> if (diff > max)
> elog ...
>
One archetecture that MIGHT be an issue (It's been 5+ years) is IBM 390
class under Z/OS. I'm not sure how they do stacks....
LER
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Treat | 2003-12-31 16:37:15 | Re: Is my MySQL Gaining ? |
Previous Message | ivan | 2003-12-31 16:22:57 | Re: cache in plpgsql |