Re: BUG #15704: Possible causes for calling abort () system callduring querying database. - Mailing list pgsql-bugs

From Daniel Verite
Subject Re: BUG #15704: Possible causes for calling abort () system callduring querying database.
Date
Msg-id 68d57135-8917-465c-81bd-511d77465fe7@manitou-mail.org
Whole thread Raw
In response to BUG #15704: Possible causes for calling abort () system call during querying database.  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
    PG Bug reporting form wrote:

> (gdb) bt
> #0  0x00007fddc8f664d8 in raise () from /lib64/libc.so.6
> #1  0x00007fddc8f695aa in abort () from /lib64/libc.so.6
> #2  0x00007fddc8fa092b in ?? () from /lib64/libc.so.6 -> Not sure which
> function is called by realloc in the postgres software
> #3  0x00007fddc8faa906 in ?? () from /lib64/libc.so.6 -> Not sure which
> function is called by realloc in the postgres software
> #4  0x00007fddc8faee7b in realloc () from /lib64/libc.so.6
> #5  0x00007fddcd5eb0fd in pqCheckInBufferSpace () from
> /hegw/postgres/lib/libpq.so.5

realloc() can abort when it finds out that the internal data
structures controlling memory allocations are corrupted.
It should also print an error message to stderr when this
occurs.
This is generally caused by earlier buffer overruns in user
code. The fact that the problem is detected when realloc()
is called from postgres code does not imply that
the problem originates in postgres code.
To locate the bug, it may help to run your application with valgrind.

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


pgsql-bugs by date:

Previous
From: Jeff Janes
Date:
Subject: Re: BUG #15704: Possible causes for calling abort () system callduring querying database.
Next
From: Tom Lane
Date:
Subject: Re: Backwards boolean logic?