Steps to reproduce
1. commit newfile.txt with at least one line
2. git log --follow -L 1,1:newfile.txt -- newfile.txt

Stack trace on git rev f9b6481a:

Program received signal SIGSEGV, Segmentation fault.
try_to_follow_renames (old_oid=old_oid@entry=0x5555558ef8bc, 
new_oid=new_oid@entry=0x5555558ef424, base=base@entry=0x7fffffffc7b0, 
opt=opt@entry=0x7fffffffd098) at tree-diff.c:616
616             diff_opts.single_follow = opt->pathspec.items[0].match;
(gdb) bt
#0  try_to_follow_renames (old_oid=old_oid@entry=0x5555558ef8bc, 
new_oid=new_oid@entry=0x5555558ef424, base=base@entry=0x7fffffffc7b0, 
opt=opt@entry=0x7fffffffd098) at tree-diff.c:616
#1  0x000055555578039e in diff_tree_oid (old_oid=old_oid@entry=0x5555558ef8bc, 
new_oid=new_oid@entry=0x5555558ef424, base_str=base_str@entry=0x5555557fe1f2 
"", opt=opt@entry=0x7fffffffd098) at tree-diff.c:710
#2  0x00005555556bcf9d in queue_diffs (range=range@entry=0x555555d78860, 
opt=opt@entry=0x7fffffffd098, queue=queue@entry=0x7fffffffc8a0, 
commit=commit@entry=0x5555558dd410, parent=parent@entry=0x5555558dd458) at 
line-log.c:859
#3  0x00005555556bee40 in process_ranges_ordinary_commit (range=0x555555d78860, 
commit=0x5555558dd410, rev=0x7fffffffcb30) at line-log.c:1192
#4  line_log_process_ranges_arbitrary_commit (rev=rev@entry=0x7fffffffcb30, 
commit=commit@entry=0x5555558dd410) at line-log.c:1274
#5  0x000055555573421b in get_commit_action (revs=0x7fffffffcb30, 
commit=0x5555558dd410) at revision.c:3817
#6  0x00005555557342c9 in simplify_commit (revs=revs@entry=0x7fffffffcb30, 
commit=commit@entry=0x5555558dd410) at revision.c:3917
#7  0x0000555555734439 in get_revision_1 (revs=revs@entry=0x7fffffffcb30) at 
revision.c:3995
#8  0x000055555573485b in get_revision_internal 
(revs=revs@entry=0x7fffffffcb30) at revision.c:4102
#9  0x00005555557349ae in get_revision (revs=revs@entry=0x7fffffffcb30) at 
revision.c:4176
#10 0x00005555555cc8b1 in cmd_log_walk (rev=rev@entry=0x7fffffffcb30) at 
builtin/log.c:415
#11 0x00005555555cd788 in cmd_log (argc=7, argv=0x7fffffffd9d0, prefix=0x0) at 
builtin/log.c:753
#12 0x00005555555721a5 in run_builtin (argv=<optimized out>, argc=<optimized 
out>, p=<optimized out>) at git.c:450
#13 handle_builtin (argc=<optimized out>, argv=<optimized out>) at git.c:700
#14 0x0000555555573314 in run_argv (argv=0x7fffffffd720, argcp=0x7fffffffd72c) 
at git.c:767
#15 cmd_main (argc=<optimized out>, argv=<optimized out>) at git.c:898
#16 0x0000555555571d3e in main (argc=8, argv=0x7fffffffd9c8) at common-main.c:52

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1879961

Title:
  
/usr/bin/git:11:try_to_follow_renames:diff_tree_oid:queue_diffs:process_ranges_ordinary_commit:process_ranges_arbitrary_commit

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/git/+bug/1879961/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to