Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Mar 2022 14:20:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 262863] www/amfora: post-install hint on how to resolve crash on startup if TERM not recognized [#300]
Message-ID:  <bug-262863-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 262863
           Summary: www/amfora: post-install hint on how to resolve crash
                    on startup if TERM not recognized [#300]
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: lcook@freebsd.org
          Reporter: keen.year0891@fastmail.com
             Flags: maintainer-feedback?(lcook@freebsd.org)
          Assignee: lcook@freebsd.org

A Go dependency compiled into amfora will crash at startup when it doesn=E2=
=80=99t
recognize the terminal type declared in TERM. Investigated with amfora=E2=
=80=99s
author, and reported to the upstream dependencies. (See
https://github.com/makeworld-the-better-one/amfora/issues/300 and mentions
there.)

In my case specifically for running under tmux, installing the ncurses port
resolved the crash. This has to do with missing terminfo data, though
installing the terminfo-db port alone did not help.

Steps to reproduce:
1. On a clean FreeBSD 13.0-RELEASE system, install amfora and tmux from por=
ts
or pkg
2. Run tmux, or export TERM=3Dtmux-256color
3. Run amfora

Expected results:
Amfora starts

Actual results:
Go runtime crashes and prints a stack trace

Suggested workaround: Call out that additional data from ncurses may be nee=
ded
in a post-install message; or, add ncurses as a dependency to cover any
terminfo that may not be bundled as expected.

My system: 13.0-RELEASE-p6 FreeBSD 13.0-RELEASE-p6 #0: Mon Jan 10 06:33:27 =
UTC
2022=20=20=20=20
root@arm64-builder.daemonology.net:/usr/obj/usr/src/arm64.aarch64/sys/GENER=
IC=20
arm64

% amfora -v
Amfora v1.9.2
Commit: 61d8645
Built by: unknown

--=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-262863-7788>