Hi All,

I'm new to openstreetmap and I've nearly succeeded in having a working tile server on a Fedora 18 box.

However I experience problems with mod_tile/renderd:

- all wiki pages I find simply state for instance:

Get and install mod_tile itself:
cd ~/src
svn co http://svn.openstreetmap.org/applications/utils/mod_tile
cd mod_tile
./autogen.sh
./configure

- but I have crashes with renderd with what's currently available on the SVN repo:

*** glibc detected *** /data/mod_tile/.libs/lt-renderd: free(): invalid next size (fast): 0x00007f602c36af00 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3e5887ca8e]
/data/mod_tile/.libs/lt-renderd[0x407920]
/data/mod_tile/.libs/lt-renderd[0x406bf1]
/lib64/libpthread.so.0[0x3e59007d15]
/lib64/libc.so.6(clone+0x6d)[0x3e588f246d]

- Revision 29404, the current revision also has a bug in store_file.c:

...
    tmp = malloc(sizeof(char) * strlen(meta_path) + 12);
    sprintf(tmp, "%s.%lu", meta_path, pthread_self());

    if (mkdirp(tmp))
        free(tmp);
        return -1;

    fd = open(tmp, O_WRONLY | O_TRUNC | O_CREAT, 0666);
...

'{}' are missing around the free/return following a failed call to mkdirp(). https://github.com/openstreetmap/mod_tile/blob/master/store_file.c shows the same problem.

https://github.com/openstreetmap/mod_tile/commit/398310fdf662d56a283801a8274a072c07983a8b#store_file.c shows that the file was initially added with the bug.

Such a bug makes me think that the current revision isn't a stable one since it breaks to whole functioning of renderd and not a single tile can be generated.

So I'm looking for a SVN revision known to be stable (or a repo that holds stable revisions) and wasn't able to locate one yet.

Any hint welcome!

Thanks,

  Bernard

_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to