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

Re: Bug #532: backend crashes due to segmentation fault

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: hamo(at)cs(dot)technion(dot)ac(dot)il, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #532: backend crashes due to segmentation fault
Date: 2001-12-10 11:07:37
Message-ID: 200112101107.fBAB7bV10938@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Yes, fixed in later releases.

---------------------------------------------------------------------------

> yaniv hamo (hamo(at)cs(dot)technion(dot)ac(dot)il) reports a bug with a severity of 1
> The lower the number the more severe it is.
> 
> Short Description
> backend crashes due to segmentation fault
> 
> Long Description
> 
>   After 3 hours of trying to figure out why my backend cannot stand
> on its feet for more than 20 seconds, I had to go into the code, 
> there i saw, in line 183 of database.c the following line:
> 
> 		for (i = 0; i <= max; i++)
> 
> Running from 0 to max INCLUSIVE, caused the segmentation fault.
> I fixed it to    for (i = 0; i < max; i++)
> and it works.
> i have PostgreSQL v 7.0.2 , maybe you fixed it in later versions.
> Have a nice day,
> Yaniv
> 
> 
> Sample Code
> 
> 
> No file was uploaded with this report
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-bugs by date

Next:From: Bruce MomjianDate: 2001-12-10 11:21:42
Subject: Re: Bug #534: factorial function
Previous:From: Bruce MomjianDate: 2001-12-10 10:25:50
Subject: Re: Bug #531: libpq: Operations following PQfinish() work.

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