800RC1 valgrind-detected bug ?

From: strk <strk(at)keybit(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: 800RC1 valgrind-detected bug ?
Date: 2004-12-14 10:49:39
Message-ID: 20041214104939.GC9888@freek.keybit.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all.
I'm getting error reports from valgrind while debugging postgis.
It seems that the error only shows up when I build a GiST index
AND vacuum analyze.

If I drop the index the error goes away.
If I create the index the error still doesn't show.
If I vacuum analyze, the error is back, but not always.

The query does not involve indexed operators.
Any hint about what can couse this ?

- versions:
valgrind-2.1.2.CVS
psql 8.0.0rc1

==15489== Syscall param write(buf) contains uninitialised or unaddressable byte(
s)
==15489== at 0x3C1AF9B8: write (in /lib/libc-2.3.2.so)
==15489== by 0x3C14F67D: (within /lib/libc-2.3.2.so)
==15489== by 0x3C14F615: _IO_do_write (in /lib/libc-2.3.2.so)
==15489== by 0x3C150138: _IO_file_overflow (in /lib/libc-2.3.2.so)
==15489== by 0x3C150D1F: _IO_file_xsputn (in /lib/libc-2.3.2.so)
==15489== by 0x3C145F8E: _IO_fwrite (in /lib/libc-2.3.2.so)
==15489== by 0x82062CE: write_relcache_init_file (in /pgroot-800/bin/postgres
)
==15489== by 0x82130AC: InitPostgres (in /pgroot-800/bin/postgres)
==15489== by 0x819B16A: PostgresMain (in /pgroot-800/bin/postgres)
==15489== by 0x813B2E2: main (in /pgroot-800/bin/postgres)
==15489== Address 0x3C0220F8 is not stack'd, malloc'd or (recently) free'd
==15489==
==15489== Syscall param write(buf) contains uninitialised or unaddressable byte(
s)
==15489== at 0x3C1AF9B8: write (in /lib/libc-2.3.2.so)
==15489== by 0x3C14F67D: (within /lib/libc-2.3.2.so)
==15489== by 0x3C14F615: _IO_do_write (in /lib/libc-2.3.2.so)
==15489== by 0x3C14EF67: _IO_file_close_it (in /lib/libc-2.3.2.so)
==15489== by 0x3C144CE9: _IO_fclose (in /lib/libc-2.3.2.so)
==15489== by 0x8189F4E: FreeDesc (in /pgroot-800/bin/postgres)
==15489== by 0x820677E: write_relcache_init_file (in /pgroot-800/bin/postgres
)
==15489== by 0x82130AC: InitPostgres (in /pgroot-800/bin/postgres)
==15489== by 0x819B16A: PostgresMain (in /pgroot-800/bin/postgres)
==15489== by 0x813B2E2: main (in /pgroot-800/bin/postgres)
==15489== Address 0x3C022200 is not stack'd, malloc'd or (recently) free'd

TIA
--strk;

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message strk 2004-12-14 11:24:01 Re: join selectivity
Previous Message Andrew Dunstan 2004-12-14 06:54:47 Re: dropdb/contrib-regression