Tig crashes when searching if used as git pager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tig (Debian) |
Fix Released
|
Unknown
|
|||
tig (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
export GIT_PAGER="tig"
git log
or just
git log | tig
Then, write '/' and hit enter, tig will crash.
This is the backtrace when launching it as
git log | gdb -ex r -ex "set logging on" -ex "bt full" -ex quit --args tig
So it looks like more a readline issue
#0 0x00007ffff7f84a20 in _rl_update_final () at ./display.c:2972
full_lines = 0
woff = 0
#1 0x00007ffff7f8b695 in rl_newline (count=<optimized out>, key=<optimized out>) at ./text.c:1105
No locals.
#2 0x00007ffff7f6d707 in _rl_dispatch_subseq (key=13, map=<optimized out>, got_subseq=
r = 0
newkey = <optimized out>
macro = <optimized out>
func = 0x7ffff7f8b5d0 <rl_newline>
cxt = <optimized out>
#3 0x00007ffff7f6dbf5 in _rl_dispatch (key=<optimized out>, map=<optimized out>) at ./readline.c:798
No locals.
#4 0x00007ffff7f6dcc5 in readline_
lastc = 13
eof_found = <optimized out>
c = <optimized out>
code = <optimized out>
lk = 0
r = <optimized out>
#5 0x00007ffff7f6e4ed in readline_
eof = 1
--Type <RET> for more, q to quit, c to continue without paging-- eof = <optimized out>
#6 readline_internal () at ./readline.c:671
No locals.
#7 readline (prompt=
value = <optimized out>
#8 0x000055555557200d in read_prompt (prompt=
line = 0x0
last_entry = <optimized out>
#9 0x000055555557a2f6 in search_view (view=0x5555555
prompt = 0x5555555928da "/"
search = <optimized out>
#10 0x000055555556134d in view_driver (request=
i = <optimized out>
i = <optimized out>
line = <optimized out>
nviews = <optimized out>
next_view = <optimized out>
#11 main (argc=<optimized out>, argv=<optimized out>) at src/tig.c:840
codeset = <optimized out>
pager_mode = true
request = <optimized out>
view = <optimized out>
A debugging session is active.
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: tig 2.4.1-1build1
ProcVersionSign
Uname: Linux 4.18.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu8
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Nov 4 13:37:48 2019
SourcePackage: tig
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in readline (Ubuntu): | |
status: | New → Invalid |
no longer affects: | readline (Ubuntu) |
Changed in tig (Ubuntu): | |
importance: | Undecided → Medium |
Changed in tig (Debian): | |
status: | Unknown → New |
Changed in tig (Debian): | |
status: | New → Fix Released |
--- wiki.ubuntu. com/BugSquad
Ubuntu Bug Squad volunteer triager
http://