{"action":"created","issue":{"url":"https://api.github.com/repos/westes/flex/issues/365","repository_url":"https://api.github.com/repos/westes/flex","labels_url":"https://api.github.com/repos/westes/flex/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/westes/flex/issues/365/comments","events_url":"https://api.github.com/repos/westes/flex/issues/365/events","html_url":"https://github.com/westes/flex/issues/365","id":333547107,"node_id":"MDU6SXNzdWUzMzM1NDcxMDc=","number":365,"title":"yyin uninitalized","user":{"login":"aaakhare","id":40378557,"node_id":"MDQ6VXNlcjQwMzc4NTU3","avatar_url":"https://avatars0.githubusercontent.com/u/40378557?v=4","gravatar_id":"","url":"https://api.github.com/users/aaakhare","html_url":"https://github.com/aaakhare","followers_url":"https://api.github.com/users/aaakhare/followers","following_url":"https://api.github.com/users/aaakhare/following{/other_user}","gists_url":"https://api.github.com/users/aaakhare/gists{/gist_id}","starred_url":"https://api.github.com/users/aaakhare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaakhare/subscriptions","organizations_url":"https://api.github.com/users/aaakhare/orgs","repos_url":"https://api.github.com/users/aaakhare/repos","events_url":"https://api.github.com/users/aaakhare/events{/privacy}","received_events_url":"https://api.github.com/users/aaakhare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-19T07:18:50Z","updated_at":"2018-06-19T23:06:50Z","closed_at":null,"author_association":"NONE","body":"With options reentrant and prefix enabled, yyin is not\r\ngetting prefix. While with these options, yy_start, yyin,\r\nyyout and yy_buffer_stack could be uninitialized.\r\nOn running, crash occurs. Crash was on yyin uninitialized\r\nread. Version verified are 2.6.1 and 2.6.4\r\n\r\n%option reentrant\r\n%option prefix\r\n\r\n                if ( ! yyg->yy_start )\r\n                        yyg->yy_start = 1;      /* first start state */\r\n\r\n                if ( ! yyin )\r\n                        yyin = stdin;\r\n\r\n                if ( ! yyout )\r\n                        yyout = stdout;\r\n\r\nstatic void yyensure_buffer_stack (yyscan_t yyscanner)\r\n{\r\n        yy_size_t num_to_alloc;\r\n    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;\r\n\r\n        if (!yyg->yy_buffer_stack) {\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/westes/flex/issues/comments/398573504","html_url":"https://github.com/westes/flex/issues/365#issuecomment-398573504","issue_url":"https://api.github.com/repos/westes/flex/issues/365","id":398573504,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODU3MzUwNA==","user":{"login":"aaakhare","id":40378557,"node_id":"MDQ6VXNlcjQwMzc4NTU3","avatar_url":"https://avatars0.githubusercontent.com/u/40378557?v=4","gravatar_id":"","url":"https://api.github.com/users/aaakhare","html_url":"https://github.com/aaakhare","followers_url":"https://api.github.com/users/aaakhare/followers","following_url":"https://api.github.com/users/aaakhare/following{/other_user}","gists_url":"https://api.github.com/users/aaakhare/gists{/gist_id}","starred_url":"https://api.github.com/users/aaakhare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaakhare/subscriptions","organizations_url":"https://api.github.com/users/aaakhare/orgs","repos_url":"https://api.github.com/users/aaakhare/repos","events_url":"https://api.github.com/users/aaakhare/events{/privacy}","received_events_url":"https://api.github.com/users/aaakhare/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T23:06:50Z","updated_at":"2018-06-19T23:06:50Z","author_association":"NONE","body":"This init sequence is already done. In yy_init_globals, initialization is\ndone.\nStill, on gdb, yyin was showing junk value. yyin and <prefix>yyin is still\nthe problem.\nIn generated scanner, <prefix>yyin doesn't show.\n\nOn Tue, Jun 19, 2018 at 2:39 PM, jannick0 <notifications@github.com> wrote:\n\n> For *reentrant* scanners call yylex like so\n>\n> yyscan_t lexer;yylex_init( &lexer );yylex( lexer );yylex_destroy( lexer );\n>\n> to ensure that all objects required by yylex are initialized and\n> destroyed afterwards. This works with %option prefix=\"...\" as well. Does\n> this help?\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/westes/flex/issues/365#issuecomment-398330257>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AmggvWzmJW-zJ-MLd90iA4xZRwfi2l_Vks5t-L_GgaJpZM4Us99B>\n> .\n>\n"}}
{"actor":{"display_login":"aaakhare"}}