lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I find a Segmentation fault (core dumped) in Coco 1.1.6 release.

OS: x86_64 GNU/Linux
lua script: '''

local resume, yield = coroutine.resume, coroutine.yield
function pcall_and_yield()
error "here , when -g in linux x86_64 , will Segmentation fault"
print ("ok")
local cx = coroutine.create(pcall_and_yield)


Coco 1.1.6 with Makefile -g ( not -O2) .
but with -O2 work fine !
with -g -DCOCO_USE_UCONTEXT work fine too.

or I am wrong ?

wukun (