{"action":"created","issue":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4346","labels_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4346/labels{/name}","comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4346/comments","events_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4346/events","html_url":"https://github.com/robbyrussell/oh-my-zsh/issues/4346","id":106237400,"number":4346,"title":"Tab completion segfault with zsh 5.1.1","user":{"login":"jonathonf","id":559369,"avatar_url":"https://avatars.githubusercontent.com/u/559369?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathonf","html_url":"https://github.com/jonathonf","followers_url":"https://api.github.com/users/jonathonf/followers","following_url":"https://api.github.com/users/jonathonf/following{/other_user}","gists_url":"https://api.github.com/users/jonathonf/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathonf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathonf/subscriptions","organizations_url":"https://api.github.com/users/jonathonf/orgs","repos_url":"https://api.github.com/users/jonathonf/repos","events_url":"https://api.github.com/users/jonathonf/events{/privacy}","received_events_url":"https://api.github.com/users/jonathonf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-13T20:14:35Z","updated_at":"2015-09-17T16:48:04Z","closed_at":null,"body":"With a recent update to zsh 5.1.1 in Arch/Manjaro, and with OMZ sourced in .zshrc, tab completion leads to a segfault in zsh (even with no loaded plugins). Commenting the source line lets tab completion work correctly. Tab completion worked perfectly with zsh 5.0.8.\r\n\r\nstrace of tab completion event:\r\n```\r\npoll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}], 4, 30) = ? ERESTART_RESTARTBLOCK (Interrupted by signal)\r\n--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=17320, si_uid=1000, si_status=SIGSEGV, si_utime=10, si_stime=3} ---\r\nwrite(13, \"\\1\\0\\0\\0\\0\\0\\0\\0\", 8)        = 8\r\nrt_sigreturn({mask=[]})                 = -1 EINTR (Interrupted system call)\r\nwrite(6, \"\\1\\0\\0\\0\\0\\0\\0\\0\", 8)         = 8\r\nwrite(12, \"\\n\\0\\0\\0\", 4)                = 4\r\nwrite(12, \"\\300\\305\\252\\1\\0\\0\\0\\0\", 8)  = 8\r\nwrite(12, \"\\v\\0\\0\\0\", 4)                = 4\r\nread(12, \"\\0\", 1)                       = 1\r\nclose(11)                               = 0\r\nclose(10)                               = 0\r\nwrite(6, \"\\1\\0\\0\\0\\0\\0\\0\\0\", 8)         = 8\r\nfutex(0xe3ff50, FUTEX_WAKE_PRIVATE, 2147483647) = 0\r\nclose(12)                               = 0\r\nkill(17319, SIGTERM)                    = 0\r\n--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17319, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---\r\nwrite(13, \"\\1\\0\\0\\0\\0\\0\\0\\0\", 8)        = 8\r\nrt_sigreturn({mask=[]})                 = 15236864\r\nexit_group(1)                           = ?\r\n+++ exited with 1 +++\r\n```\r\n\r\n```bash\r\n$ zsh --version\r\nzsh 5.1.1 (x86_64-unknown-linux-gnu)\r\n```"},"comment":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/comments/141145336","html_url":"https://github.com/robbyrussell/oh-my-zsh/issues/4346#issuecomment-141145336","issue_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4346","id":141145336,"user":{"login":"jonathonf","id":559369,"avatar_url":"https://avatars.githubusercontent.com/u/559369?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathonf","html_url":"https://github.com/jonathonf","followers_url":"https://api.github.com/users/jonathonf/followers","following_url":"https://api.github.com/users/jonathonf/following{/other_user}","gists_url":"https://api.github.com/users/jonathonf/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathonf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathonf/subscriptions","organizations_url":"https://api.github.com/users/jonathonf/orgs","repos_url":"https://api.github.com/users/jonathonf/repos","events_url":"https://api.github.com/users/jonathonf/events{/privacy}","received_events_url":"https://api.github.com/users/jonathonf/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T16:48:04Z","updated_at":"2015-09-17T16:48:04Z","body":"Alrighty. The line in my configuration that triggers the issue is ```setopt all_export```.\r\n\r\nWhen **set** and OMZ **enabled**, zsh will segfault.\r\nWhen **set** and OMZ **not enabled**, zsh is fine.\r\nWhen **unset** and OMZ **enabled**, zsh is fine.\r\n\r\nIt doesn't seem to matter the position of ```setopt all_export``` relative to ```source $ZSH/oh-my-zsh.sh```, its mere presence is enough. :)"}}