{"thread":{"id":"55558","subject":"Possible segfault with `git clone --mirror`","startedAt":"2021-04-25T18:18:05Z","lastAt":"2021-04-26T15:37:42Z","messageCount":4,"participants":["Kostya M","Đoàn Trần Công Danh","René Scharfe"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"422895","messageId":"CACAwW2gHBPRujCV0LSS3p1Td_GkiGG87U6QPLVrp69ShVNnPTA@mail.gmail.com","threadId":"55558","inReplyTo":null,"subject":"Possible segfault with `git clone --mirror`","fromName":"Kostya M","fromEmail":"kostya27@gmail.com","sentAt":"2021-04-25T18:17:50Z","receivedAt":"2021-04-25T18:18:05Z","isPatch":false,"sender":{"key":"kostya27@gmail.com","avatar":null},"body":"Git 2.31.1, reproduced on Ubuntu 20.04.01, and Arch Linux.\n\n`git clone -c core.askPass=true --mirror --quiet --\nhttps://github.com/kostya/myhtml.git myhtml`\nSegmentation fault (core dumped)\n\nIf i remove --mirror argument, it works.\nThis command generated by crystal language package manager called shards.\n"},{"id":"422896","messageId":"YIYL2BtIacMIthgy@danh.dev","threadId":"55558","inReplyTo":"CACAwW2gHBPRujCV0LSS3p1Td_GkiGG87U6QPLVrp69ShVNnPTA@mail.gmail.com","subject":"Re: Possible segfault with `git clone --mirror`","fromName":"Đoàn Trần Công Danh","fromEmail":"congdanhqx@gmail.com","sentAt":"2021-04-26T00:39:52Z","receivedAt":"2021-04-26T00:40:00Z","isPatch":false,"sender":{"key":"congdanhqx@gmail.com","avatar":"https://avatars.githubusercontent.com/u/42673067?v=4"},"body":"On 2021-04-25 21:17:50+0300, Kostya M <kostya27@gmail.com> wrote:\n> Git 2.31.1, reproduced on Ubuntu 20.04.01, and Arch Linux.\n> \n> `git clone -c core.askPass=true --mirror --quiet --\n> https://github.com/kostya/myhtml.git myhtml`\n> Segmentation fault (core dumped)\n> \n> If i remove --mirror argument, it works.\n> This command generated by crystal language package manager called shards.\n\nNot reproducible.\n\nYou may want to check if it's your config or filesystem first?\n\nIf I were you, I would run something like this to see if it works:\n(Maybe with GIT_TRACE2=1 removed in first run to see if it's your config)\n\n\tHOME=/tmp/not-exist XDG_CONFIG_HOME=/tmp/not-exist GIT_TRACE2=1 \\\n\t\t/usr/bin/git clone -c core.askPass=true --mirror --quiet -- \\\n\t\thttps://github.com/kostya/myhtml.git myhtml\n\n-- \nDanh\n"},{"id":"422923","messageId":"CACAwW2gUo7R2V-gX8dM90UCoRSBwqgz3nw67xyDx1a3R9ahmqw@mail.gmail.com","threadId":"55558","inReplyTo":"YIYL2BtIacMIthgy@danh.dev","subject":"Re: Possible segfault with `git clone --mirror`","fromName":"Kostya M","fromEmail":"kostya27@gmail.com","sentAt":"2021-04-26T12:53:28Z","receivedAt":"2021-04-26T12:53:41Z","isPatch":false,"sender":{"key":"kostya27@gmail.com","avatar":null},"body":"Yes, adding `HOME=/tmp/not-exist` fix this.\n\nmy ~/.gitconfig is (maybe it have outdated options, it was generated long ago):\n\n[color]\n  status = auto\n  branch = auto\n  diff   = auto\n\n[core]\n  symlinks = false\n  autocrlf = false\n  repositoryformatversion = 0\n  filemode = false\n  bare = false\n  logallrefupdates = true\n  symlinks = false\n  ignorecase = true\n  quotepath = false\n  pager = less\n  editor = \"vim\"\n\n[pack]\n  packSizeLimit = 2g\n\n[apply]\n  whitespace = nowarn\n\n[i18n]\n\nпн, 26 апр. 2021 г. в 03:39, Đoàn Trần Công Danh <congdanhqx@gmail.com>:\n>\n> On 2021-04-25 21:17:50+0300, Kostya M <kostya27@gmail.com> wrote:\n> > Git 2.31.1, reproduced on Ubuntu 20.04.01, and Arch Linux.\n> >\n> > `git clone -c core.askPass=true --mirror --quiet --\n> > https://github.com/kostya/myhtml.git myhtml`\n> > Segmentation fault (core dumped)\n> >\n> > If i remove --mirror argument, it works.\n> > This command generated by crystal language package manager called shards.\n>\n> Not reproducible.\n>\n> You may want to check if it's your config or filesystem first?\n>\n> If I were you, I would run something like this to see if it works:\n> (Maybe with GIT_TRACE2=1 removed in first run to see if it's your config)\n>\n>         HOME=/tmp/not-exist XDG_CONFIG_HOME=/tmp/not-exist GIT_TRACE2=1 \\\n>                 /usr/bin/git clone -c core.askPass=true --mirror --quiet -- \\\n>                 https://github.com/kostya/myhtml.git myhtml\n>\n> --\n> Danh\n"},{"id":"422936","messageId":"bd656129-7b89-d61b-3413-5495ff3142d0@web.de","threadId":"55558","inReplyTo":"CACAwW2gUo7R2V-gX8dM90UCoRSBwqgz3nw67xyDx1a3R9ahmqw@mail.gmail.com","subject":"Re: Possible segfault with `git clone --mirror`","fromName":"René Scharfe","fromEmail":"l.s.r@web.de","sentAt":"2021-04-26T15:37:35Z","receivedAt":"2021-04-26T15:37:42Z","isPatch":false,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Am 26.04.21 um 14:53 schrieb Kostya M:\n> Yes, adding `HOME=/tmp/not-exist` fix this.\n>\n> my ~/.gitconfig is (maybe it have outdated options, it was generated long ago):\n>\n> [color]\n>   status = auto\n>   branch = auto\n>   diff   = auto\n>\n> [core]\n>   symlinks = false\n>   autocrlf = false\n>   repositoryformatversion = 0\n>   filemode = false\n>   bare = false\n\nThat's probably the one.  There's a related fix in master:\n\nhttp://public-inbox.org/git/20210310011120.1151749-1-sandals@crustytoothpaste.net/\n\n>   logallrefupdates = true\n>   symlinks = false\n>   ignorecase = true\n>   quotepath = false\n>   pager = less\n>   editor = \"vim\"\n>\n> [pack]\n>   packSizeLimit = 2g\n>\n> [apply]\n>   whitespace = nowarn\n>\n> [i18n]\n"}]}