{"action":"created","issue":{"url":"https://api.github.com/repos/puppetlabs/cpp-hocon/issues/75","repository_url":"https://api.github.com/repos/puppetlabs/cpp-hocon","labels_url":"https://api.github.com/repos/puppetlabs/cpp-hocon/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/cpp-hocon/issues/75/comments","events_url":"https://api.github.com/repos/puppetlabs/cpp-hocon/issues/75/events","html_url":"https://github.com/puppetlabs/cpp-hocon/issues/75","id":175335486,"number":75,"title":"\"include\" with files crashes","user":{"login":"tamboril","id":16260733,"avatar_url":"https://avatars.githubusercontent.com/u/16260733?v=3","gravatar_id":"","url":"https://api.github.com/users/tamboril","html_url":"https://github.com/tamboril","followers_url":"https://api.github.com/users/tamboril/followers","following_url":"https://api.github.com/users/tamboril/following{/other_user}","gists_url":"https://api.github.com/users/tamboril/gists{/gist_id}","starred_url":"https://api.github.com/users/tamboril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamboril/subscriptions","organizations_url":"https://api.github.com/users/tamboril/orgs","repos_url":"https://api.github.com/users/tamboril/repos","events_url":"https://api.github.com/users/tamboril/events{/privacy}","received_events_url":"https://api.github.com/users/tamboril/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-06T19:52:17Z","updated_at":"2016-09-06T21:03:39Z","closed_at":null,"body":"This test program:\r\n```\r\n    string\r\n        fn1 = \"/tmp/prod-msgw.xx\"s,\r\n        fn2 = \"/tmp/services.conf\"s;\r\n    ofstream included(fn1.c_str());\r\n    included << \"{ \\\"b\\\":\\\"Hi!\\\" }}\" << endl;\r\n    included.close();\r\n\r\n    ofstream includer(fn2.c_str());\r\n    includer << \"{ include file(\\\"\" << fn1 << \"\\\" )}\" << endl;\r\n    includer.close();\r\n\r\n    auto cfg = hocon::config::parse_file_any_syntax(fn2)->resolve();\r\n```\r\n\r\n...leaves this stack:\r\n\r\n```\r\n#0  0x000000000089e47a in hocon::config_parse_options::set_syntax(config_syntax) const ()\r\n#1  0x00000000008ac0c8 in hocon::simple_includer::clear_for_include(hocon::config_parse_options const&) ()\r\n#2  0x00000000008aa7fc in hocon::simple_include_context::parse_options() const ()\r\n#3  0x00000000008aafe9 in hocon::simple_includer::include_file_without_fallback(std::shared_ptr<hocon::config_include_context const>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) ()\r\n#4  0x00000000008ab85f in hocon::simple_includer::include_file(std::shared_ptr<hocon::config_include_context const>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const ()\r\n#5  0x00000000008ab48f in hocon::simple_includer::proxy::include_file(std::shared_ptr<hocon::config_include_context const>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const ()\r\n#6  0x00000000008f167a in hocon::config_parser::parse_context::parse_include(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::shared_ptr<hocon::config_value const>, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::shared_ptr<hocon::config_value const> > > >&, std::shared_ptr<hocon::config_node_include const>) ()\r\n#7  0x00000000008f42f3 in hocon::config_parser::parse_context::parse_object(std::shared_ptr<hocon::config_node_object const>) ()\r\n#8  0x00000000008f6494 in hocon::config_parser::parse_context::parse_value(std::shared_ptr<hocon::abstract_config_node_value const>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&) ()\r\n#9  0x00000000008f8989 in hocon::config_parser::parse_context::parse() ()\r\n#10 0x00000000008f8d76 in hocon::config_parser::parse(std::shared_ptr<hocon::config_node_root const>, std::shared_ptr<hocon::config_origin const>, hocon::config_parse_options, std::shared_ptr<hocon::config_include_context const>) ()\r\n#11 0x00000000008a17c5 in hocon::parseable::raw_parse_value(std::unique_ptr<std::istream, std::default_delete<std::istream> >, std::shared_ptr<hocon::config_origin const>, hocon::config_parse_options const&) const ()\r\n#12 0x00000000008a1f43 in hocon::parseable::raw_parse_value(std::shared_ptr<hocon::config_origin const>, hocon::config_parse_options const&) const ()\r\n#13 0x00000000008a5ce8 in hocon::parseable::parse_value(std::shared_ptr<hocon::config_origin const>, hocon::config_parse_options const&) const ()\r\n#14 0x00000000008a67cd in hocon::parseable::parse_value(hocon::config_parse_options const&) const ()\r\n#15 0x00000000008a6c19 in hocon::parseable::parse(hocon::config_parse_options const&) const ()\r\n#16 0x00000000008ad31f in hocon::simple_includer::from_basename(std::shared_ptr<hocon::name_source>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, hocon::config_parse_options) ()\r\n#17 0x0000000000831bd3 in hocon::config::parse_file_any_syntax(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, hocon::config_parse_options) ()\r\n#18 0x0000000000831cf8 in hocon::config::parse_file_any_syntax(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) ()\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/puppetlabs/cpp-hocon/issues/comments/245090764","html_url":"https://github.com/puppetlabs/cpp-hocon/issues/75#issuecomment-245090764","issue_url":"https://api.github.com/repos/puppetlabs/cpp-hocon/issues/75","id":245090764,"user":{"login":"MikaelSmith","id":8162496,"avatar_url":"https://avatars.githubusercontent.com/u/8162496?v=3","gravatar_id":"","url":"https://api.github.com/users/MikaelSmith","html_url":"https://github.com/MikaelSmith","followers_url":"https://api.github.com/users/MikaelSmith/followers","following_url":"https://api.github.com/users/MikaelSmith/following{/other_user}","gists_url":"https://api.github.com/users/MikaelSmith/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelSmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelSmith/subscriptions","organizations_url":"https://api.github.com/users/MikaelSmith/orgs","repos_url":"https://api.github.com/users/MikaelSmith/repos","events_url":"https://api.github.com/users/MikaelSmith/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelSmith/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T21:03:39Z","updated_at":"2016-09-06T21:03:39Z","body":"Thanks for the report. We'll try to follow up with this soon."}}
{"actor":{"display_login":"MikaelSmith"}}