From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | jamesh(at)interpath(dot)com (James Hughes) |
Cc: | hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Grant/Revoke problems |
Date: | 1998-01-24 19:39:11 |
Message-ID: | 199801241939.OAA06778@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>
>
> I have been chasing the grant/revoke problems (on Linux platforms) and
> have had some success. There were two problems causing SIGSEGV's to
> crash the backend.
>
> The first problem was caused by a function trying to pass a string
> directly. This was fixed by returning the result of a strdup().
>
> The second problem is in ./src/backend/parser/gram.y . The grant and
> revoke statements are the only ones to use "free()". Somehow this is
> causing SIGSEGV's and crashing the backend. I removed these from the
> source and re-built everything: and it works now. But! I know absolutely
> nothing about yacc/bison and do not know the implications of removing
> these statements from the source.
>
> If everyone thinks it is OK, I will submit patches. If someone can look
> at the grant and revoke code in gram.y, I will submit the patches for
> ./src/backend/utils/init/miscinit.c.
The free() in gram.y is clearly wrong. Please submit a patch. I have
fixed some of these in 6.3, but not that one.
--
Bruce Momjian
maillist(at)candle(dot)pha(dot)pa(dot)us
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1998-01-24 20:25:08 | Re: [HACKERS] Re: Browsing the tables and why pgsql does not perform well |
Previous Message | Goran Thyni | 1998-01-24 19:24:27 | fork/exec for backend |