{"action":"closed","issue":{"url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1187","repository_url":"https://api.github.com/repos/uncrustify/uncrustify","labels_url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1187/labels{/name}","comments_url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1187/comments","events_url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1187/events","html_url":"https://github.com/uncrustify/uncrustify/issues/1187","id":231792920,"number":1187,"title":"Crash when processing a file with only defines and comments","user":{"login":"ceeac","id":28988143,"avatar_url":"https://avatars0.githubusercontent.com/u/28988143?v=3","gravatar_id":"","url":"https://api.github.com/users/ceeac","html_url":"https://github.com/ceeac","followers_url":"https://api.github.com/users/ceeac/followers","following_url":"https://api.github.com/users/ceeac/following{/other_user}","gists_url":"https://api.github.com/users/ceeac/gists{/gist_id}","starred_url":"https://api.github.com/users/ceeac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceeac/subscriptions","organizations_url":"https://api.github.com/users/ceeac/orgs","repos_url":"https://api.github.com/users/ceeac/repos","events_url":"https://api.github.com/users/ceeac/events{/privacy}","received_events_url":"https://api.github.com/users/ceeac/received_events","type":"User","site_admin":false},"labels":[{"id":414546969,"url":"https://api.github.com/repos/uncrustify/uncrustify/labels/C%20and%20C++11","name":"C and C++11","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-27T10:34:36Z","updated_at":"2017-06-04T12:33:37Z","closed_at":"2017-06-04T12:33:37Z","body":"[//]: # \"  If the issue is connected to existing Uncrustify options please, if possible, add the\"\r\n[//]: # \"  following information to ease up the process:\"\r\n[//]: # \"  • a link to a debug file:\"\r\n[//]: # \"      generated with: 'uncrustify -p debug.txt -c pathToUsedConfig.cfg -f toBeFormatedFile.cpp' \"\r\n[//]: # \"      Example: [debug.txt](https://linkToTheFile)\"\r\n[//]: # \"      Example hosters for debug files: pastbin.com, gist.github.com, ...\"\r\n[//]: # \"      The used config file is included in the debug file and does not need to be included here.\"\r\n[//]: # \r\n[//]: # \"  • include a small but complete test file that will be uncrustifyed\"\r\n[//]: # \"  • include the generated results\"\r\n[//]: # \"  • include the expected results\"\r\n[//]: # \r\n[//]: # \"  ✋ please add a line containing ``` above and below of each of those three code sections\"\r\n[//]: # \r\n[//]: # \"  • include the current version of your Uncrustify executable\"\r\n[//]: # \"      printout via 'uncrustify -v'\"\r\n[//]: # \"      Example: current version: uncrustify 0.63\"\r\n[//]: # \"      or if possible additionally with the git sha of the commit\"\r\n[//]: # \"                    current version: uncrustify 0.63 dc7b412\"\r\n[//]: # \r\n[//]: # \"  • if possible include a version that worked\"\r\n[//]: # \"      Example: working version: uncrustify 0.63\"\r\n[//]: # \"      or\"\r\n[//]: # \"                    working version: uncrustify 0.63 2a5e88f\"\r\n\r\nWhen processing a file with only comments and defines, uncrustify crashes.\r\n\r\nOS version: **Ubuntu 16.04 (64 bit)**\r\nUncrustify version: **Uncrustify_d-0.65-10-89e8bc9**\r\n\r\nGist with file and uncrustify cfg:\r\n`https://gist.github.com/ceeac/17be512d424271dd1c96abc7824a0220`\r\n\r\nSteps to reproduce:  Run uncrustify with\r\n`uncrustify --no-backup -c ./uncrustify.cfg  -l CPP config.h`\r\n\r\nBacktrace:\r\n```\r\n#0  0x00000000004a18db in combine_labels ()\r\n    at /home/ceeac/Documents/CPP/uncrustify/src/combine.cpp:3071\r\n#1  0x0000000000521d85 in uncrustify_start (data=std::deque with 906 elements = {...})\r\n    at /home/ceeac/Documents/CPP/uncrustify/src/uncrustify.cpp:1663\r\n#2  0x0000000000521f24 in uncrustify_file (fm=..., pfout=0x7e7bb0, parsed_file=0x0, \r\n    defer_uncrustify_end=false) at /home/ceeac/Documents/CPP/uncrustify/src/uncrustify.cpp:1718\r\n#3  0x000000000052127f in do_source_file (\r\n    filename_in=0x7fffffffe1fd \"src/libboom/include/config.h\", \r\n    filename_out=0x7fffffffd8c0 \"src/libboom/include/config.h\", parsed_file=0x0, no_backup=true, \r\n    keep_mtime=false) at /home/ceeac/Documents/CPP/uncrustify/src/uncrustify.cpp:1312\r\n#4  0x000000000051fa6e in main (argc=7, argv=0x7fffffffddd8)\r\n    at /home/ceeac/Documents/CPP/uncrustify/src/uncrustify.cpp:793\r\n```\r\n"}}
{"actor":{"display_login":"gmaurel"}}