Re: Frequent crashes of Io repl

"alias_of_kwhyte" <[email protected]>
Newsgroups gmane.comp.lang.io
Message-ID <[email protected]>




I'm on Lion and I'm getting the same crash. All I have to do is run Io in interactive mode, hit enter 9 times and it crashes, every time. It doesn't seem to crash when running a file from the command line though...

I have a workaround by commenting out the pause message at the end of Coroutine's main method in A4_Exception.io and then building Io. Alternatively, you can run the following at the start of the interactive session:
Coroutine main := method(setResult(self getSlot("runTarget") doMessage(runMessage, self getSlot("runLocals"))); resumeParentCoroutine)

This most likely breaks something, but it seems to work. With this "fix" I can run,
100 repeat (x,x @println)
yield
just fine. I just started using Io, but if someone with a better handle on how the VM handles coroutines, I'll gladly help debug.

Kevin

--- In [email protected], "kode.sutra" <kode.sutra@...> wrote:
>
> One more thing, FYI ... I do not get these crashes on a linux machine! Anyone else on Mac OS X Lion facing similar issues?
> 
> 
> Thanks
> -Narayan-
> 
> --- In [email protected], "kode.sutra" <kode.sutra@> wrote:
> >
> > FYI, This is on a Mac OS X Lion. (Macbook)
> > 
> > Thanks
> > -Narayan-
> > 
> > --- In [email protected], "kode.sutra" <kode.sutra@> wrote:
> > >
> > > Hi Steve,
> > > Here's the output, this is happening consistently now. Am I doing
> > > something wrong here?:
> > > ∴ioIo 20090105Io> Vehicle := Object clone==> 
> > > Vehicle_0x7f9f210d94a0:  type             = "Vehicle"
> > > Io> Vehicle tyres := 4==> 4Io> Vehicle doors := 2==> 2Io> Vehicle engine
> > > := "V8"==> V8Io> Vehicle slotNames==> list(doors, type, engine,
> > > tyres)Io> Vehicle type==> VehicleIo> Car := Vehicle clone==> 
> > > Car_0x7f9f20605da0:  type             = "Car"
> > > Io> Car slotNames ==> list(type)Io> Car type==> CarScheduler: nothing
> > > left to resume so we are exiting  ---------  Coroutine callStack
> > > A4_Exception.io 244  Coroutine backTraceString           
> > > A4_Exception.io 274  Coroutine showStack                 
> > > A4_Exception.io 177  Coroutine pause                     
> > > A4_Exception.io 286
> > > Thanks-Narayan-
> > > --- In [email protected], Steve Dekorte <steve@> wrote:
> > > >
> > > >
> > > > I'm unable to repeat this. Can you describe your platform, the version
> > > of Io, etc?
> > > >
> > > > On 2011-08-03 Wed, at 05:36 AM, naaraayana_iyer wrote:
> > > >
> > > > > All,
> > > > >
> > > > > I am facing frequent crashes when using Io REPL. Here are two
> > > crashes in 5 minutes, should I report this as a bug?
> > > > >
> > > > > Thanks
> > > > > -Narayan-
> > > > >
> > > > > Io> Car := Vehicle clone
> > > > > Scheduler: nothing left to resume so we are exiting
> > > > >  ---------
> > > > >  Coroutine callStack                  A4_Exception.io 244
> > > > >  Coroutine backTraceString            A4_Exception.io 274
> > > > >  Coroutine showStack                  A4_Exception.io 177
> > > > >  Coroutine pause                      A4_Exception.io 286
> > > > >
> > > > >
> > > > > Io> Car type
> > > > > ==> Car
> > > > > Scheduler: nothing left to resume so we are exiting
> > > > >  ---------
> > > > >  Coroutine callStack                  A4_Exception.io 244
> > > > >  Coroutine backTraceString            A4_Exception.io 274
> > > > >  Coroutine showStack                  A4_Exception.io 177
> > > > >  Coroutine pause                      A4_Exception.io 286
> > > > >
> > > > >
> > > > >
> > > > > ------------------------------------
> > > > >
> > > > > Yahoo! Groups Links
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.