{"thread":{"id":"5340","subject":"non-monotonic index when using http://?","startedAt":"2006-08-21T08:46:06Z","lastAt":"2006-08-21T10:08:55Z","messageCount":4,"participants":["Martin Waitz","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"25680","messageId":"20060821084606.GI30022@admingilde.org","threadId":"5340","inReplyTo":null,"subject":"non-monotonic index when using http://?","fromName":"Martin Waitz","fromEmail":"tali@admingilde.org","sentAt":"2006-08-21T08:46:06Z","receivedAt":"2006-08-21T08:46:06Z","isPatch":false,"sender":{"key":"tali@admingilde.org","avatar":"https://gravatar.com/avatar/3f89b03eee362187effabe257898735b475673a12265c398ea9161259ae91553?d=mp&s=160"},"body":"hoi :)\n\nAt work I'm getting the following error message, any ideas?\n\n> git --version\ngit version 1.4.2.rc4.g242a\n> git pull upstream\nFetching refs/heads/master from http://git.kernel.org/pub/scm/git/git.git using http\nerror: non-monotonic index\nwalk 43134fcb350fb70d26634be163db1f71c14db19f\nwalk 55c3eb434ab6d489c632263239be15a1054df7f2\nGetting alternates list for http://git.kernel.org/pub/scm/git/git.git/\nGetting pack list for http://git.kernel.org/pub/scm/git/git.git/\nerror: non-monotonic index\n/home/tcmc_mwz/i686/bin/git-fetch: line 402:  2077 Segmentation fault\ngit-http-fetch -v -a \"$head\" \"$remote/\"\nzsh: exit 1     git pull upstream\n> gdb git-http-fetch\nGNU gdb Red Hat Linux (6.3.0.0-1.132.EL3rh)\nCopyright 2004 Free Software Foundation, Inc.\nGDB is free software, covered by the GNU General Public License, and you are\nwelcome to change it and/or distribute copies of it under certain conditions.\nType \"show copying\" to see the conditions.\nThere is absolutely no warranty for GDB.  Type \"show warranty\" for details.\nThis GDB was configured as \"i386-redhat-linux-gnu\"...Using host libthread_db library \"/lib/tls/libthread_db.so.1\".\n \n(gdb) run -v -a 43134fcb350fb70d26634be163db1f71c14db19f http://git.kernel.org/pub/scm/git/git.git/\nStarting program: /autohome/tcmc_mwz/src/git/git-http-fetch -v -a 43134fcb350fb70d26634be163db1f71c14db19f http://git.kernel.org/pub/scm/git/git.git/\nerror: non-monotonic index\nwalk 43134fcb350fb70d26634be163db1f71c14db19f\nwalk 55c3eb434ab6d489c632263239be15a1054df7f2\nGetting alternates list for http://git.kernel.org/pub/scm/git/git.git/\nGetting pack list for http://git.kernel.org/pub/scm/git/git.git/\nerror: non-monotonic index\n \nProgram received signal SIGSEGV, Segmentation fault.\n0x0804c1e2 in setup_index (repo=0x991a058,\n    sha1=0xbfffa420 \"y:\\236\\223(mleiA\\227}.[Iï¿¿\\205fï¿¿ï¿¿\") at http-fetch.c:501\n501             new_pack->next = repo->packs;\n(gdb) bt\n#0  0x0804c1e2 in setup_index (repo=0x991a058,\n    sha1=0xbfffa420 \"y:\\236\\223(mleiA\\227}.[Iï¿¿\\205fï¿¿ï¿¿\") at http-fetch.c:501\n#1  0x0804d17c in fetch_indices (repo=0x991a058) at http-fetch.c:946\n#2  0x0804d217 in fetch_pack (repo=0x991a058,\n    sha1=0x994eb9c \"Uï¿¿\\230Dï¿¿\\036 &p\\aihï¿¿\\rï¿¿\\017ï¿¿hs.ï¿¿\") at http-fetch.c:978\n#3  0x0804d7f6 in fetch (sha1=0x994eb9c \"Uï¿¿\\230Dï¿¿\\036 &p\\aihï¿¿\\rï¿¿\\017ï¿¿hs.ï¿¿\")\n    at http-fetch.c:1130\n#4  0x0804a414 in loop () at fetch.c:179\n#5  0x0804a77b in pull (targets=1, target=0xbfffb600, write_ref=0x0,\n    write_ref_log_details=0xbfffd3b9 \"http://git.kernel.org/pub/scm/git/git.git/\") at fetch.c:288\n#6  0x0804dbd7 in main (argc=5, argv=0xbfffb5f4) at http-fetch.c:1282\n\n-- \nMartin Waitz\n"},{"id":"25681","messageId":"7v64gmwil5.fsf@assigned-by-dhcp.cox.net","threadId":"5340","inReplyTo":"20060821084606.GI30022@admingilde.org","subject":"Re: non-monotonic index when using http://?","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-08-21T09:20:38Z","receivedAt":"2006-08-21T09:20:38Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Martin Waitz <tali@admingilde.org> writes:\n\n> hoi :)\n>\n> At work I'm getting the following error message, any ideas?\n>\n>> git --version\n> git version 1.4.2.rc4.g242a\n>> git pull upstream\n> Fetching refs/heads/master from http://git.kernel.org/pub/scm/git/git.git using http\n> error: non-monotonic index\n> walk 43134fcb350fb70d26634be163db1f71c14db19f\n> walk 55c3eb434ab6d489c632263239be15a1054df7f2\n> Getting alternates list for http://git.kernel.org/pub/scm/git/git.git/\n> Getting pack list for http://git.kernel.org/pub/scm/git/git.git/\n> error: non-monotonic index\n\nThe \"non monotonic index\" check is to make sure pack .idx file\nis sane, and it appears that you are getting the error before\nyou fetch new pack from the server, which means one of your\nlocal packs is bad.\n\nI just cloned from the kernel.org archive over http (I usually\ndon't, but your report was alarming enough) and the packfile I\nhave there do not seem to have the problem.\n"},{"id":"25683","messageId":"20060821095419.GK30022@admingilde.org","threadId":"5340","inReplyTo":"7v64gmwil5.fsf@assigned-by-dhcp.cox.net","subject":"Re: non-monotonic index when using http://?","fromName":"Martin Waitz","fromEmail":"tali@admingilde.org","sentAt":"2006-08-21T09:54:20Z","receivedAt":"2006-08-21T09:54:20Z","isPatch":false,"sender":{"key":"tali@admingilde.org","avatar":"https://gravatar.com/avatar/3f89b03eee362187effabe257898735b475673a12265c398ea9161259ae91553?d=mp&s=160"},"body":"On Mon, Aug 21, 2006 at 02:20:38AM -0700, Junio C Hamano wrote:\n> The \"non monotonic index\" check is to make sure pack .idx file\n> is sane, and it appears that you are getting the error before\n> you fetch new pack from the server, which means one of your\n> local packs is bad.\n\nYou are right, the local archive is corrupted, it works with\na fresh clone.\n\nFor some reason, I have a\n.git/objects/pack/pack-793a9e93286d6c656941977d2e5b49e28566edcd.idx\nwithout the corresponding .pack file.\n\nHas anybody seen something like this before?\n\n\nShould GIT bail out earlier when it sees this non-monotonic-index\ncorruption?\nAt least, it should not SEGV later...\n\n-- \nMartin Waitz\n"},{"id":"25684","messageId":"7v1wrawgco.fsf@assigned-by-dhcp.cox.net","threadId":"5340","inReplyTo":"20060821095419.GK30022@admingilde.org","subject":"Re: non-monotonic index when using http://?","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-08-21T10:08:55Z","receivedAt":"2006-08-21T10:08:55Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Martin Waitz <tali@admingilde.org> writes:\n\n> For some reason, I have a\n> .git/objects/pack/pack-793a9e93286d6c656941977d2e5b49e28566edcd.idx\n> without the corresponding .pack file.\n\nIt is worrysome why.  In the meantime you could remove it (if it\nwere a .pack file without .idx then you may want to try feeding\nit to unpack-objects but .idx without corresponding .pack is\npretty much useless).\n\n> At least, it should not SEGV later...\n\nAbsolutely.  The particular code in http-fetch (your gdb session\ntells us exactly where) seems quite loosely written, and there\nmay be other places that do not check return values.\n"}]}