Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jun 2021 14:30:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 256731] devel/bison: core dump on NLS and colorized enabled
Message-ID:  <bug-256731-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256731

            Bug ID: 256731
           Summary: devel/bison: core dump on NLS and colorized enabled
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: lwhsu@FreeBSD.org
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

devel/bison: core dump on NLS and colorized enabled after 3.6.4.  Tested wi=
th
3.7.6, 3.7.5, 3.7.4 in ports, with or without the changes other than version
informataion in Makefile. (USES+=3D iconv, NLS_BUILD_DEPENDS=3D
libtextstyle>=3D0.21:devel/libtextstyle)


lwhsu@x1c:~/tmp > cat foo.y
%pure-parser
lwhsu@x1c:~/tmp > bison --version
bison (GNU Bison) 3.7.6
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
lwhsu@x1c:~/tmp > bison foo.y=20=20=20=20=20=20=20=20=20=20=20
foo.y:1.1-12: warning: deprecated directive: =E2=80=98%pure-parser=E2=80=99=
, use =E2=80=98%define
api.pure=E2=80=99 [[1m%=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20
lwhsu@x1c:~/tmp > bison --color=3Dno foo.y
foo.y:1.1-12: warning: deprecated directive: =E2=80=98%pure-parser=E2=80=99=
, use =E2=80=98%define
api.pure=E2=80=99 [-Wdeprecated]
    1 | %pure-parser
      | ^~~~~~~~~~~~
      | %define api.pure
foo.y:2.1: error: unexpected end of file
foo.y: warning: fix-its can be applied.  Rerun with option '--update'.
[-Wother]
lwhsu@x1c:~/tmp > bison --version=20=20=20=20=20=20=20
bison (GNU Bison) 3.6.4
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
lwhsu@x1c:~/tmp > bison foo.y=20=20=20=20=20=20=20=20=20=20=20
foo.y:1.1-12: warning: deprecated directive: =E2=80=98%pure-parser=E2=80=99=
, use =E2=80=98%define
api.pure=E2=80=99 [-Wdeprecated]
    1 | %pure-parser
      | ^~~~~~~~~~~~
      | %define api.pure
foo.y:2.1: error: unexpected end of file
foo.y: warning: fix-its can be applied.  Rerun with option '--update'.
[-Wother]


lwhsu@x1c:~/tmp > lldb /usr/local/bin/bison=20
(lldb) target create "/usr/local/bin/bison"
Current executable set to '/usr/local/bin/bison' (x86_64).
(lldb) settings set -- target.run-args foo.y
(lldb) run
Process 52566 launching
Process 52566 launched: '/usr/local/bin/bison' (x86_64)
foo.y:1.1-12: warning: deprecated directive: =E2=80=98%pure-parser=E2=80=99=
, use =E2=80=98%define
api.pure=E2=80=99 [[31msignal SIGSEGV: invalid address (fault address: 0x0)
    frame #0: 0x0000000000000000
error: Bad address
(lldb) bt
* thread #1, name =3D 'bison', stop reason =3D signal SIGSEGV: invalid addr=
ess
(fault address: 0x0)
  * frame #0: 0x0000000000000000
    frame #1: 0x000000080084b42a
libncursesw.so.9`delay_output_sp(sp=3D0x0000000000000000, ms=3D<unavailable=
>) at
lib_tputs.c:104:6
    frame #2: 0x000000080084bcb0 libncursesw.so.9`tputs_sp [inlined]
delay_output(ms=3D<unavailable>) at lib_tputs.c:116:12
    frame #3: 0x000000080084bca1 libncursesw.so.9`tputs_sp(sp=3D<unavailabl=
e>,
string=3D"", affcnt=3D1, outc=3D<unavailable>) at lib_tputs.c:432
    frame #4: 0x000000080084be2b
libncursesw.so.9`tputs(string=3D"982f397d0005c5334f28943700000000", affcnt=
=3D1,
outc=3D(libtextstyle.so.0`___lldb_unnamed_symbol150$$libtextstyle.so.0)) at
lib_tputs.c:454:12
    frame #5: 0x000000080030b81c
libtextstyle.so.0`___lldb_unnamed_symbol149$$libtextstyle.so.0 + 92
    frame #6: 0x000000080030c25f
libtextstyle.so.0`___lldb_unnamed_symbol152$$libtextstyle.so.0 + 943
    frame #7: 0x000000080030bb2f
libtextstyle.so.0`___lldb_unnamed_symbol151$$libtextstyle.so.0 + 543
    frame #8: 0x0000000800309790
libtextstyle.so.0`___lldb_unnamed_symbol125$$libtextstyle.so.0 + 32
    frame #9: 0x0000000000223258 bison`___lldb_unnamed_symbol42$$bison + 968
    frame #10: 0x0000000000222e6f bison`___lldb_unnamed_symbol41$$bison + 1=
27
    frame #11: 0x0000000000223632 bison`___lldb_unnamed_symbol46$$bison + 98
    frame #12: 0x00000000002438bf bison`___lldb_unnamed_symbol241$$bison + =
5615
    frame #13: 0x000000000024b579 bison`___lldb_unnamed_symbol296$$bison + =
57
    frame #14: 0x000000000023644e bison`___lldb_unnamed_symbol194$$bison + =
318
    frame #15: 0x000000000021edc0 bison`___lldb_unnamed_symbol1003$$bison +=
 256
(lldb)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256731-7788>