Skip site navigation (1) Skip section navigation (2)

Re: BUG #2766: erratic segfault in libpq/DBD::Pg

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Karl DeBieechop" <kdebisschop(at)alert(dot)infoplease(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2766: erratic segfault in libpq/DBD::Pg
Date: 2006-11-21 01:33:42
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
"Karl DeBieechop" <kdebisschop(at)alert(dot)infoplease(dot)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

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2006-11-21 01:43:29
Subject: Re: BUG #2769: "invalid memory alloc request size <n>" on startup
Previous:From: Bruce MomjianDate: 2006-11-20 20:33:33
Subject: Re: xlog lockup patch (was: BUG #2712: could not fsync

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group