Seg Fault after compiling and instaling mapcache with apache2, ubuntu 12.04
I've installed apache2 on my desktop and then followed these instructions https://github.com/mapserver/mapcache/blob/master/INSTALL
Mapcache is cloned to /home/kasheftin/work/mapcache directory, and I have such virtual host config:
<VirtualHost *:80>
DocumentRoot /home/kasheftin/work/mapcache
<IfModule mapcache_module>
<Directory /home/kasheftin/work/mapcache>
Require all granted
Satisfy Any
Order Allow,Deny
Allow from all
</Directory>
MapCacheAlias /mapcache "/home/kasheftin/work/mapcache/mapcache.xml"
</IfModule>
ErrorLog /home/kasheftin/work/mapcache/logs/error.log
CustomLog /home/kasheftin/work/mapcache/logs/access.log combined
</VirtualHost>
After that I restart apache and go to http://localhost/mapcache/demo/, and the demo page works. Then I go, for example, to this page http://localhost/mapcache/demo/wmts
- html is loading successfully, I have +- icons, but map is blank, and resources like http://localhost/mapcache/wmts/?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=test&STYLE=default&TILEMATRIXSET=WGS84&TILEMATRIX=0&TILEROW=0&TILECOL=0&FORMAT=image%2Fpng are loading infinitely.
I have theese rows in /var/log/apache2/error.log: Apache/2.2.20 (Ubuntu) mod-mapcache/0.5-dev configured -- resuming normal operations caught SIGTERM, shutting down Apache/2.2.20 (Ubuntu) mod-mapcache/0.5-dev configured -- resuming normal operations child pid 9617 exit signal Segmentation fault (11)
What should I do to get more specific description of this error?
Are you using the provided mapcache.xml or is this a custom one? What apache mpm are you using?
To provide a backtrace:
- reconfigure mapcache with --enable-debug, make clean && make install
- stop apache, and rerun it in gdb in debug/single process mode:
gdb --args httpd -X- (in gdb)
run
launch the failing request in your browser, then provide the output of the bt command when gdb has halted on the segfault.