[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison++ 1.21 crash on Apache Thrift compilation
From: |
Akim Demaille |
Subject: |
Re: bison++ 1.21 crash on Apache Thrift compilation |
Date: |
Thu, 16 Aug 2018 07:55:04 +0200 |
Hi!
Bison 1.21 is really obsolete (more that 20 years old,
it’s not even available to download from https://ftp.gnu.org/gnu/bison/).
Please use the latest version (3.0.5 currently).
> Le 24 mai 2017 à 09:31, nojhan <address@hidden> a écrit :
>
> When trying to build a freshly cloned Apache Thrift repository:
> https://thrift.apache.org/
>
> ./bootstrap.sh
>
> ./configure
>
> make
>
> It ends on this error:
> [...]
> /bin/bash ../../../ylwrap thrift/thrifty.yy y.tab.c thrift/thrifty.cc
> y.tab.h `echo thrift/thrifty.cc | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e
> s/cxx$/hxx/ -e s/c+$/h+/ -e s/c$/h/` y.output thrift/thrifty.output – bison
> -y -d
>
> -
> -
> - Error in `bison': double free or corruption (!prev):
> 0x000000000085c380 ***
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f6ba63ca7e5]
> /lib/x86_64-linux-gnu/libc.so.6(+0x7fe0a)[0x7f6ba63d2e0a]
> /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f6ba63d698c]
> /lib/x86_64-linux-gnu/libc.so.6(fclose+0x103)[0x7f6ba63c0363]
> bison[0x407b34]
> bison[0x40ec3a]
> bison[0x40ed37]
> bison[0x4012e4]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
> [0x7f6ba6373830]
> bison[0x4013d4]
> ======= Memory map: ========
> [...]
> "[...]/thrift/compiler/cpp/src/thrift/thrifty.yy", line 1: junk
> after `%%' in definition section
> "[...]/thrift/compiler/cpp/src/thrift/thrifty.yy", line 1: no
> input grammar
> ../../../ylwrap : ligne 174 : 3041 Abandon (core dumped) "$prog"
> "$@" "$input"
> Makefile:908 : la recette pour la cible « thrift/thrifty.cc » a
> échouée
> [...]
>
> A git bisect search indicates that:
>
> 330b3f814a33ab8a740fca4da29106bd7e219b1d is the first bad commit
> commit 330b3f814a33ab8a740fca4da29106bd7e219b1d
> Author: James E. King, III <address@hidden>
> Date: Mon Jan 23 08:52:04 2017 -0500
>
> THRIFT-4034 <https://issues.apache.org/jira/browse/THRIFT-4034> compiler
> build fixes for macos sierra and some cmake cleanup for compiler
> Compiler
> Patch: Robert Lu <address@hidden>
>
> This closes #1161
>
> :100755 100755 e7ab87d35ef566143e83f9bf4aecb4fa741a8ceb
> 82ce366ab3663f4881e3ef3549beec1ff96d5dac M appveyor.yml
> :040000 040000 69fc0bea59360f17a92304fd5ecc85993a757db7
> 88a3617a0a66a1d28440121e4f47e0eec4ff993f M compiler
>
>
> Environment:
>
> - Linux 4.4.0-72-generic #93-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
> - Ubuntu 16.04.2 LTS xenial
> - bison++ 1.21.11-3.1 (as claimed by `dpkg -l bison*`) or 1.21.9-1 (as
> claimed by `bison++ --version`)
> - dpkg -l g+: g+ 4:5.3.1-1ubuntu1 / g++ --version: g++ (Ubuntu
> 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
> - cmake 3.5.1-1ubuntu3
>
>
> --
>
> nojhan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: bison++ 1.21 crash on Apache Thrift compilation,
Akim Demaille <=