c - lua inside function appears segfault -
code:
m_l = lual_newstate(); if(m_l==null) { return -1; } lual_openlibs(m_l);
i use gdb test code, when runs lual_openlibs(m_l); gdb tell me program received signal sigsegv, segmentation fault. luah_getstr (t=0x7fa950, key=0x7cc2e0) @ ltable.c:458 458 if (ttisstring(gkey(n)) && rawtsvalue(gkey(n)) == key)) don't knwo how fix it. please me out.
Comments
Post a Comment