Re: stack smashing detected - Mailing list pgsql-hackers

From Tom Lane
Subject Re: stack smashing detected
Date
Msg-id 14992.1208273896@sss.pgh.pa.us
Whole thread Raw
In response to stack smashing detected  ("Ana Carolina Brito de Almeida" <anacrl@ig.com.br>)
List pgsql-hackers
"Ana Carolina Brito de Almeida" <anacrl@ig.com.br> writes:
> I'm trying test a version extended of Postgresql, but when I run a command
> after 9 times, I receive this message in psql:
> ***stack smashing detected***
> And Log said that postgres terminated with signal 6.
> I increased buffer to 120MB and the linux buffer (shmmax) to 2GB.
> What value can I put to max_connections?

You're thinking in the wrong terms entirely.  This is a bug that you
need to find/fix in whatever your extension is.  I'd look for things
like overrunning a fixed-size array allocated as a local variable.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: pulling libpqtypes from queue
Next
From: Martijn van Oosterhout
Date:
Subject: Re: [SQL] rule for update view that updates/inserts into 2 tables