{"thread":{"id":"55045","subject":"Bug report: gitk is no longer working on my OSX machine","startedAt":"2021-01-25T19:59:50Z","lastAt":"2021-01-27T07:35:55Z","messageCount":3,"participants":["Dan Lew","Chris Torek"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"415231","messageId":"CALmLNPQAKzzzAUPhejvcF7SEvq4zGDDqkm6HaVi9pAfB0JjoLQ@mail.gmail.com","threadId":"55045","inReplyTo":null,"subject":"Bug report: gitk is no longer working on my OSX machine","fromName":"Dan Lew","fromEmail":"dlew@atlassian.com","sentAt":"2021-01-25T19:57:57Z","receivedAt":"2021-01-25T19:59:50Z","isPatch":false,"sender":{"key":"dlew@atlassian.com","avatar":null},"body":"Hello,\nWould love some help, having trouble getting gitk up and running again...\n\nHere's the details from `git bugreport`:\n\nWhat did you do before the bug happened? (Steps to reproduce your issue)\n\n1. Open any git repository directory in a terminal.\n2. Run `gitk`\n\nWhat did you expect to happen? (Expected behavior)\n\ngitk opens\n\nWhat happened instead? (Actual behavior)\n\ngitk crashes with the following error message on the command line:\n\nobjc[33662]: autorelease pool page 0x7fb1070a3000 corrupted\n  magic     0x00000000 0x00000000 0x00000000 0x00000000\n  should be 0xa1a1a1a1 0x4f545541 0x454c4552 0x21455341\n  pthread   0x10b020dc0\n  should be 0x10b020dc0\n\nAn error window also pops up saying that \"wish quit unexpectedly.\"\n\nWhat's different between what you expected and what actually happened?\n\nIt shouldn't crash.\n\nAnything else you want to add:\n\nI'm using git/git-gui as installed by brew on OSX>\n\nIf I run `gitk` where outside of a git repository, then it opens fine\n(and shows the \"Cannot find a git repository here\" error.\n\ngitk has run fine on this computer for years; I don't know what\nsuddenly changed to make it stop working.\n\n[System Info]\ngit version 2.30.0\ncpu: x86_64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Darwin 19.6.0 Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30\nPST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64 x86_64\ncompiler info: clang: 12.0.0 (clang-1200.0.32.28)\nlibc info: no libc information available\n$SHELL (typically, interactive shell): /bin/zsh\n\n\n[Enabled Hooks]\n"},{"id":"415339","messageId":"CALmLNPTUSJvxKwDVJViZ7qETP5nGBUftdeHjEX9U7coT0Ve8yQ@mail.gmail.com","threadId":"55045","inReplyTo":"CALmLNPQAKzzzAUPhejvcF7SEvq4zGDDqkm6HaVi9pAfB0JjoLQ@mail.gmail.com","subject":"Re: Bug report: gitk is no longer working on my OSX machine","fromName":"Dan Lew","fromEmail":"dlew@atlassian.com","sentAt":"2021-01-26T18:30:46Z","receivedAt":"2021-01-26T22:19:29Z","isPatch":false,"sender":{"key":"dlew@atlassian.com","avatar":null},"body":"I have managed to figure out how to fix the issue - I removed my\n~/.config/git/gitk. Upon recreation, everything worked fine.\n\nI ran a diff between the old and the new file and discovered the issue\nwas this line in the gitk configuration:\n\n```\nset geometry(state) zoomed\n```\n\nIf you change \"zoomed\" to \"normal\" then gitk works again.\n\nI don't know enough about git-gui internals to help more than this,\nbut it looks like the \"zoomed\" state is broken somehow.\n\n-Dan\n\nOn Mon, Jan 25, 2021 at 1:57 PM Dan Lew <dlew@atlassian.com> wrote:\n>\n> Hello,\n> Would love some help, having trouble getting gitk up and running again...\n>\n> Here's the details from `git bugreport`:\n>\n> What did you do before the bug happened? (Steps to reproduce your issue)\n>\n> 1. Open any git repository directory in a terminal.\n> 2. Run `gitk`\n>\n> What did you expect to happen? (Expected behavior)\n>\n> gitk opens\n>\n> What happened instead? (Actual behavior)\n>\n> gitk crashes with the following error message on the command line:\n>\n> objc[33662]: autorelease pool page 0x7fb1070a3000 corrupted\n>   magic     0x00000000 0x00000000 0x00000000 0x00000000\n>   should be 0xa1a1a1a1 0x4f545541 0x454c4552 0x21455341\n>   pthread   0x10b020dc0\n>   should be 0x10b020dc0\n>\n> An error window also pops up saying that \"wish quit unexpectedly.\"\n>\n> What's different between what you expected and what actually happened?\n>\n> It shouldn't crash.\n>\n> Anything else you want to add:\n>\n> I'm using git/git-gui as installed by brew on OSX>\n>\n> If I run `gitk` where outside of a git repository, then it opens fine\n> (and shows the \"Cannot find a git repository here\" error.\n>\n> gitk has run fine on this computer for years; I don't know what\n> suddenly changed to make it stop working.\n>\n> [System Info]\n> git version 2.30.0\n> cpu: x86_64\n> no commit associated with this build\n> sizeof-long: 8\n> sizeof-size_t: 8\n> shell-path: /bin/sh\n> uname: Darwin 19.6.0 Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30\n> PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64 x86_64\n> compiler info: clang: 12.0.0 (clang-1200.0.32.28)\n> libc info: no libc information available\n> $SHELL (typically, interactive shell): /bin/zsh\n>\n>\n> [Enabled Hooks]\n"},{"id":"415397","messageId":"CAPx1GvcCj++vO_a4PE2sAN4=3qGat6_72BLNnAhHnQ49z7hUuw@mail.gmail.com","threadId":"55045","inReplyTo":"CALmLNPTUSJvxKwDVJViZ7qETP5nGBUftdeHjEX9U7coT0Ve8yQ@mail.gmail.com","subject":"Re: Bug report: gitk is no longer working on my OSX machine","fromName":"Chris Torek","fromEmail":"chris.torek@gmail.com","sentAt":"2021-01-27T07:32:23Z","receivedAt":"2021-01-27T07:35:55Z","isPatch":false,"sender":{"key":"chris.torek@gmail.com","avatar":"https://avatars.githubusercontent.com/u/16826774?v=4"},"body":"On Tue, Jan 26, 2021 at 2:50 PM Dan Lew <dlew@atlassian.com> wrote:\n> I have managed to figure out how to fix the issue - I removed my\n> ~/.config/git/gitk. Upon recreation, everything worked fine.\n\nNot that I know much about the internals of the objc runtime,\nbut this indicates a bug in wish and/or the objc runtime\n(tickled *by* the geometry state line, but not in gitk itself).\nNote that the corrupted autorelease pool page data:\n\n>  magic     0x00000000 0x00000000 0x00000000 0x00000000\n>  should be 0xa1a1a1a1 0x4f545541 0x454c4552 0x21455341\n\nsuggests that the page was already released or something,\nsince the three words of \"should be\" spell out \"otua eler !esa\"\nwhich is \"autorelease!\" with byte-swapping (the old NUXI\nissue but expressed in 32 bits this time).\n\nChris\n"}]}