Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: stack smashing detected - Mailing list pgsql-hackers

From Tom Lane
Subject Re: stack smashing detected
Date
Msg-id [email protected]
Whole thread Raw
In response to stack smashing detected  ("Ana Carolina Brito de Almeida" <[email protected]>)
List pgsql-hackers
"Ana Carolina Brito de Almeida" <[email protected]> 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