Summary: | lldb: Crashes debugging editors/poke (WITH_DEBUG=1) using ncurses | ||
---|---|---|---|
Product: | Base System | Reporter: | Juraj Lutter <otis> |
Component: | bin | Assignee: | freebsd-toolchain (Nobody) <toolchain> |
Status: | Open --- | ||
Severity: | Affects Some People | CC: | Alexander88207, emaste, iwtcex, mistresssilvara, toolchain |
Priority: | --- | Keywords: | crash, needs-qa |
Version: | 13.0-STABLE | ||
Hardware: | Any | ||
OS: | Any | ||
Bug Depends on: | 256731 | ||
Bug Blocks: |
Description
Juraj Lutter
![]() ![]() ^Triage: assign. Note to submitter: the architecture might (or might not) be relevant here. ^Triage: Loop Baptiste for potential insight @Reporter - What is the exact FreeBSD version - Is the debugged software available publicly for reproduction? - System is FreeBSD b13.owbuild.lan 13.0-STABLE FreeBSD 13.0-STABLE #5 stable/13-85ad493677a2 - Software is editors/poke where a crash occurs in tputs(). The port is being built with WITH_DEBUG=1 to keep debug symbols. ^Triage: Ed may be able to advise here, loop in for feedback 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 (In reply to Alex S from comment #6) Yes, it was, and I was also participating in that discussion. Followup is needed. Apparently, all the action is in bug 256731. ^Triage: Setting dependent, close pending issue 256731 comment 13 |