[DGD] Bug with function pointers
bart at wotf.org
bart at wotf.org
Fri Feb 24 00:45:04 CET 2017
That is a matter of perspective.. ;-) Unlike a normal shutdown, and similar to
when receiving a fatal signal, it exits with an errorcode so you can make your
loop script stop instead of mindlessly repeating.
Bart.
On Thu, 23 Feb 2017 14:52:56 -0800, Raymond Jennings wrote
> I also would challenge the characterization of this as an "abort"
>
> Runtime errors during the initial task cause DGD to shut down.
>
> That FREE() garbage related to str.cpp though looks like a memory
> leak of some sort. Dworkin?
>
> On Thu, Feb 23, 2017 at 1:36 PM, <bart at wotf.org> wrote:
>
> > If a function does not exist, you cannot create a pointer to it.
> >
> > Since this specific example happens during initialization, dgd aborts.
> > This is
> > desired behavior. Non essential code should not be called in this initial
> > stage of booting, and errors in code which runs should indicate a failure
> > to
> > boot properly. Everything non essential should run later (after a
> > call_out).
> >
> > If it happens after initialization, ie during a regular compile during
> > normal
> > operation, it results in a regular runtime error and not in an abort.
> >
> > Bart.
> >
> > On Thu, 23 Feb 2017 13:42:52 -0600, Blain wrote
> > > If function 'foo' does not exist:
> > > &foo();
> > > results in:
> > >
> > > /usr/System/initd.c, 120: Undefined function foo
> > > Feb 23 13:41:18 ** Failed to compile "/usr/System/core.c"
> > > 519 initialize /kernel/sys/driver
> > > 505 _initialize /kernel/sys/driver
> > > 337 initd /kernel/sys/rsrcd
> > > 286 compile_object /kernel/lib/auto (/kernel/sys/rsrcd)
> > > 241 _compile /kernel/lib/auto (/kernel/sys/rsrcd)
> > > Feb 23 13:41:18 ** Initialization failed.
> > > FREE(200d1d7c/28), str.cpp line 49:
> > > 00 00 00 00 00 00 00 00 10 00 'b 'u 'i 'l 't 'i 'n '/ 'f 'u 'n 'c
> > > 't 'i 'o 'n ____________________________________________
> > https://mail.dworkin.nl/mailman/listinfo/dgd
> >
> >
> > --
> > http://www.flickr.com/photos/mrobjective/
> > http://www.om-d.org/
> >
> > ____________________________________________
> > https://mail.dworkin.nl/mailman/listinfo/dgd
> ____________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd
--
http://www.flickr.com/photos/mrobjective/
http://www.om-d.org/
More information about the DGD
mailing list