{"action":"created","issue":{"url":"https://api.github.com/repos/DaveDavenport/rofi/issues/435","repository_url":"https://api.github.com/repos/DaveDavenport/rofi","labels_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/435/labels{/name}","comments_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/435/comments","events_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/435/events","html_url":"https://github.com/DaveDavenport/rofi/issues/435","id":169168017,"number":435,"title":"\"Failed to create pid file\" - looks like a memory corruption","user":{"login":"infokiller","id":10516814,"avatar_url":"https://avatars.githubusercontent.com/u/10516814?v=3","gravatar_id":"","url":"https://api.github.com/users/infokiller","html_url":"https://github.com/infokiller","followers_url":"https://api.github.com/users/infokiller/followers","following_url":"https://api.github.com/users/infokiller/following{/other_user}","gists_url":"https://api.github.com/users/infokiller/gists{/gist_id}","starred_url":"https://api.github.com/users/infokiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infokiller/subscriptions","organizations_url":"https://api.github.com/users/infokiller/orgs","repos_url":"https://api.github.com/users/infokiller/repos","events_url":"https://api.github.com/users/infokiller/events{/privacy}","received_events_url":"https://api.github.com/users/infokiller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-03T15:57:25Z","updated_at":"2016-08-03T17:51:16Z","closed_at":null,"body":"## Version\r\n\r\nOutput of `rofi -v`\r\n\r\n```\r\nVersion: 1.1.0\r\n```\r\n\r\n## Configuration\r\n\r\nOutput of `rofi -dump-xresources` (preferable in a [gist](https://gist.github.com/))\r\n\r\nhttps://gist.github.com/infokiller/5a0d238f1213b331be5e6454c7854c74\r\n\r\n## Launch Command\r\n\r\nThe commandline used to launch **rofi**\r\n\r\n```\r\nrofi -show run\r\n```\r\n\r\n## Steps to reproduce\r\n\r\n* Run the command above\r\n\r\n\r\n## What behaviour you see\r\n\r\n* I get an error of \"Failed to create pid file\"\r\n\r\n## What behaviour you expect to see\r\n\r\n* Rofi starting successfully\r\n\r\n\r\n**Note**: this happens only on some of my linux machines.\r\n\r\nI started debugging the code and it seems that there's a memory corruption. I printed the value of the variable `pidfile` and it changes from `/run/user/1000/rofi.pid` to `/run/user/190249/rofi.pid`. Seems like the problem happens in the function `config_parse_xresource_options_dynamic`.\r\nWhen running rofi using `-no-config` it works well.\r\nYou can also verify the memory corruption by starting rofi with gdb and then adding a watchpoint on `pidfile`. In the gdb prompt: `watch *pidfile`.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/DaveDavenport/rofi/issues/comments/237314348","html_url":"https://github.com/DaveDavenport/rofi/issues/435#issuecomment-237314348","issue_url":"https://api.github.com/repos/DaveDavenport/rofi/issues/435","id":237314348,"user":{"login":"DaveDavenport","id":406245,"avatar_url":"https://avatars.githubusercontent.com/u/406245?v=3","gravatar_id":"","url":"https://api.github.com/users/DaveDavenport","html_url":"https://github.com/DaveDavenport","followers_url":"https://api.github.com/users/DaveDavenport/followers","following_url":"https://api.github.com/users/DaveDavenport/following{/other_user}","gists_url":"https://api.github.com/users/DaveDavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/DaveDavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaveDavenport/subscriptions","organizations_url":"https://api.github.com/users/DaveDavenport/orgs","repos_url":"https://api.github.com/users/DaveDavenport/repos","events_url":"https://api.github.com/users/DaveDavenport/events{/privacy}","received_events_url":"https://api.github.com/users/DaveDavenport/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T17:51:16Z","updated_at":"2016-08-03T17:51:16Z","body":"This is weird.  esp because it changes to something 'sane' if it was memory corruption I would not expect the end of the string to nicely move ... (I'd expect \"/run/user/190249ofi.pid``` or similar)\r\n\r\nCan you pastebin/gist the output of:\r\n```\r\nxrdb -query | grep rofi.pid\r\n```\r\nand if you have it, ```~/.config/rofi/config```."}}
{"actor":{"display_login":"DaveDavenport"}}