![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
mydb=> insert into test values(11); *** buffer overflow detected ***: psql terminated |
#3
| |||
| |||
|
|
jao (AT) geophile (DOT) com writes: mydb=> insert into test values(11); *** buffer overflow detected ***: psql terminated You seem to have a rather badly broken build there :-(. What's the platform exactly, and what compiler did you use? Can you rebuild with debug support enabled so you can get a stack trace that's actually useful? If it just started happening, I'd speculate about a corrupt executable file for psql or libpq. I doubt it's got anything to do with the server side. |
#4
| |||
| |||
|
|
Quoting Tom Lane <tgl (AT) sss (DOT) pgh.pa.us>: If it just started happening, I'd speculate about a corrupt executable file for psql or libpq. I doubt it's got anything to do with the server side. But this doesn't explain the data I posted previously: |
#5
| |||
| |||
|
|
jao (AT) geophile (DOT) com writes: Quoting Tom Lane <tgl (AT) sss (DOT) pgh.pa.us>: If it just started happening, I'd speculate about a corrupt executable file for psql or libpq. I doubt it's got anything to do with the server side. ... In any case, the next step is to get more debugging data ... please see about that debug-enabled rebuild. If you really want to pursue the server-bug theory first, you might try dumping the data passed across the connection with strace or ethereal or similar tools to see if there's any differences. |
#6
| |||
| |||
|
|
I'm hoping strace output will be useful. To recap, psql crashes on "INSERT INTO TEST VALUES(8)". The insert succeeds, and strace shows the insert response coming back. I'm wondering if there is anything suspicious in the response from the backend: recv(3, "C\0\0\0\30INSERT 1188218874 1\0Z\0\0\0\5I", 16384, 0) = 31 |
![]() |
| Thread Tools | |
| Display Modes | |
| |