lua-users home
lua-l archive

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


> On May 09, 2003 at 08:55 -0700, Bilyk, Alex wrote:
> > The following script crashes lua.exe under Win2K/VC.NET. 
> > 
> > -----------------------------------------------
> > function co_func (current_co)
> >    coroutine.resume(current_co)
> > end
> > 
> > local co = coroutine.create(co_func)
> > coroutine.resume(co, co)
> > -----------------------------------------------
> 
> The above script runs OK on my machine, Linux 2.4.20-386, Debian
> testing.  However, if I repeat the last line, I get a seg fault!
	Almost the same on my Mac OS X (Darwin 10.2.6, gcc 3.1):
I've got a "Bus error" when I repeated the last line.
		Tomas