Tuesday, 6 November 2012

Re: nsgenbind crash

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.

> 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

No comments:

Post a Comment