Re: BUG #2766: erratic segfault in libpq/DBD::Pg - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #2766: erratic segfault in libpq/DBD::Pg
Date
Msg-id 16400.1164072822@sss.pgh.pa.us
Whole thread Raw
In response to BUG #2766: erratic segfault in libpq/DBD::Pg  ("Karl DeBieechop" <kdebisschop@alert.infoplease.com>)
List pgsql-bugs
"Karl DeBieechop" <kdebisschop@alert.infoplease.com> writes:
> error is completely erratic - will work 10 times, then fail. or fail 10 time
> then work. So I have not been able to find a reporduacble test case. But
> here's a trace:

> *** glibc detected *** /usr/bin/perl: realloc(): invalid pointer: 0x091c2f94
> ***

This looks like either an extra-free or a memory clobber problem.  Try
running your example under a debugging malloc package to see if that
doesn't narrow down the source of the problem.  I've had success with
ElectricFence in the past, valgrind might help too.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #2769: "invalid memory alloc request size " on startup
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #2759: \df doesn't show functions with no args