On Wed, Nov 07, 2012 at 12:14:49AM -0000, Chris Young wrote: > On Tue, November 6, 2012 10:57 pm, Vincent Sanders wrote: > > On Tue, Nov 06, 2012 at 08:22:02PM +0000, Chris Young wrote: > >> I have to remove the trailing slash on the -I parameter to pacify > >> AmigaOS (nsgenbind tries to open javascript/WebIDL//dom.idl otherwise, > >> which will never work) > > > > ok, unix doesnt care but its no problem to have it like that > > Cool. > > >> nsgenbind -I javascript/WebIDL -d build-amiga-amiga/window.d -o > >> build-amiga-amiga/window.c javascript/jsapi/window.bnd > >> > >> It then crashes with this stack trace: > > > > this smells of stack overflow. > > That was my first thought too, but it says it hasn't run out of stack, and > checking with another tool it agreed that I'd assigned 500K, and shows > that it had only ever used 1% of that by the time it crashed.
right, it was a stack smash...caused by uninitialised variable in the parser from the webIDL Dictionary parse (should have returned NULL instead of "whatevers on the stack" > > > the fact it crashes on windows is a bit worrying, obviously it is just > > fine on Linux but I will continue to investigate for you. > > Thanks. On Windows it crashes quite silently, I get the attached > "stackdump" file continually updated/rewritten as it goes through the > nsgenbind commands. No errors are ever reported on the Shell, until gcc > tries to read the generated files and they aren't there. > > Chris Should be fixed now, let me know -- Regards Vincent http://www.kyllikki.org/
