Re: psql crash while executing core regression tests

From: Hamid Akhtar <hamid(dot)akhtar(at)gmail(dot)com>
To: walker <failaway(at)qq(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: psql crash while executing core regression tests
Date: 2021-03-02 14:33:01
Message-ID: CANugjhs+y2iqeK_hzbHr7Zou3vPJM46UqAsJgM7utZ2_zGy5gg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I use CentOS 7 with flex 2.5.37 quite extensively have never come across a
psql crash. This seems more like an environment related issue on your
system.

On Tue, Mar 2, 2021 at 1:53 PM walker <failaway(at)qq(dot)com> wrote:

> hi
>
> During installation from source code, there are many crashes for psql
> while executing core regression tests, all the crashes are similar, the
> backtrace info as follows:
>
> Core was generated by 'psql'.
> Program terminated with signal 11, Segmentation fault.
> # 0 0x000000000043f140 in slash_yylex()
> (gdb) bt
> #0 0x000000000043f140 in slash_yylex()
> #1 0x00000000004430fc in psql_scan_slash_command()
> #2 0x000000000043f140 in HandleSlashCmds()
> #3 0x000000000043f140 in MainLoop()
> #4 0x000000000043f140 in main()
>
> I did more compared testing about this scenario, as follows:
> 1. install from local source code(xxx.tar.gz)
> 1) switch to source tree directory, and build there ---- no crash
> generated
> 2) create a build directory, and build there ---- no crash generated
>
> 2. install from git source code
> 1) switch to source tree directory, and build there ---- no crash generated
> 2) create a build directory, and build there ---- many crashes generated,
> but if install newer version of flex, e.g. 2.6.4, the problem doesn't
> exist. Any suggestions about this behavior?
>
> NOTES:
> test commands are same, as follows:
> configure --enable-coverage --enable-tap-tests
> make
> make check
>
> testing environment:
> PostgreSQL: 13.2
> redhat 7.4, 3.10.0-693.e17.x86_64
> flex: 2.5.37
>
> thanks
> walker
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-03-02 14:42:36 Re: [PATCH] Support empty ranges with bounds information
Previous Message Alvaro Herrera 2021-03-02 14:32:48 Re: [PATCH] Bug fix in initdb output