From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Sergei Kornilov <sk@zsrv.org>
Cc: K S, Sandhya (Nokia - IN/Bangalore) <sandhya.k_s@nokia.com>
Cc: 'pgsql-bugs@postgresql.org' <pgsql-bugs@postgresql.org>
Subject: Re: psql crashes found when executing slash commands
Date: Wed, 06 Jun 2018 10:48:09 -0400
Message-ID: <7090.1528296489@sss.pgh.pa.us> (raw)
In-Reply-To: <20180606075911.GL1442@paquier.xyz>
References: <VI1PR0702MB3693CB3B38D5B3A3BD52EF6BD6650@VI1PR0702MB3693.eurprd07.prod.outlook.com>
<2802591528270961@web59j.yandex.ru>
<20180606075911.GL1442@paquier.xyz>
Michael Paquier <michael@paquier.xyz> writes:
> On Wed, Jun 06, 2018 at 10:42:41AM +0300, Sergei Kornilov wrote:
>> Hmm. What operating system are you using? Hardware architecture? Do
>> you compile postgresql yourself or install some precompiled packages?
>> We have tests for psql slash-commands and they are not broken.
> My bet is on an issue with the version of flex used for compilation, and
> that those binaries have been manually compiled.
psql does some, um, interesting stuff with sharing lexer state between
separately-built flex lexers. I would not be too surprised if it crashes
if you build psqlscan.l and psqlscanslash.l with different versions of
flex, or perhaps even just different flex switches. So that might be an
avenue to check into.
Another theory is that the OP is using something that's not flex at all,
or is some version we've never seen before, and this coding technique
doesn't work at all with it :-(
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, sk@zsrv.org, sandhya.k_s@nokia.com
Subject: Re: psql crashes found when executing slash commands
In-Reply-To: <7090.1528296489@sss.pgh.pa.us>
References: <VI1PR0702MB3693CB3B38D5B3A3BD52EF6BD6650@VI1PR0702MB3693.eurprd07.prod.outlook.com> <2802591528270961@web59j.yandex.ru> <20180606075911.GL1442@paquier.xyz> <7090.1528296489@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox