{"action":"closed","issue":{"url":"https://api.github.com/repos/git-hooks/git-hooks/issues/16","repository_url":"https://api.github.com/repos/git-hooks/git-hooks","labels_url":"https://api.github.com/repos/git-hooks/git-hooks/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/git-hooks/git-hooks/issues/16/comments","events_url":"https://api.github.com/repos/git-hooks/git-hooks/issues/16/events","html_url":"https://github.com/git-hooks/git-hooks/issues/16","id":107384055,"number":16,"title":"Stack trace on install ","user":{"login":"jelford","id":205097,"avatar_url":"https://avatars.githubusercontent.com/u/205097?v=3","gravatar_id":"","url":"https://api.github.com/users/jelford","html_url":"https://github.com/jelford","followers_url":"https://api.github.com/users/jelford/followers","following_url":"https://api.github.com/users/jelford/following{/other_user}","gists_url":"https://api.github.com/users/jelford/gists{/gist_id}","starred_url":"https://api.github.com/users/jelford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelford/subscriptions","organizations_url":"https://api.github.com/users/jelford/orgs","repos_url":"https://api.github.com/users/jelford/repos","events_url":"https://api.github.com/users/jelford/events{/privacy}","received_events_url":"https://api.github.com/users/jelford/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-09-20T09:48:26Z","updated_at":"2017-02-03T12:52:11Z","closed_at":"2017-02-03T12:52:11Z","body":"Version: 1.1.3\nPlatform: linux_amd64\n\nOn a fresh PC, I just unpacked the binaries onto my path and ran `git hooks install`\n\nI did have an existing pre-commit hook.\n\nThe result on my file system were:\n- `.git/hooks` has been backed up to `.git/hooks.old`\n- `.git/hooks` seems to have the new scripts installed\n\nWhen I create `./githooks` and add files to it, `git hooks` correctly identifies them - and they're correctly invoked on commit.\n\nSo, the main problem is the stack (below). I'd be happy to jump in and take a look, but I don't have a go environment set up right now.\n\n```\n(venv_name) [jelford@host venv_name]$ git hooks install\nInstall applypatch-msg\nInstall commit-msg\nInstall post-applypatch\nInstall post-checkout\nInstall post-commit\nInstall post-merge\nInstall post-receive\nInstall pre-applypatch\nInstall pre-auto-gc\nInstall pre-commit\nInstall prepare-commit-msg\nruntime: garbage collector found invalid heap pointer *(0xc20804a028+0x0)=0x1 s=nil\nruntime: found *(0xc2080295a8+0x28) = 0xc20804a028+0x0\nfatal error: bad pointer\n\nruntime stack:\nruntime.throw(0x9b3819)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/panic.go:491 +0xad fp=0xc20802fa90 sp=0xc20802fa60\nscanblock(0xc2080295a8, 0x240, 0x8917d4)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/mgc0.c:412 +0x989 fp=0xc20802fbd0 sp=0xc20802fa90\nscanframe(0xc20802fcd8, 0x0, 0xc200000301)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/mgc0.c:719 +0x164 fp=0xc20802fc40 sp=0xc20802fbd0\nruntime.gentraceback(0x4468d0, 0xc208028d50, 0x0, 0xc208000120, 0x0, 0x0, 0x7fffffff, 0xc20802fd88, 0x0, 0x0, ...)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/traceback.go:311 +0x7a8 fp=0xc20802fd30 sp=0xc20802fc40\nscanstack(0xc208000120)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/mgc0.c:777 +0x21c fp=0xc20802fda0 sp=0xc20802fd30\nmarkroot(0xc208010000, 0x5)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/mgc0.c:553 +0xe7 fp=0xc20802fe00 sp=0xc20802fda0\nruntime.parfordo(0xc208010000)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/parfor.c:76 +0xb2 fp=0xc20802fe80 sp=0xc20802fe00\ngc(0xc20802ffb8)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/mgc0.c:1439 +0x25e fp=0xc20802ff98 sp=0xc20802fe80\nruntime.gc_m()\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/mgc0.c:1368 +0xe0 fp=0xc20802ffd0 sp=0xc20802ff98\nruntime.onM(0xc208012000)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/asm_amd64.s:257 +0x68 fp=0xc20802ffd8 sp=0xc20802ffd0\nruntime.mstart()\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/proc.c:818 fp=0xc20802ffe0 sp=0xc20802ffd8\n\ngoroutine 1 [garbage collection]:\nruntime.switchtoM()\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/asm_amd64.s:198 fp=0xc208028d58 sp=0xc208028d50\nruntime.gogc(0x7f1e00000000)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/malloc.go:469 +0x1cf fp=0xc208028d90 sp=0xc208028d58\nruntime.mallocgc(0x70, 0x790840, 0x0, 0x8)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/malloc.go:341 +0x391 fp=0xc208028e40 sp=0xc208028d90\nruntime.newobject(0x790840, 0xc2080316a8)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/malloc.go:353 +0x49 fp=0xc208028e68 sp=0xc208028e40\ngithub.com/wsxiaoys/terminal/color.compile(0x7deff0, 0x1, 0x0, 0x0)\n    /Users/zhongchiyu/workspace/go/src/github.com/wsxiaoys/terminal/color/color.go:136 +0x118 fp=0xc208028f08 sp=0xc208028e68\ngithub.com/wsxiaoys/terminal/color.compileValues(0xc208029050)\n    /Users/zhongchiyu/workspace/go/src/github.com/wsxiaoys/terminal/color/color.go:157 +0xf0 fp=0xc208028fd0 sp=0xc208028f08\ngithub.com/wsxiaoys/terminal/color.Print(0xc20803c780, 0x3, 0x4, 0xc20800b840, 0x0, 0x0)\n    /Users/zhongchiyu/workspace/go/src/github.com/wsxiaoys/terminal/color/color.go:165 +0x159 fp=0xc208029050 sp=0xc208028fd0\nmain.(*Logger).Info(0xc20804c2d0, 0xc20800b840, 0x2, 0x2)\n    /Users/zhongchiyu/workspace/go/src/github.com/git-hooks/git-hooks/logger.go:46 +0x1e6 fp=0xc2080290c8 sp=0xc208029050\nmain.(*Logger).Infoln(0xc20804c2d0, 0xc2080291e0, 0x1, 0x1)\n    /Users/zhongchiyu/workspace/go/src/github.com/git-hooks/git-hooks/logger.go:62 +0x155 fp=0xc208029160 sp=0xc2080290c8\nmain.installInto(0xc208030db0, 0x4, 0x8535b0, 0x2b)\n    /Users/zhongchiyu/workspace/go/src/github.com/git-hooks/git-hooks/cli.go:410 +0x400 fp=0xc2080293a8 sp=0xc208029160\nmain.install(0x1)\n    /Users/zhongchiyu/workspace/go/src/github.com/git-hooks/git-hooks/cli.go:165 +0x3e9 fp=0xc2080294c0 sp=0xc2080293a8\nruntime.call16(0x898d98, 0xc20804a028, 0x800000008)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/asm_amd64.s:401 +0x45 fp=0xc2080294d8 sp=0xc2080294c0\nreflect.Value.call(0x6cca60, 0x898d98, 0x13, 0x7d86f0, 0x4, 0xc20800a520, 0x1, 0x1, 0x0, 0x0, ...)\n    /usr/local/Cellar/go/1.4/libexec/src/reflect/value.go:419 +0x10e5 fp=0xc2080297f0 sp=0xc2080294d8\nreflect.Value.Call(0x6cca60, 0x898d98, 0x13, 0xc20800a520, 0x1, 0x1, 0x0, 0x0, 0x0)\n    /usr/local/Cellar/go/1.4/libexec/src/reflect/value.go:296 +0xbc fp=0xc208029850 sp=0xc2080297f0\nmain.func·004(0xc2080880c0)\n    /Users/zhongchiyu/workspace/go/src/github.com/git-hooks/git-hooks/util.go:55 +0x45 fp=0xc2080298a0 sp=0xc208029850\ngithub.com/codegangsta/cli.Command.Run(0x7e2b30, 0x7, 0x7e2830, 0x1, 0x8298b0, 0x1e, 0x0, 0x0, 0x0, 0x0, ...)\n    /Users/zhongchiyu/workspace/go/src/github.com/codegangsta/cli/command.go:113 +0x1038 fp=0xc208029c60 sp=0xc2080298a0\ngithub.com/codegangsta/cli.(*App).Run(0xc20801e4e0, 0xc20800a000, 0x2, 0x2, 0x0, 0x0)\n    /Users/zhongchiyu/workspace/go/src/github.com/codegangsta/cli/app.go:156 +0xcf7 fp=0xc208029ed8 sp=0xc208029c60\nmain.main()\n    /Users/zhongchiyu/workspace/go/src/github.com/git-hooks/git-hooks/cli.go:80 +0x4d9 fp=0xc208029f98 sp=0xc208029ed8\nruntime.main()\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/proc.go:63 +0xf3 fp=0xc208029fe0 sp=0xc208029f98\nruntime.goexit()\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc208029fe8 sp=0xc208029fe0\n\ngoroutine 2 [force gc (idle)]:\nruntime.gopark(0x43e6d0, 0x9c1130, 0x7f8fd0, 0xf)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/proc.go:130 +0x105 fp=0xc20801a798 sp=0xc20801a768\nruntime.goparkunlock(0x9c1130, 0x7f8fd0, 0xf)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/proc.go:136 +0x48 fp=0xc20801a7c0 sp=0xc20801a798\nruntime.forcegchelper()\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/proc.go:99 +0xce fp=0xc20801a7e0 sp=0xc20801a7c0\nruntime.goexit()\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc20801a7e8 sp=0xc20801a7e0\ncreated by runtime.init·4\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/proc.go:87 +0x25\n\ngoroutine 3 [GC sweep wait]:\nruntime.gopark(0x43e6d0, 0x9c9c18, 0x7ee250, 0xd)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/proc.go:130 +0x105 fp=0xc20801df98 sp=0xc20801df68\nruntime.goparkunlock(0x9c9c18, 0x7ee250, 0xd)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/proc.go:136 +0x48 fp=0xc20801dfc0 sp=0xc20801df98\nruntime.bgsweep()\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/mgc0.go:98 +0xbc fp=0xc20801dfe0 sp=0xc20801dfc0\nruntime.goexit()\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc20801dfe8 sp=0xc20801dfe0\ncreated by gc\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/mgc0.c:1383\n\ngoroutine 4 [finalizer wait]:\nruntime.gopark(0x43e6d0, 0x9c9c10, 0x7f8890, 0xe)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/proc.go:130 +0x105 fp=0xc208019730 sp=0xc208019700\nruntime.goparkunlock(0x9c9c10, 0x7f8890, 0xe)\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/proc.go:136 +0x48 fp=0xc208019758 sp=0xc208019730\nruntime.runfinq()\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/malloc.go:727 +0xba fp=0xc2080197e0 sp=0xc208019758\nruntime.goexit()\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc2080197e8 sp=0xc2080197e0\ncreated by runtime.createfing\n    /usr/local/Cellar/go/1.4/libexec/src/runtime/malloc.go:707 +0x5e\n```\n"}}
{"actor":{"display_login":"CatTail"}}