{"thread":{"id":"39140","subject":"utf-8 filename woes","startedAt":"2015-04-22T19:50:26Z","lastAt":"2015-04-22T20:19:37Z","messageCount":2,"participants":["Jeremy Harris","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"259840","messageId":"5537FB82.4000302@wizmail.org","threadId":"39140","inReplyTo":null,"subject":"utf-8 filename woes","fromName":"Jeremy Harris","fromEmail":"jgh@wizmail.org","sentAt":"2015-04-22T19:50:26Z","receivedAt":"2015-04-22T19:50:26Z","isPatch":false,"sender":{"key":"jgh@wizmail.org","avatar":null},"body":"Hi,\n\n  I have a git version 1.7.1 running on Scientific Linux 6.\nWhen a filename with UTF-8 is present in a tree-ish the\n\"git archive\" command crashes:\n\n------------%%----------------\n*** buffer overflow detected ***: git terminated\n======= Backtrace: =========\n/lib64/libc.so.6(__fortify_fail+0x37)[0x32c1502527]\n/lib64/libc.so.6[0x32c1500410]\n/lib64/libc.so.6[0x32c14ff869]\n/lib64/libc.so.6(_IO_default_xsputn+0xc9)[0x32c1474639]\n/lib64/libc.so.6(_IO_vfprintf+0x11d8)[0x32c14451a8]\n/lib64/libc.so.6(__vsprintf_chk+0x9d)[0x32c14ff90d]\n/lib64/libc.so.6(__sprintf_chk+0x7f)[0x32c14ff84f]\ngit[0x4620bc]\ngit[0x4616bc]\ngit[0x4bd832]\ngit[0x4bda79]\ngit[0x4bda79]\ngit[0x4613e1]\ngit[0x4623ed]\ngit[0x4612ed]\ngit[0x40caf3]\ngit[0x4041a1]\ngit[0x404382]\n/lib64/libc.so.6(__libc_start_main+0xfd)[0x32c141ed5d]\ngit[0x403ba9]\n======= Memory map: ========\n00400000-00510000 r-xp 00000000 fd:00 4121\n /usr/bin/git\n------------%%----------------\n\nInstalling the git-debuginfo package gave no additional\ninformation.   The symptom does not show on a Fedora 21\nsystem with git 2.1.0 (and I note that gitk properly\nshows those filenames on f21, and does not on sl6).\n\nIs this a known and fixed issue, or something my sl6\nsystem needs installing?\n-- \nThanks,\n  Jeremy\n"},{"id":"259844","messageId":"20150422201937.GA26917@peff.net","threadId":"39140","inReplyTo":"5537FB82.4000302@wizmail.org","subject":"Re: utf-8 filename woes","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2015-04-22T20:19:37Z","receivedAt":"2015-04-22T20:19:37Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Apr 22, 2015 at 08:50:26PM +0100, Jeremy Harris wrote:\n\n> Installing the git-debuginfo package gave no additional\n> information.   The symptom does not show on a Fedora 21\n> system with git 2.1.0 (and I note that gitk properly\n> shows those filenames on f21, and does not on sl6).\n> \n> Is this a known and fixed issue, or something my sl6\n> system needs installing?\n\nI'm not sure. v1.7.1 is 5 years old, and there have been a lot of fixes\nsince then.  I couldn't replicate your problem on v1.7.1 with a trivial\ntest. If you can reproduce it at will and you really want to know\nwhere the fix is, you can try \"reverse-bisecting\":\n\n  git clone git://git.kernel.org/pub/scm/git/git.git\n  cd git\n  git bisect start\n\n  git checkout v1.7.1\n  make\n  [confirm that it shows the breakage]\n  git bisect good\n\n  git checkout v2.1.0\n  make\n  [confirm that it does not show the problem]\n  git bisect bad\n\n  ... follow the instructions, testing teach ...\n\nNote that \"good\" and \"bad\" here are reversed of what you might expect.\n\"bisect\" was designed for finding regressions, not fixes, and you have\nto manually flip the two.\n\n-Peff\n"}]}