Re: skink vs. phrase full text search

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: skink vs. phrase full text search
Date: 2016-04-08 14:55:18
Message-ID: 20160408145518.zrd2ldlk6osqsglt@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2016-04-08 10:45:01 -0400, Tom Lane wrote:
> Buildfarm member skink has been unhappy since bb14050 went in,
> but I find that I cannot reproduce any failure by valgrind'ing
> here. Can you suggest any secret sauce that that animal may
> be using?

I gather you're compiling with USE_VALGRIND enabled? Valgrind - from svn
- is run with postgres replaced via

+sub replace_postgres
+{
+ my $srcdir=$use_vpath ? "../pgsql/" : ".";
+ my $builddir=abs_path("$pgsql");
+ $srcdir=abs_path("$pgsql/$srcdir");
+ chdir "$pgsql/src/backend/";
+ rename "postgres", "postgres.orig";
+ sysopen my $fh, "postgres", O_CREAT|O_TRUNC|O_RDWR, 0700
+ or die "Could not create postgres wrapper";
+ print $fh <<"END";
+#!/bin/bash
+exec /usr/local/bin/valgrind \\
+ --quiet \\
+ --error-exitcode=128 \\
+ --suppressions=$srcdir/src/tools/valgrind.supp \\
+ --trace-children=yes --track-origins=yes --read-var-info=yes \\
+ --leak-check=no \\
+ --error-markers=VALGRINDERROR-BEGIN,VALGRINDERROR-END \\
+ $builddir/src/backend/postgres.orig \\
+ "\$@"
+END
+ close $fh;
+ chdir $branch_root;
+}
+

but the options ( --trace-children=yes --track-origins=yes
--read-var-info=yes --error-exitcode=128 --leak-check=no) shouln't be
too exotic.

The cflags I use are:
CPPFLAGS => '-DUSE_VALGRIND',
CFLAGS => '-Og -ggdb -g3 -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -fno-omit-frame-pointer'

If you can't reproduce I can look into it, but it's unlikely going to be
today...

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2016-04-08 14:56:28 Re: 2016-03 Commitfest
Previous Message Peter Eisentraut 2016-04-08 14:49:47 Re: pam auth - add rhost item