logo separator

[mkgmap-dev] [PATCH] Fix crash when parsing invalid UTF-8 files (WanMil)

From Steve Ratcliffe steve at parabola.me.uk on Tue Oct 25 20:32:55 BST 2011


> I think the problem is that the mkgmap Sort object is unsynchronized but
> used by several threads. If they use the internal encoder at the same

Ahh, well spotted.


> The problem should be fixed by using a separate Sort object for each
> thread. One solution would be if CommandArgs.getSort() returns a copy. I
> am not sure how to create a valid copy of a Sort object.

it does return a completely new Sort object for each file...

So I'm not sure what is going on, investigating...

More information about the mkgmap-dev mailing list