{"thread":{"id":"4217","subject":"[BUG] \"stg pull\" on qgit tree shows problems, including git-http-fetch segfault","startedAt":"2006-05-20T12:58:04Z","lastAt":"2006-05-20T14:26:17Z","messageCount":3,"participants":["Yann Dirson","Marco Costalba"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"20320","messageId":"20060520125804.GG6535@nowhere.earth","threadId":"4217","inReplyTo":null,"subject":"[BUG] \"stg pull\" on qgit tree shows problems, including git-http-fetch segfault","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2006-05-20T12:58:04Z","receivedAt":"2006-05-20T12:58:04Z","isPatch":false,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"With \"master\" branch pointing to tags/qgit-1.2~17 and \"origin\" to\n0a327c900530d9dd293cd252894a24913d4172c3, with no patch applied on\n\"master\" stack, using stgit 0.9 and git 1.3.2:\n\n$ stg pull\nPulling from \"origin\"...\nFetching refs/heads/master from http://digilander.libero.it/mcostalba/scm/qgit.git using http\ngot 5d0d2f1703976e04c6db1e55ea6a044981b9ed20\nwalk 5d0d2f1703976e04c6db1e55ea6a044981b9ed20\n[...]\ngot 1f151284442358eee6da80394585491295c94380\nerror: File 24bd6f23c6d0161f7e775a0e6ab767725b6344ab (http://digilander.libero.it/mcostalba/scm/qgit.git/objects/f7/dc43059ca42dec2ea7214a33d1ff3c35e0aca5) corrupt\nGetting pack list for http://digilander.libero.it/mcostalba/scm/qgit.git/\ngot 63dc5a19ec0ac37fec09e4023cd51a62eb3efa15\n[...]\ngot 53563b4b6b32ba7ea184a4eeb555db76e276c8a6\nerror: XML error: syntax error\ngot 73c20d6d667ff3860718d5e1382e686531360082\n[...]\ngot 0219d8723f9a4fa562d99eb0840741112a13466d\nerror: The requested URL returned error: 405\nGetting alternates list for http://digilander.libero.it/mcostalba/scm/qgit.git/\ngot 33e3b252eb5dbe84116a858136b9b35fe43bf768\nAlso look at <meta http-equiv=\"Refresh\" content=\"5;URL=http://digiland.libe\nAlso look at <BASE HREF=\"http://digiland.liber\n/usr/bin/git-fetch: line 268:  3725 Segmentation fault      git-http-fetch -v -a \"$head\" \"$remote/\"\nstg pull: Failed \"git-pull origin\"\n\n\nRunning \"stg pull\" again gives only another \"XML error\", and finishes\nthe pull.\n\nAfter unpacking all packs (mv .git/objects/pack and git-unpack-object\nthe contents) to be sure pruning does force everything to be\nre-fetched, the following commands allow to reproduce the problem:\n\n git-rev-parse tags/qgit-1.2~17 > .git/refs/heads/master \n git-rev-parse tags/qgit-1.2~17 > .git/refs/bases/master \n echo 0a327c900530d9dd293cd252894a24913d4172c3 >.git/refs/heads/origin \n git-prune\n cg-reset\n stg pull\n\nOutput then reproducibly goes like the above, if one reruns the same\n6 commands repeatedly, though the fetch order is not deterministic,\nwhich may explain slight differences in the output.\n\nUsing current HEAD git instead of 1.3.2 does not improve things.\n\nBest regards,\n-- \nYann Dirson    <ydirson@altern.org> |\nDebian-related: <dirson@debian.org> |   Support Debian GNU/Linux:\n                                    |  Freedom, Power, Stability, Gratis\n     http://ydirson.free.fr/        | Check <http://www.debian.org/>\n"},{"id":"20321","messageId":"20060520131232.GH6535@nowhere.earth","threadId":"4217","inReplyTo":"20060520125804.GG6535@nowhere.earth","subject":"Re: [BUG] \"stg pull\" on qgit tree shows problems, including git-http-fetch segfault","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2006-05-20T13:12:33Z","receivedAt":"2006-05-20T13:12:33Z","isPatch":false,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"Let's be more precise - the command that repedetly fails is the\nfollowing.  It is reponsible for both the \"XML error\" message and the\nsegfault.\n\ngit-http-fetch -v -a 79ac640b3129344d4e94573ddaea09ccda1b8e3b http://digilander.libero.it/mcostalba/scm/qgit.git/\n\n\nOutput goes like:\n\nwalk 79ac640b3129344d4e94573ddaea09ccda1b8e3b\nwalk d8bc846d8d2709fa240887da512e8b125a669006\nwalk 5d0d2f1703976e04c6db1e55ea6a044981b9ed20\nerror: File f7dc43059ca42dec2ea7214a33d1ff3c35e0aca5 (http://digilander.libero.it/mcostalba/scm/qgit.git/objects/f7/dc43059ca42dec2ea7214a33d1ff3c35e0aca5) corrupt\nGetting pack list for http://digilander.libero.it/mcostalba/scm/qgit.git/\nerror: XML error: syntax error\nGetting index for pack c47999034002469dddee39ba0069c1b1a84487a5\nerror: Unable to open local file .git/objects/pack/pack-c47999034002469dddee39ba0069c1b1a84487a5.idx for pack index\nGetting alternates list for http://digilander.libero.it/mcostalba/scm/qgit.git/\nAlso look at <meta http-equiv=\"Refresh\" content=\"5;URL=http://digiland.libe\nAlso look at <BASE HREF=\"http://digiland.liber\nSegmentation fault (core dumped)\n\n\ngdb backtrace is:\n\n#0  0xb7caa5d0 in strncpy () from /lib/tls/libc.so.6\n#1  0x0804c177 in process_alternates_response (callback_data=0xbfd428ec) at http-fetch.c:587\n#2  0x0804a6c8 in process_curl_messages () at http.c:461\n#3  0x0804a773 in step_active_slots () at http.c:379\n#4  0x0804a7c7 in run_active_slot (slot=0x807f6a8) at http.c:400\n#5  0x0804c565 in fetch_alternates (base=0xbfd45424 \"http://digilander.libero.it/mcostalba/scm/qgit.git/\") at http-fetch.c:668\n#6  0x0804d46c in fetch (sha1=0x807f448 \"÷ÜC\\005\\234¤-ì.§!J3Ñÿ<5à¬¥\\225¹\\005\\b\") at http-fetch.c:1131\n#7  0x0804a1ad in pull (target=0xbfd453fb \"79ac640b3129344d4e94573ddaea09ccda1b8e3b\") at fetch.c:168\n#8  0x0804b590 in main (argc=5, argv=0xbfd43af4) at http-fetch.c:1269\n\n\nThe crash in process_alternates_response occurs on line:\n\n587                                     strncpy(target + serverlen, data + i,\n588                                             posn - i - 7);\n\n(gdb) p target\n$1 = 0x80800b8 \"http://digilander.libero.it//-->\\n</script>\\n\\n<script language=\\\"Javascript\\\" src=\\\"/x/js/nu05.js\\\"></script>\\n\\n<script>\\n<!--\\n\\nfunction loaded() {\\n\\tcommon_boot();\\n\\t\\n\\t\\t\\n}\\n\\nfunction unloaded() {\\n\\tcommon_unload\"...\n(gdb) p target+serverlen\n$2 = 0x80800d3 \"//-->\\n</script>\\n\\n<script language=\\\"Javascript\\\" src=\\\"/x/js/nu05.js\\\"></script>\\n\\n<script>\\n<!--\\n\\nfunction loaded() {\\n\\tcommon_boot();\\n\\t\\n\\t\\t\\n}\\n\\nfunction unloaded() {\\n\\tcommon_unload();\\n\\t}\\n\\nfunction eoc() {\\n\\tc\"...\n(gdb) p data\n$3 = 0x809c840 \"\"\n(gdb) p i\n$4 = 134739640\n(gdb) p posn\n$5 = 1304\n\n\nLooks like something is going very wrong, like wrong assumptions about received HTML.\n\n-- \nYann Dirson    <ydirson@altern.org> |\nDebian-related: <dirson@debian.org> |   Support Debian GNU/Linux:\n                                    |  Freedom, Power, Stability, Gratis\n     http://ydirson.free.fr/        | Check <http://www.debian.org/>\n"},{"id":"20324","messageId":"e5bfff550605200726q5e23e60cu8885c0898ca10787@mail.gmail.com","threadId":"4217","inReplyTo":"20060520125804.GG6535@nowhere.earth","subject":"Re: [BUG] \"stg pull\" on qgit tree shows problems, including git-http-fetch segfault","fromName":"Marco Costalba","fromEmail":"mcostalba@gmail.com","sentAt":"2006-05-20T14:26:17Z","receivedAt":"2006-05-20T14:26:17Z","isPatch":false,"sender":{"key":"mcostalba@gmail.com","avatar":null},"body":"On 5/20/06, Yann Dirson <ydirson@altern.org> wrote:\n> With \"master\" branch pointing to tags/qgit-1.2~17 and \"origin\" to\n> 0a327c900530d9dd293cd252894a24913d4172c3, with no patch applied on\n> \"master\" stack, using stgit 0.9 and git 1.3.2:\n>\n\nPlease reclone qgit repo and try again.\n\nThe public repository was broken by a my mistake few days ago. So you\nneed to reclone.\n\nThanks\nMarco\n"}]}