{"thread":{"id":"44691","subject":"log: range_set_append: Assertion failed with -L:funcname:","startedAt":"2016-12-13T08:47:03Z","lastAt":"2016-12-13T08:47:03Z","messageCount":1,"participants":["Kevin Locke"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"307579","messageId":"20161213084151.vwzl56n7ryf7pxfc@kevinolos","threadId":"44691","inReplyTo":null,"subject":"log: range_set_append: Assertion failed with -L:funcname:","fromName":"Kevin Locke","fromEmail":"kevin@kevinlocke.name","sentAt":"2016-12-13T08:41:51Z","receivedAt":"2016-12-13T08:47:03Z","isPatch":false,"sender":{"key":"kevin@kevinlocke.name","avatar":"https://avatars.githubusercontent.com/u/336433?v=4"},"body":"Hi all,\n\nI encountered the following assertion failure when running in a local\nclone of the https://github.com/nodejs/node.git repository:\n\n$ git log -L:writeFileSync:lib/fs.js -L:appendFileSync:lib/fs.js aa67b1^..aa67b1\ngit: line-log.c:71: range_set_append: Assertion `rs->nr == 0 || rs->ranges[rs->nr-1].end <= a' failed.\nAborted\n\nI was able to provoke the same assertion failure in the git repository\nwith the following:\n\n$ git log -L:print_one_push_status:transport.c -L:transport_summary_width:transport.c f9db0c^..f9db0c\n\n(FWIW, f9db0c is a merge commit while aa67b1 is not.)\n\nI was able to reproduce the error with git built from 13b8f6 (the\ncommit which introduced git log -L:pattern:file) as well as current\nnext (91ed5b).  The backtrace from next is attached.\n\nAny assistance to avoid or fix the error would be greatly appreciated.\n\nThanks,\nKevin\n\nP.S.  Please CC me in replies as I am not subscribed to this ML.\n\n-- \nKevin Locke  |  kevin@kevinlocke.name    | XMPP: kevin@kevinlocke.name\n             |  https://kevinlocke.name  | IRC:   kevinoid on freenode\n\n\n#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58\n#1  0x00007ffff6fa040a in __GI_abort () at abort.c:89\n#2  0x00007ffff6f97e47 in __assert_fail_base (fmt=<optimized out>, \n    assertion=assertion@entry=0x555555754400 \"rs->nr == 0 || rs->ranges[rs->nr-1].end <= a\", file=file@entry=0x5555557543eb \"line-log.c\", line=line@entry=71, \n    function=function@entry=0x555555754730 <__PRETTY_FUNCTION__.29201> \"range_set_append\") at assert.c:92\n#3  0x00007ffff6f97ef2 in __GI___assert_fail (\n    assertion=0x555555754400 \"rs->nr == 0 || rs->ranges[rs->nr-1].end <= a\", \n    file=0x5555557543eb \"line-log.c\", line=71, \n    function=0x555555754730 <__PRETTY_FUNCTION__.29201> \"range_set_append\")\n    at assert.c:101\n#4  0x00005555556677dd in range_set_append (rs=0x7fffffffd320, a=421, b=434)\n    at line-log.c:71\n#5  0x00005555556686f8 in range_set_shift_diff (out=0x7fffffffd320, \n    rs=0x7fffffffd330, diff=0x7fffffffd3a0) at line-log.c:442\n#6  0x00005555556687aa in range_set_map_across_diff (out=0x7fffffffd3c0, \n    rs=0x555555ad9698, diff=0x7fffffffd3a0, touched_out=0x7fffffffd410)\n    at line-log.c:465\n#7  0x000055555566a33e in process_diff_filepair (rev=0x7fffffffd5f0, \n    pair=0x555555a60830, range=0x555555ad9680, diff_out=0x7fffffffd410)\n    at line-log.c:1036\n#8  0x000055555566a4ec in process_all_files (range_out=0x555555a5ba10, \n    rev=0x7fffffffd5f0, queue=0x555555a078a0, range=0x555555a347a0)\n    at line-log.c:1076\n#9  0x000055555566a852 in process_ranges_merge_commit (rev=0x7fffffffd5f0, \n    commit=0x555555a19f70, range=0x555555a347a0) at line-log.c:1158\n#10 0x000055555566aa37 in process_ranges_arbitrary_commit (rev=0x7fffffffd5f0, \n    commit=0x555555a19f70) at line-log.c:1202\n#11 0x000055555566ab4b in line_log_filter (rev=0x7fffffffd5f0)\n    at line-log.c:1236\n#12 0x00005555556c59f1 in prepare_revision_walk (revs=0x7fffffffd5f0)\n    at revision.c:2773\n#13 0x00005555555ac8a9 in cmd_log_walk (rev=0x7fffffffd5f0)\n    at builtin/log.c:347\n#14 0x00005555555ad9e1 in cmd_log (argc=4, argv=0x7fffffffe0d8, prefix=0x0)\n    at builtin/log.c:682\n#15 0x0000555555566079 in run_builtin (p=0x5555559b5ba0 <commands+1152>, \n    argc=4, argv=0x7fffffffe0d8) at git.c:373\n#16 0x00005555555662fa in handle_builtin (argc=4, argv=0x7fffffffe0d8)\n    at git.c:572\n#17 0x0000555555566534 in cmd_main (argc=4, argv=0x7fffffffe0d8) at git.c:677\n#18 0x00005555555fd6bf in main (argc=4, argv=0x7fffffffe0d8)\n    at common-main.c:40\n"}]}