mapnik/mapnik — Issue #1111: timeout & segfaults
Author: ramunasd
Created: 2012-03-02 13:05:25+00:00
State: open

Sometimes mapnik tooks very long(>600 seconds) to render tile. Sometimes it just dies. Here is info from syslog:
```
Mar 2 10:39:17 hq kernel: [904229.330633] mapnik[31075]: segfault at 0 ip 00007f0277109f67 sp 00007fff7ad2f510 error 4 in libmapnik.so.2.0.0[7f0276da0000+422000]
Mar 2 10:40:04 hq tirex-backend-manager[14972]: Found config for renderers: mapnik
Mar 2 10:40:04 hq tirex-backend-manager[14972]: opened port 9331 for renderer 'mapnik'
Mar 2 10:40:04 hq tirex-backend-manager[14972]: renderer mapnik started with pid 14973
Mar 2 10:40:04 hq tirex-backend-manager[14972]: renderer mapnik started with pid 14974
Mar 2 10:40:06 hq tirex-backend-mapnik[14974]: Renderer started (name=mapnik)
Mar 2 10:40:06 hq tirex-backend-mapnik[14973]: Renderer started (name=mapnik)
Mar 2 12:08:44 hq kernel: [909597.284402] mapnik[14973] general protection ip:7fefd7a7ef67 sp:7fffea03e040 error:0 in libmapnik.so.2.0.0[7fefd7715000+422000]
Mar 2 12:09:02 hq tirex-backend-manager[13165]: Found config for renderers: mapnik
Mar 2 12:09:02 hq tirex-backend-manager[13165]: opened port 9331 for renderer 'mapnik'
Mar 2 12:09:02 hq tirex-backend-manager[13165]: renderer mapnik started with pid 13166
Mar 2 12:09:02 hq tirex-backend-manager[13165]: renderer mapnik started with pid 13167
Mar 2 12:09:03 hq tirex-backend-mapnik[13166]: Renderer started (name=mapnik)
Mar 2 12:09:03 hq tirex-backend-mapnik[13167]: Renderer started (name=mapnik)
Mar 2 13:10:24 hq kernel: [913297.030675] mapnik[13166]: segfault at 1010 ip 00007fe8d43aaf7e sp 00007fff7782f4c0 error 4 in libmapnik.so.2.0.0[7fe8d4041000+422000]
Mar 2 13:11:01 hq tirex-backend-manager[24548]: Found config for renderers: mapnik
Mar 2 13:11:01 hq tirex-backend-manager[24548]: opened port 9331 for renderer 'mapnik'
Mar 2 13:11:01 hq tirex-backend-manager[24548]: renderer mapnik started with pid 24549
Mar 2 13:11:01 hq tirex-backend-manager[24548]: renderer mapnik started with pid 24550
Mar 2 13:11:02 hq tirex-backend-mapnik[24549]: Renderer started (name=mapnik)
Mar 2 13:11:02 hq tirex-backend-mapnik[24550]: Renderer started (name=mapnik)
Mar 2 14:48:19 hq kernel: [919171.721262] mapnik[24549] general protection ip:7fbb11f23f67 sp:7fffd229b880 error:0 in libmapnik.so.2.0.0[7fbb11bba000+422000]
```

How to debug it properly?