{"thread":{"id":"33454","subject":"Git crash in Ubuntu 12.04","startedAt":"2013-04-10T06:41:46Z","lastAt":"2013-04-24T14:51:08Z","messageCount":13,"participants":["Sivaram Kannan","Thomas Rast","Konstantin Khomoutov","Duy Nguyen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"213746","messageId":"CAJiNi_FfU9Gsr2D9CcC0wWwgO1oKBXwxp87-wBUJBU2kyGaQNQ@mail.gmail.com","threadId":"33454","inReplyTo":null,"subject":"Git crash in Ubuntu 12.04","fromName":"Sivaram Kannan","fromEmail":"siva.devel@gmail.com","sentAt":"2013-04-10T06:41:46Z","receivedAt":"2013-04-10T06:41:46Z","isPatch":false,"sender":{"key":"siva.devel@gmail.com","avatar":null},"body":"Hi,\n\nI am using git with Gitlab/Gitolite configuration. Git version is\n1.7.9.5 in Ubuntu 12.04. There has been a consistent git crash\nrecently and have attached the /var/crash/_usr_lib_git-core_\ngit.1001.crash file.\n\nThe crash output is pasted in the following link\n\nhttp://pastebin.com/uAQS81BX\n\nI removed some long binary information at the end of the file as\npastebin does not allow more than 500k pasting. The crash is\nconsistently happening and I am planning on for a debian deployment of\ngitlab.\n\nPlease advice what could I do to solve this problem.\n\n\n./Siva.\n"},{"id":"213756","messageId":"87mwt6ltia.fsf@linux-k42r.v.cablecom.net","threadId":"33454","inReplyTo":"CAJiNi_FfU9Gsr2D9CcC0wWwgO1oKBXwxp87-wBUJBU2kyGaQNQ@mail.gmail.com","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Thomas Rast","fromEmail":"trast@inf.ethz.ch","sentAt":"2013-04-10T07:44:29Z","receivedAt":"2013-04-10T07:44:29Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Sivaram Kannan <siva.devel@gmail.com> writes:\n\n> Hi,\n>\n> I am using git with Gitlab/Gitolite configuration. Git version is\n> 1.7.9.5 in Ubuntu 12.04. There has been a consistent git crash\n> recently and have attached the /var/crash/_usr_lib_git-core_\n> git.1001.crash file.\n>\n> The crash output is pasted in the following link\n>\n> http://pastebin.com/uAQS81BX\n>\n> I removed some long binary information at the end of the file as\n> pastebin does not allow more than 500k pasting. The crash is\n> consistently happening and I am planning on for a debian deployment of\n> gitlab.\n\nCan you tell us what command you ran, and also try to get a readable\nbacktrace from your installation?\n\nIt seems that the paste would have contained a core dump (you snipped\nit9, but it would be pretty useless without the corresponding binary\nanyway.  Once you have the coredump in hand (as a file) you can use\n\n  gdb $(which git) the_coredump_file\n\nand then in the GDB prompt, enter 'backtrace' and paste its output, to\ngive us an idea what is going on.\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"},{"id":"213919","messageId":"CAJiNi_EgjgKs7oNJyGcamUFz=ARDAuBTb+bJ0uVsPFBMbZF3YA@mail.gmail.com","threadId":"33454","inReplyTo":"87mwt6ltia.fsf@linux-k42r.v.cablecom.net","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Sivaram Kannan","fromEmail":"siva.devel@gmail.com","sentAt":"2013-04-11T10:20:31Z","receivedAt":"2013-04-11T10:20:31Z","isPatch":false,"sender":{"key":"siva.devel@gmail.com","avatar":null},"body":"Hi,\n\nThanks for the reply.\n\n> Can you tell us what command you ran, and also try to get a readable\n> backtrace from your installation?\n>\n\nThe crash is happening only when the users are trying to do a clone. I\nwas monitoring from the htop when triggering a clone operation, all\nthe cores of the processor hits 100% for some time before dropping.\nThe servers hw config is Intel Quad core processor with 8GB Ram.\n\n> It seems that the paste would have contained a core dump (you snipped\n> it9, but it would be pretty useless without the corresponding binary\n> anyway.  Once you have the coredump in hand (as a file) you can use\n>\n>   gdb $(which git) the_coredump_file\n>\n> and then in the GDB prompt, enter 'backtrace' and paste its output, to\n> give us an idea what is going on.\n>\n\nOutput of coredump gdb:\n\ngitadmin@gitserver:/var/crash/dump$ gdb git CoreDump\nGNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04\nCopyright (C) 2012 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\nThis GDB was configured as \"x86_64-linux-gnu\".\nFor bug reporting instructions, please see:\n<http://bugs.launchpad.net/gdb-linaro/>...\nReading symbols from /usr/bin/git...(no debugging symbols found)...done.\nBFD: Warning: /var/crash/dump/CoreDump is truncated: expected core\nfile size >= 600195072, found: 1114112.\n[New LWP 17584]\n[New LWP 17587]\n[New LWP 17586]\n[New LWP 17440]\n[New LWP 17585]\nCannot access memory at address 0x7f193623e2a8\nCannot access memory at address 0x7f193623e2a0\n(gdb) bt\n#0  0x00000000004820f0 in ?? ()\nCannot access memory at address 0x7f191073bda8\n(gdb)\n\n\n=========\n\nThe following I am copy pasting from the file called ProcMaps, which\ngets created after I run apport-unpack <crashfile>.\n\n00400000-00541000 r-xp 00000000 fc:00 2098029\n  /usr/lib/git-core/git\n 00741000-00742000 r--p 00141000 fc:00 2098029\n   /usr/lib/git-core/git\n 00742000-00749000 rw-p 00142000 fc:00 2098029\n   /usr/lib/git-core/git\n 00749000-00799000 rw-p 00000000 00:00 0\n 01c13000-01ecf000 rw-p 00000000 00:00 0                                  [heap]\n 7f1ad57c0000-7f1ae0000000 rw-p 00000000 00:00 0\n 7f1ae0000000-7f1ae0ed4000 rw-p 00000000 00:00 0\n 7f1ae0ed4000-7f1ae4000000 ---p 00000000 00:00 0\n 7f1ae4000000-7f1ae665f000 rw-p 00000000 00:00 0\n 7f1ae665f000-7f1ae8000000 ---p 00000000 00:00 0\n 7f1ae8000000-7f1aea91a000 rw-p 00000000 00:00 0\n 7f1aea91a000-7f1aec000000 ---p 00000000 00:00 0\n 7f1aec000000-7f1aefede000 rw-p 00000000 00:00 0\n 7f1aefede000-7f1af0000000 ---p 00000000 00:00 0\n 7f1af0000000-7f1af3b95000 rw-p 00000000 00:00 0\n 7f1af3b95000-7f1af4000000 ---p 00000000 00:00 0\n 7f1af414b000-7f1af5eaf000 rw-p 00000000 00:00 0\n 7f1af6c4d000-7f1af6ffe000 rw-p 00000000 00:00 0\n 7f1af6ffe000-7f1af6fff000 ---p 00000000 00:00 0\n 7f1af6fff000-7f1af77ff000 rw-p 00000000 00:00 0\n 7f1af77ff000-7f1af7800000 ---p 00000000 00:00 0\n 7f1af7800000-7f1af8000000 rw-p 00000000 00:00 0\n 7f1af8000000-7f1afb9cf000 rw-p 00000000 00:00 0\n 7f1afb9cf000-7f1afc000000 ---p 00000000 00:00 0\n 7f1afc113000-7f1afc114000 ---p 00000000 00:00 0\n 7f1afc114000-7f1afc914000 rw-p 00000000 00:00 0\n 7f1afc914000-7f1afc915000 ---p 00000000 00:00 0\n 7f1afc915000-7f1afd115000 rw-p 00000000 00:00 0\n 7f1afd115000-7f1afe147000 r--p 00000000 fc:00 13371109\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-a72ab4cf996276ca527a26c6711414e97828aa01.pack\n 7f1afe147000-7f1afe52d000 rw-p 00000000 00:00 0\n 7f1afe8ad000-7f1afe92e000 rw-p 00000000 00:00 0\n 7f1afe92e000-7f1afea57000 r--p 00000000 fc:00 13371175\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-725eb21535f4d3782dce7c1f163c535ae46dd7a3.pack\n 7f1afea57000-7f1afeaab000 r--p 00000000 fc:00 13371183\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-a242e26dd75d9f94ac7cc021b79b5a23be86f772.pack\n 7f1afeaab000-7f1afeb2d000 r--p 00000000 fc:00 13371188\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-8df0b1d878ce57e7b81439bfbbed75da58298d4f.pack\n 7f1afeb2d000-7f1afed1c000 r--p 00000000 fc:00 13371200\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-e7279a5e263e36487664846efd3cf8e326e28b52.pack\n 7f1afed1c000-7f1afee48000 r--p 00000000 fc:00 13371324\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-b9440d0950347a7f42994eecb3e4b96ac6cba2ef.pack\n 7f1afee48000-7f1afef23000 r--p 00000000 fc:00 13371272\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-334b5d2e30e802e8d11095d64348c61a6fabf4ab.pack\n 7f1afef23000-7f1b00280000 r--p 00000000 fc:00 13371511\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-89264699af6b413cbcba76e68866a9531693dc2e.pack\n 7f1b00280000-7f1b00391000 r--p 00000000 fc:00 13372427\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-c7d9d3af8fb96dd231186fcdb08c451e0aba3cc2.pack\n 7f1b00391000-7f1b003fa000 r--p 00000000 fc:00 13372643\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-f5fcf2f514ee6233964234e7d5947f03013b6b21.pack\n 7f1b003fa000-7f1b02efe000 r--p 00000000 fc:00 13372753\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-dfb6ee684e3f58549254a7ddb18776670f64b8f5.pack\n 7f1b02efe000-7f1b049e4000 r--p 00000000 fc:00 13371038\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-08a676f6ba45b69cd2a19a7d9f626bd24d9a7c6a.pack\n 7f1b049e4000-7f1b049ec000 r--p 00000000 fc:00 13371071\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-075a4d75da5f11b72a3a9a68cb1e6209efe1080b.pack\n 7f1b049ec000-7f1b0a3fd000 r--p 00000000 fc:00 13371039\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-8c618ce37614112a933a2dd02bfc4095813f9912.pack\n 7f1b0a3fd000-7f1b0a64b000 r--p 00000000 fc:00 13371075\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-af68425c69ab8a50a8e6bb58e13d742f8b5d5edd.pack\n 7f1b0a67c000-7f1b0a67d000 rw-p 00000000 00:00 0\n 7f1b0a67d000-7f1b0a814000 r--p 00000000 fc:00 13372807\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-7067e4bd2b58f72bcb1a88a3df35cee5cc429090.pack\n 7f1b0a814000-7f1b13509000 r--p 00000000 fc:00 13370795\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-61336138de0ccbe951b4652f43d7bbd087edb380.pack\n 7f1b13509000-7f1b2604f000 r--p 00000000 fc:00 13370792\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-04da49cd5676b94d557fe984d9a844c1eae94477.pack\n 7f1b2604f000-7f1b2623b000 r--p 00000000 fc:00 13371128\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-d79143b52a19edf04d485434f10663ccbb9eee88.pack\n 7f1b2623b000-7f1b2629f000 r--p 00000000 fc:00 13370793\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-04da49cd5676b94d557fe984d9a844c1eae94477.idx\n 7f1b2629f000-7f1b262a4000 r--p 00000000 fc:00 13371117\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-a72ab4cf996276ca527a26c6711414e97828aa01.idx\n 7f1b262a4000-7f1b262a8000 r--p 00000000 fc:00 13371178\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-725eb21535f4d3782dce7c1f163c535ae46dd7a3.idx\n 7f1b262a8000-7f1b262ab000 r--p 00000000 fc:00 13371184\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-a242e26dd75d9f94ac7cc021b79b5a23be86f772.idx\n 7f1b262ab000-7f1b262af000 r--p 00000000 fc:00 13371189\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-8df0b1d878ce57e7b81439bfbbed75da58298d4f.idx\n 7f1b262af000-7f1b262b3000 r--p 00000000 fc:00 13371202\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-e7279a5e263e36487664846efd3cf8e326e28b52.idx\n 7f1b262b3000-7f1b262b6000 r--p 00000000 fc:00 13371277\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-334b5d2e30e802e8d11095d64348c61a6fabf4ab.idx\n 7f1b262b6000-7f1b262b9000 r--p 00000000 fc:00 13371325\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-b9440d0950347a7f42994eecb3e4b96ac6cba2ef.idx\n 7f1b262b9000-7f1b262bb000 r--p 00000000 fc:00 13372359\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-89264699af6b413cbcba76e68866a9531693dc2e.idx\n 7f1b262bb000-7f1b262bd000 r--p 00000000 fc:00 13372428\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-c7d9d3af8fb96dd231186fcdb08c451e0aba3cc2.idx\n 7f1b262bd000-7f1b262c0000 r--p 00000000 fc:00 13372645\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-f5fcf2f514ee6233964234e7d5947f03013b6b21.idx\n 7f1b262c0000-7f1b262c2000 r--p 00000000 fc:00 13372762\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-dfb6ee684e3f58549254a7ddb18776670f64b8f5.idx\n 7f1b262c2000-7f1b262c5000 r--p 00000000 fc:00 13372809\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-7067e4bd2b58f72bcb1a88a3df35cee5cc429090.idx\n 7f1b262c5000-7f1b262f2000 r--p 00000000 fc:00 13371005\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-61336138de0ccbe951b4652f43d7bbd087edb380.idx\n 7f1b262f2000-7f1b262f6000 r--p 00000000 fc:00 13371043\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-08a676f6ba45b69cd2a19a7d9f626bd24d9a7c6a.idx\n 7f1b262f6000-7f1b262f9000 r--p 00000000 fc:00 13371072\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-075a4d75da5f11b72a3a9a68cb1e6209efe1080b.idx\n 7f1b262f9000-7f1b262fb000 r--p 00000000 fc:00 13371073\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-8c618ce37614112a933a2dd02bfc4095813f9912.idx\n 7f1b262fb000-7f1b26300000 r--p 00000000 fc:00 13371076\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-af68425c69ab8a50a8e6bb58e13d742f8b5d5edd.idx\n 7f1b26300000-7f1b26306000 r--p 00000000 fc:00 13371129\n   /home/git/repositories/sggroup/storegrid.git/objects/pack/pack-d79143b52a19edf04d485434f10663ccbb9eee88.idx\n 7f1b26306000-7f1b265cf000 r--p 00000000 fc:00 530936\n   /usr/lib/locale/locale-archive\n 7f1b265cf000-7f1b26784000 r-xp 00000000 fc:00 18616016\n   /lib/x86_64-linux-gnu/libc-2.15.so\n 7f1b26784000-7f1b26983000 ---p 001b5000 fc:00 18616016\n   /lib/x86_64-linux-gnu/libc-2.15.so\n 7f1b26983000-7f1b26987000 r--p 001b4000 fc:00 18616016\n   /lib/x86_64-linux-gnu/libc-2.15.so\n 7f1b26987000-7f1b26989000 rw-p 001b8000 fc:00 18616016\n   /lib/x86_64-linux-gnu/libc-2.15.so\n 7f1b26989000-7f1b2698e000 rw-p 00000000 00:00 0\n 7f1b2698e000-7f1b269a6000 r-xp 00000000 fc:00 18616018\n   /lib/x86_64-linux-gnu/libpthread-2.15.so\n 7f1b269a6000-7f1b26ba5000 ---p 00018000 fc:00 18616018\n   /lib/x86_64-linux-gnu/libpthread-2.15.so\n 7f1b26ba5000-7f1b26ba6000 r--p 00017000 fc:00 18616018\n   /lib/x86_64-linux-gnu/libpthread-2.15.so\n 7f1b26ba6000-7f1b26ba7000 rw-p 00018000 fc:00 18616018\n   /lib/x86_64-linux-gnu/libpthread-2.15.so\n 7f1b26ba7000-7f1b26bab000 rw-p 00000000 00:00 0\n 7f1b26bab000-7f1b26bc3000 r-xp 00000000 fc:00 18616021\n   /lib/x86_64-linux-gnu/libresolv-2.15.so\n 7f1b26bc3000-7f1b26dc3000 ---p 00018000 fc:00 18616021\n   /lib/x86_64-linux-gnu/libresolv-2.15.so\n 7f1b26dc3000-7f1b26dc4000 r--p 00018000 fc:00 18616021\n   /lib/x86_64-linux-gnu/libresolv-2.15.so\n 7f1b26dc4000-7f1b26dc5000 rw-p 00019000 fc:00 18616021\n   /lib/x86_64-linux-gnu/libresolv-2.15.so\n 7f1b26dc5000-7f1b26dc7000 rw-p 00000000 00:00 0\n 7f1b26dc7000-7f1b26ddd000 r-xp 00000000 fc:00 18612452\n   /lib/x86_64-linux-gnu/libz.so.1.2.3.4\n 7f1b26ddd000-7f1b26fdc000 ---p 00016000 fc:00 18612452\n   /lib/x86_64-linux-gnu/libz.so.1.2.3.4\n 7f1b26fdc000-7f1b26fdd000 r--p 00015000 fc:00 18612452\n   /lib/x86_64-linux-gnu/libz.so.1.2.3.4\n 7f1b26fdd000-7f1b26fde000 rw-p 00016000 fc:00 18612452\n   /lib/x86_64-linux-gnu/libz.so.1.2.3.4\n 7f1b26fde000-7f1b27000000 r-xp 00000000 fc:00 18616030\n   /lib/x86_64-linux-gnu/ld-2.15.so\n 7f1b271f3000-7f1b271f7000 rw-p 00000000 00:00 0\n 7f1b271fe000-7f1b27200000 rw-p 00000000 00:00 0\n 7f1b27200000-7f1b27201000 r--p 00022000 fc:00 18616030\n   /lib/x86_64-linux-gnu/ld-2.15.so\n 7f1b27201000-7f1b27203000 rw-p 00023000 fc:00 18616030\n   /lib/x86_64-linux-gnu/ld-2.15.so\n 7fff63db5000-7fff63dd6000 rw-p 00000000 00:00 0\n   [stack]\n 7fff63dff000-7fff63e00000 r-xp 00000000 00:00 0                          [vdso]\n ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0\n   [vsyscall]\n"},{"id":"213955","messageId":"20130411170659.a35d2c581cf34ade13448bfa@domain007.com","threadId":"33454","inReplyTo":"CAJiNi_EgjgKs7oNJyGcamUFz=ARDAuBTb+bJ0uVsPFBMbZF3YA@mail.gmail.com","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Konstantin Khomoutov","fromEmail":"flatworm@users.sourceforge.net","sentAt":"2013-04-11T13:06:59Z","receivedAt":"2013-04-11T13:06:59Z","isPatch":false,"sender":{"key":"flatworm@users.sourceforge.net","avatar":null},"body":"On Thu, 11 Apr 2013 15:50:31 +0530\nSivaram Kannan <siva.devel@gmail.com> wrote:\n\n[...]\n> Output of coredump gdb:\n> \n> gitadmin@gitserver:/var/crash/dump$ gdb git CoreDump\n> GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04\n> Copyright (C) 2012 Free Software Foundation, Inc.\n> License GPLv3+: GNU GPL version 3 or later\n> <http://gnu.org/licenses/gpl.html> This is free software: you are\n> free to change and redistribute it. There is NO WARRANTY, to the\n> extent permitted by law.  Type \"show copying\" and \"show warranty\" for\n> details. This GDB was configured as \"x86_64-linux-gnu\".\n> For bug reporting instructions, please see:\n> <http://bugs.launchpad.net/gdb-linaro/>...\n> Reading symbols from /usr/bin/git...(no debugging symbols\n> found)...done. BFD: Warning: /var/crash/dump/CoreDump is truncated:\n> expected core file size >= 600195072, found: 1114112.\n\n^^^ Try to issue the\n\n$ ulimit -c unlimited\n\ncommand in your shell before attempting the cloning -- this should\nremove the upper limit on the core file size.  And try look for the core\nfile in the current directory after the crash occurs.  I'm not sure\nUbuntu's \"crash interceptor\" won't kick in, but just in case...\n"},{"id":"214055","messageId":"CAJiNi_Gju2aJkVJJmoxnEAubfPvjaVhVF6DisaLn5kUJ3YRD=w@mail.gmail.com","threadId":"33454","inReplyTo":"20130411170659.a35d2c581cf34ade13448bfa@domain007.com","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Sivaram Kannan","fromEmail":"siva.devel@gmail.com","sentAt":"2013-04-12T13:28:24Z","receivedAt":"2013-04-12T13:28:24Z","isPatch":false,"sender":{"key":"siva.devel@gmail.com","avatar":null},"body":"Hi,\n\n>\n> ^^^ Try to issue the\n>\n> $ ulimit -c unlimited\n\nHave set the git user's crash limit to 1GB in\n/etc/security/limits.conf and still getting the same error when\nissuing gdb to the crash file.\n\n>\n> command in your shell before attempting the cloning -- this should\n> remove the upper limit on the core file size.  And try look for the core\n> file in the current directory after the crash occurs.  I'm not sure\n> Ubuntu's \"crash interceptor\" won't kick in, but just in case...\n\nYou mean, /usr/bin/git? crash file for git is getting created each\ntime it crashes in /var/crash.\n\nCan you please tell me what else I could try? Would upgrading to the\n1.8.2.1 - latest in Ubuntu PPA would help?\n\n./Siva.\n"},{"id":"214057","messageId":"20130412180525.aa5b8eacd691a427244d6ab5@domain007.com","threadId":"33454","inReplyTo":"CAJiNi_Gju2aJkVJJmoxnEAubfPvjaVhVF6DisaLn5kUJ3YRD=w@mail.gmail.com","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Konstantin Khomoutov","fromEmail":"flatworm@users.sourceforge.net","sentAt":"2013-04-12T14:05:25Z","receivedAt":"2013-04-12T14:05:25Z","isPatch":false,"sender":{"key":"flatworm@users.sourceforge.net","avatar":null},"body":"On Fri, 12 Apr 2013 18:58:24 +0530\nSivaram Kannan <siva.devel@gmail.com> wrote:\n\n> > ^^^ Try to issue the\n> >\n> > $ ulimit -c unlimited\n> \n> Have set the git user's crash limit to 1GB in\n> /etc/security/limits.conf and still getting the same error when\n> issuing gdb to the crash file.\n\nYep, suppsedly in Ubuntu it's not that easy to just get a plain old\ncoredump file -- see below.\n\n> > command in your shell before attempting the cloning -- this should\n> > remove the upper limit on the core file size.  And try look for the\n> > core file in the current directory after the crash occurs.  I'm not\n> > sure Ubuntu's \"crash interceptor\" won't kick in, but just in case...\n> \n> You mean, /usr/bin/git? crash file for git is getting created each\n> time it crashes in /var/crash.\n> \n> Can you please tell me what else I could try?\n\nGoogling for \"ubuntu+disable+crash\" turns up that your Git crashes are\nhandled by a system-wide tool called \"apport\" [1].\n\nConsidering this, I would try to explore two routes:\n\n* [1] Tells that apport has a special tool, apport-retrace, which is\n  said to be able to download available matching debug packages, if\n  any, and generate the stack traces.  Basically this would do what\n  Thomas advised you to attempt to do using GDB.\n\n* Try to disable apprort permanently and then crash Git normally,\n  so that apport does not interfere with the crash and the kernel is\n  able to generate a regular core file in your current directory.\n  Be sure to verify the core-file-size limit has a sensibly large\n  value in your shell before attempting to do that.\n\n> Would upgrading to the 1.8.2.1 - latest in Ubuntu PPA would help?\n\nYes, this is a viable way to try solving the problem.\n*But* there's a downside: the crash you're experiencing might affect\nlater Git versions as well as yours.  And if you just throw your hands\nthere, the bug will continue to be unfixed.  Hence I urge you to be a\ngood F/OSS user and help the Git devs investigate the case.\n\n1. https://wiki.ubuntu.com/Apport\n"},{"id":"214581","messageId":"CAJiNi_GQZf8BRkTR8+j6YjdcqUH1J1NATSrNUjZ=65V+ip6okQ@mail.gmail.com","threadId":"33454","inReplyTo":"20130412180525.aa5b8eacd691a427244d6ab5@domain007.com","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Sivaram Kannan","fromEmail":"siva.devel@gmail.com","sentAt":"2013-04-17T06:28:08Z","receivedAt":"2013-04-17T06:28:08Z","isPatch":false,"sender":{"key":"siva.devel@gmail.com","avatar":null},"body":"Hi,\n\n\n>> > $ ulimit -c unlimited\n>>\n>> Have set the git user's crash limit to 1GB in\n>> /etc/security/limits.conf and still getting the same error when\n>> issuing gdb to the crash file.\n>\n> Yep, suppsedly in Ubuntu it's not that easy to just get a plain old\n> coredump file -- see below.\n>\n\nGot an proper dump from git this time. See whether it helps. I have\nsetup another machine with Ubuntu 12.04 and updated only git and\nported the repo there, after 200 clones no crash so far. Mostly will\nbe moving latest repo to that server to solve this issue.\n\ngitadmin@gitserver:/var/crash/gitcash$ gdb git CoreDump\nGNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04\nCopyright (C) 2012 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\nThis GDB was configured as \"x86_64-linux-gnu\".\nFor bug reporting instructions, please see:\n<http://bugs.launchpad.net/gdb-linaro/>...\nReading symbols from /usr/bin/git...(no debugging symbols found)...done.\n[New LWP 12823]\n\nwarning: Can't read pathname for load map: Input/output error.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\nCore was generated by `git pack-objects --revs --all --stdout\n--progress --delta-base-offset'.\nProgram terminated with signal 11, Segmentation fault.\n#0  0x000000000044bb77 in ?? ()\n(gdb) bt\n#0  0x000000000044bb77 in ?? ()\n#1  0x000000000044cb54 in ?? ()\n#2  0x000000000044d4f1 in ?? ()\n#3  0x0000000000405634 in ?? ()\n#4  0x0000000000404a30 in ?? ()\n#5  0x00007fe2a149876d in __libc_start_main (main=0x404980, argc=7,\nubp_av=0x7fffad58fb28, init=<optimized out>, fini=<optimized out>,\nrtld_fini=<optimized out>,\n    stack_end=0x7fffad58fb18) at libc-start.c:226\n#6  0x0000000000404e65 in ?? ()\n#7  0x00007fffad58fb18 in ?? ()\n#8  0x000000000000001c in ?? ()\n#9  0x0000000000000007 in ?? ()\n#10 0x00007fffad591c95 in ?? ()\n#11 0x00007fffad591c99 in ?? ()\n#12 0x00007fffad591ca6 in ?? ()\n#13 0x00007fffad591cad in ?? ()\n#14 0x00007fffad591cb3 in ?? ()\n#15 0x00007fffad591cbc in ?? ()\n#16 0x00007fffad591cc7 in ?? ()\n#17 0x0000000000000000 in ?? ()\n\nThanks,\n./Siva.\n"},{"id":"214583","messageId":"CACsJy8AfVjhsBtfwJomRmoYsA3EMPja--y5Twq=T7-bCUQRU-w@mail.gmail.com","threadId":"33454","inReplyTo":"CAJiNi_GQZf8BRkTR8+j6YjdcqUH1J1NATSrNUjZ=65V+ip6okQ@mail.gmail.com","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2013-04-17T07:26:50Z","receivedAt":"2013-04-17T07:26:50Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Wed, Apr 17, 2013 at 4:28 PM, Sivaram Kannan <siva.devel@gmail.com> wrote:\n> Got an proper dump from git this time. See whether it helps.\n\nProbably not because there are no debugging symbols. Not sure how\nubuntu packages these symbols..\n\n> I have setup another machine with Ubuntu 12.04 and updated only git and\n> ported the repo there, after 200 clones no crash so far.\n\nAny chance you could publish the repository that causes the crash?\n--\nDuy\n"},{"id":"214720","messageId":"CAJiNi_FBzz2Tqp_P8BB=X7UnAaHiNH8s0FyzW4K9Xp6WZijECw@mail.gmail.com","threadId":"33454","inReplyTo":"CACsJy8AfVjhsBtfwJomRmoYsA3EMPja--y5Twq=T7-bCUQRU-w@mail.gmail.com","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Sivaram Kannan","fromEmail":"siva.devel@gmail.com","sentAt":"2013-04-18T11:32:31Z","receivedAt":"2013-04-18T11:32:31Z","isPatch":false,"sender":{"key":"siva.devel@gmail.com","avatar":null},"body":"Hi,\n\n> Probably not because there are no debugging symbols. Not sure how\n> ubuntu packages these symbols..\n\nWould recompiling the source packages and debugging would give\ndifferent results?\n\n>\n> Any chance you could publish the repository that causes the crash?\n> --\n> Duy\n\nI don't think I can publish the repo online. But I am willing to try\nany steps on the repo to get more info. Most likely I would restore\nthe latest repo to the stanby server I tested which works with any\ncrash. Let me know what I can do to get more information.\n\n./Siva.\n"},{"id":"214731","messageId":"CAJiNi_HA5bNO8gMHkts_e+dWG26n=S7MRF5wc_L+v=rbnM91oQ@mail.gmail.com","threadId":"33454","inReplyTo":"CAJiNi_FBzz2Tqp_P8BB=X7UnAaHiNH8s0FyzW4K9Xp6WZijECw@mail.gmail.com","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Sivaram Kannan","fromEmail":"siva.devel@gmail.com","sentAt":"2013-04-18T15:16:45Z","receivedAt":"2013-04-18T15:16:45Z","isPatch":false,"sender":{"key":"siva.devel@gmail.com","avatar":null},"body":"Hi,\n\nThe git crashed during one of the commits by a developer I think, the\nremote is not even showing the working branch. The local branch of is\nall right, but the remote repo is corrupted and could not git fsck\nalso. Is restoring the last night's backup is my only option??\n\n$ git remote show origin\n* remote origin\n  Fetch URL: git@gitserver:sggroup/sgrid.git\n  Push  URL: git@gitserver:sggroup/sgrid.git\n  HEAD branch: master\n  Remote branches:\n    SGRID_5_5_0_BRANCH                 tracked\n    master                                 tracked\n    refs/remotes/origin/4_4_Release_Branch stale (use 'git remote prune' to remo\nve)\n  Local branch configured for 'git pull':\n    4_4_Release_Branch merges with remote 4_4_Release_Branch\n\nThanks,\n./Siva.\n\nOn Thu, Apr 18, 2013 at 5:02 PM, Sivaram Kannan <siva.devel@gmail.com> wrote:\n> Hi,\n>\n>> Probably not because there are no debugging symbols. Not sure how\n>> ubuntu packages these symbols..\n>\n> Would recompiling the source packages and debugging would give\n> different results?\n>\n>>\n>> Any chance you could publish the repository that causes the crash?\n>> --\n>> Duy\n>\n> I don't think I can publish the repo online. But I am willing to try\n> any steps on the repo to get more info. Most likely I would restore\n> the latest repo to the stanby server I tested which works with any\n> crash. Let me know what I can do to get more information.\n>\n> ./Siva.\n"},{"id":"214819","messageId":"87zjwvt0qu.fsf@linux-k42r.v.cablecom.net","threadId":"33454","inReplyTo":"CAJiNi_HA5bNO8gMHkts_e+dWG26n=S7MRF5wc_L+v=rbnM91oQ@mail.gmail.com","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Thomas Rast","fromEmail":"trast@inf.ethz.ch","sentAt":"2013-04-19T07:53:29Z","receivedAt":"2013-04-19T07:53:29Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Sivaram Kannan <siva.devel@gmail.com> writes:\n\n> Hi,\n>\n> The git crashed during one of the commits by a developer I think, the\n> remote is not even showing the working branch. The local branch of is\n> all right, but the remote repo is corrupted and could not git fsck\n> also. Is restoring the last night's backup is my only option??\n\nBy commit, do you mean push?  I.e., something crashed while a push was\ngoing on?\n\nThe recovery strategy depends a lot on how valuable/recoverable the work\nthat happened since the last backup was, but restoring from backup,\nrunning 'git fsck' on all involved repos (including devs' workstations!)\nand then having the devs re-push what they had locally seems like a good\nstrategy to me.\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"},{"id":"214820","messageId":"CACsJy8CVC4RBtgCFShoGLsVm-B49TcECtL_RRExzECF69Ak5cg@mail.gmail.com","threadId":"33454","inReplyTo":"CAJiNi_FBzz2Tqp_P8BB=X7UnAaHiNH8s0FyzW4K9Xp6WZijECw@mail.gmail.com","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2013-04-19T08:48:56Z","receivedAt":"2013-04-19T08:48:56Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Thu, Apr 18, 2013 at 9:32 PM, Sivaram Kannan <siva.devel@gmail.com> wrote:\n> Hi,\n>\n>> Probably not because there are no debugging symbols. Not sure how\n>> ubuntu packages these symbols..\n>\n> Would recompiling the source packages and debugging would give\n> different results?\n\nYes. Please do. The reason is a backtrace without symbols gives very\nlittle information (at least for people who do not use Ubuntu).\n--\nDuy\n"},{"id":"215315","messageId":"CAJiNi_HuqMu25VO-mZBL0N4RgveRdvZ=Bi2wviD4NNmibQg1Sg@mail.gmail.com","threadId":"33454","inReplyTo":"CACsJy8CVC4RBtgCFShoGLsVm-B49TcECtL_RRExzECF69Ak5cg@mail.gmail.com","subject":"Re: Git crash in Ubuntu 12.04","fromName":"Sivaram Kannan","fromEmail":"siva.devel@gmail.com","sentAt":"2013-04-24T14:51:08Z","receivedAt":"2013-04-24T14:51:08Z","isPatch":false,"sender":{"key":"siva.devel@gmail.com","avatar":null},"body":"Hi\n\nAfter some struggle I finally got apport work and got some\ninformation. Please check whether it will be of any help. And you guys\nare right, I have started to get the same crash again right now after\nupgrading to latest git in Ubuntu.\n\n> Yes. Please do. The reason is a backtrace without symbols gives very\n> little information (at least for people who do not use Ubuntu).\n\n\nGNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04\nCopyright (C) 2012 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\nThis GDB was configured as \"x86_64-linux-gnu\".\nFor bug reporting instructions, please see:\n<http://bugs.launchpad.net/gdb-linaro/>.\nReading symbols from /tmp/tmp6_sJPS/usr/lib/git-core/git...(no\ndebugging symbols found)...done.\n[New LWP 31469]\n[New LWP 31468]\n[New LWP 31466]\n[New LWP 31464]\n[New LWP 31467]\nwarning: Can't read pathname for load map: Input/output error.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\nwarning: the debug information found in\n\"/tmp/tmp6_sJPS/usr/lib/debug//lib/x86_64-linux-gnu/ld-2.15.so\" does\nnot match \"/tmp/tmp6_sJPS/lib64/ld-linux-x86-64.so.2\" (CRC mismatch).\n\nCore was generated by `git pack-objects --revs --all --stdout\n--delta-base-offset'.\nProgram terminated with signal 11, Segmentation fault.\n#0  0x00000000004820f0 in ?? ()\n(gdb) bt\n#0  0x00000000004820f0 in ?? ()\n#1  0x000000000044b3aa in ?? ()\n#2  0x000000000044b641 in ?? ()\n#3  0x00007f077973de9a in start_thread (arg=0x7f0747fff700)\n    at pthread_create.c:308\n#4  0x00007f077946acbd in clone ()\n    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:104\n#5  0x0000000000000000 in ?? ()\n(gdb)\n\n./Siva.\n"}]}