debugging a crash on Windows

Linus Torvalds torvalds at linux-foundation.org
Sat Jun 7 11:48:55 PDT 2014


On Sat, Jun 7, 2014 at 8:02 AM, Dirk Hohndel <dirk at hohndel.org> wrote:
>
> Needless to say, the xml file can of course be opened on Linux without any
> issues.

No it cannot.

You didn't run valgrind on it, I think.

There's a major bug in commit eaf6d564874a: it changes the types of a
lot of the sample data structure entries, but then doesn't change the
parsing code.

And the parsing code passes the address to the entries down to things
like "get_index()" that assume they are getting a pointer to "int".
But now they get a pointer to char, that may be at the end of an
allocation too..

I'll see if I can make some really ugly macro magic that makes this "typesafe".

            Linus


More information about the subsurface mailing list