[Bug 254615] lldb: Crashes debugging editors/poke (WITH_DEBUG=1) using ncurses
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Apr 19 12:34:11 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254615
Alex S <iwtcex at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |iwtcex at gmail.com
--- Comment #6 from Alex S <iwtcex at gmail.com> ---
I'll note here for completeness, a similar issue was discussed on
freebsd-current: https://markmail.org/thread/7hbfz2uozk6byulx.
The bison segfault is not particularly difficult to run into. We just need need
a grammar file triggering warnings and a moderately fancy terminal
(xfce4-terminal in my case):
% fetch
https://raw.githubusercontent.com/wine-mirror/wine/master/tools/wrc/parser.y
% bison -p parser_ -o parser.tab.c -d parser.y
parser.y: warning: 5 shift/reduce conflicts [
...
(lldb) bt
* thread #1, name = 'bison', stop reason = signal SIGSEGV
* frame #0: 0x0000000000000000
frame #1: 0x000000080082030a
libncursesw.so.9`delay_output_sp(sp=0x0000000000000000, ms=<unavailable>) at
lib_tputs.c:104:6
frame #2: 0x0000000800820b81 libncursesw.so.9`tputs_sp [inlined]
delay_output(ms=<unavailable>) at lib_tputs.c:116:12
frame #3: 0x0000000800820b72 libncursesw.so.9`tputs_sp(sp=<unavailable>,
string="", affcnt=1, outc=<unavailable>) at lib_tputs.c:422
frame #4: 0x0000000800820cfb
libncursesw.so.9`tputs(string="72dd85a30005c0527fa7ae2e00000000", affcnt=1,
outc=(libtextstyle.so.0`___lldb_unnamed_symbol150$$libtextstyle.so.0)) at
lib_tputs.c:444: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: 0x0000000000223250 bison`___lldb_unnamed_symbol42$$bison + 1024
frame #10: 0x0000000000222e2f bison`___lldb_unnamed_symbol41$$bison + 127
frame #11: 0x0000000000224d43 bison`___lldb_unnamed_symbol57$$bison + 1139
frame #12: 0x000000000023641f bison`___lldb_unnamed_symbol194$$bison + 559
frame #13: 0x000000000021eeb0 bison`___lldb_unnamed_symbol1007$$bison + 256
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
More information about the freebsd-toolchain
mailing list