{"action":"opened","issue":{"url":"https://api.github.com/repos/svaarala/duktape/issues/2006","repository_url":"https://api.github.com/repos/svaarala/duktape","labels_url":"https://api.github.com/repos/svaarala/duktape/issues/2006/labels{/name}","comments_url":"https://api.github.com/repos/svaarala/duktape/issues/2006/comments","events_url":"https://api.github.com/repos/svaarala/duktape/issues/2006/events","html_url":"https://github.com/svaarala/duktape/issues/2006","id":384193604,"node_id":"MDU6SXNzdWUzODQxOTM2MDQ=","number":2006,"title":"crash in duk__expr_led function when it is armeabi with -DCMAKE_BUILD_TYPE=MinSizeRel/Release","user":{"login":"Shuijwan","id":7829310,"node_id":"MDQ6VXNlcjc4MjkzMTA=","avatar_url":"https://avatars1.githubusercontent.com/u/7829310?v=4","gravatar_id":"","url":"https://api.github.com/users/Shuijwan","html_url":"https://github.com/Shuijwan","followers_url":"https://api.github.com/users/Shuijwan/followers","following_url":"https://api.github.com/users/Shuijwan/following{/other_user}","gists_url":"https://api.github.com/users/Shuijwan/gists{/gist_id}","starred_url":"https://api.github.com/users/Shuijwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shuijwan/subscriptions","organizations_url":"https://api.github.com/users/Shuijwan/orgs","repos_url":"https://api.github.com/users/Shuijwan/repos","events_url":"https://api.github.com/users/Shuijwan/events{/privacy}","received_events_url":"https://api.github.com/users/Shuijwan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-26T06:40:50Z","updated_at":"2018-11-26T06:40:50Z","closed_at":null,"author_association":"NONE","body":"I have an android application run with duktape, it is build against  armeabi with -DCMAKE_BUILD_TYPE=MinSizeRel.  But it crash in duk__expr_led when it try to duk_eval_raw a javascript code.\r\n\r\nI set a breakpoint at switch code below:\r\n`DUK_LOCAL void duk__expr_led(duk_compiler_ctx *comp_ctx, duk_ivalue *left, duk_ivalue *res) {\r\n\tduk_hthread *thr = comp_ctx->thr;\r\n\tduk_token *tk;\r\n\tduk_small_uint_t tok;\r\n\tduk_uint32_t args;  /* temp variable to pass constants and flags to shared code */\r\n\r\n\t/*\r\n\t *  ctx->prev_token     token to process with duk__expr_led()\r\n\t *  ctx->curr_token     updated by caller\r\n\t */\r\n\r\n\tcomp_ctx->curr_func.led_count++;\r\n\r\n\t/* The token in the switch has already been eaten here */\r\n\ttk = &comp_ctx->prev_token;\r\n\ttok = tk->t;\r\n\r\n\tDUK_DDD(DUK_DDDPRINT(\"duk__expr_led(), prev_token.t=%ld, allow_in=%ld, paren_level=%ld\",\r\n\t                     (long) tk->t, (long) comp_ctx->curr_func.allow_in, (long) comp_ctx->curr_func.paren_level));\r\n\r\n\t/* XXX: default priority for infix operators is duk__expr_lbp(tok) -> get it here? */\r\n\r\n\tswitch (tok) {`\r\n\r\nwhen I step next, It throws signal SIGSEGV: invalid address (fault address 0x164) at tok.\r\n\r\nWhen I change abi to armeabi-v7a or change  -DCMAKE_BUILD_TYPE=Debug, it works well. Do you know why?"}}
{"actor":{"display_login":"Shuijwan"}}