[Tile-serving] [openstreetmap/mod_tile] Config: more than 10 configurations found (Issue #396)

Hummeltech notifications at github.com
Mon Mar 4 23:00:22 UTC 2024


I suspect it is because there are `XMLCONFIGS_MAX` instances of `xmlmapconfig` being created for every `render_thread`

https://github.com/openstreetmap/mod_tile/blob/7389b160bf6af3c50272e369dd083717ad0c473b/src/gen_tile.cpp#L367-L370

This is likely exhausting the thread's maximum stack size limit, which can be found like so:
```shell
$ ulimit --stack-size
```

On my system the limit is `8192` (I.E. `8388608` bytes) which is exceeded when setting `XMLCONFIGS_MAX` to 500 as can be seen in this backtrace:
```gdb
#0  0x00006250cc6fafa9 in render_thread (arg=<error reading variable: Cannot access memory at address 0x78fc55bdc338>) at ./src/gen_tile.cpp:368
        parentxmlconfig = <error reading variable parentxmlconfig (Cannot access memory at address 0x78fc55bdc358)>
        maps = <error reading variable maps (value requires 8524000 bytes, which is more than max-value-size)>
        i = <error reading variable i (Cannot access memory at address 0x78fc55bdc344)>
        iMaxConfigs = <error reading variable iMaxConfigs (Cannot access memory at address 0x78fc55bdc348)>
        render_time = <error reading variable render_time (Cannot access memory at address 0x78fc55bdc34c)>
#1  0x000078fc636a955a in start_thread (arg=<optimized out>) at pthread_create.c:447
        ret = <optimized out>
        pd = <optimized out>
        out = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {133025174128320, 6261848273327184998, -2232, 25, 140720486476208, 133025165737984, -6404644596209460122, -6404599127370277786}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 
              0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#2  0x000078fc63726a3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/396#issuecomment-1977617093
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/mod_tile/issues/396/1977617093 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240304/9e5cf7cc/attachment.htm>


More information about the Tile-serving mailing list