[mapserver-users] Apache crash using Mapserver with big mapfile (about 2500 lines)
Edgardo Ghibaudo
edgardo.ghibaudo at provincia.biella.it
Thu May 7 00:48:00 PDT 2009
Dear users,
I’m using the following environment:
Ubuntu 6.06 (libc6 2.3.6)
Apache 2.2.9
Php 4.4.2
Mapserver 4.8.2
Maplab 2.2.1 (last available version)
Using a project inside Maplab/gmapfactory with a big mapfile (about 2500 lines) the httpd process of Apache crash.
Enclosed you can find the details of the crash (Backtrace/Memory map).
Apache compilation details:
./configure --prefix=/usr/local/apache229 --enable-info --enable-mime-magic --enable-rewrite --enable-so --enable-speling --enable-unique_id --enable-usertrack --with-mpm=prefork
PHP compilation details:
./configure --enable-kbmmw --with-regex=system --with-freetype --with-dbase --prefix=/usr/local/apache229/php --with-mysql=/usr/local/mysql4115 --with-pgsql=shared,/usr/local/pgsql8014 --with-pdflib=shared,/usr/local/pdflite703 --with-config-file-path=/usr/local/apache229/php --with-png --with-jpeg --with-jpeg-dir=/usr/local --with-tiff --with-gd --with-zlib --enable-track-vars --enable-sockets --enable-wddx=shared --with-xmlrpc=shared --enable-calendar --with-iconv=/usr/local/libiconv112 --with-iconv-dir=/usr/local/libiconv112 --with-apxs2=/usr/local/apache229/bin/apxs --enable-cgi
Mapserver compilation details:
./configure --enable-debug --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-gd --with-httpd=/usr/local/apache229/bin/httpd --with-php=/usr/local/apache229/php --with-php-regex-dir=/usr/local/apache229/php/regex --enable-runpath --enable-force-freetype1 --with-wmsclient --with-freetype --with-png=/usr/local --with-jpeg=/usr/local --with-libiconv=/usr/local --with-wfs --with-wfsclient --with-postgis=/usr/local/pgsql8014/bin/pg_config
I tried to upgrade the OS version (Ubuntu 7.04 – libc6 2.5.0), but the result doesn’t change.
I tried also to compile different SW versions (Apache 1.3.41, Php 4.4.9, Mapserver 4.8.3 & 4.8.4), but the result doesn’t change
Many thanks,
Edgardo
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*** glibc detected *** /usr/local/apache229/bin/httpd: free(): invalid next size (fast): 0x087bdf40 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7d7b7cd]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d7ee30]
/usr/local/apache229/php/extensions/php_mapscript_44.so(msFreeShape+0x35)[0xb7814de5]
/usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawVectorLayer+0x336)[0xb7828ca6]
/usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawLayer+0xaa)[0xb7828faa]
/usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawMap+0x5d3)[0xb7829f33]
/usr/local/apache229/php/extensions/php_mapscript_44.so(mapObj_draw+0x1d)[0xb77e34dd]
/usr/local/apache229/php/extensions/php_mapscript_44.so(php3_ms_map_draw+0x6c)[0xb77db65c]
/usr/local/apache229/modules/libphp4.so(execute+0x6b43)[0xb7c7d943]
/usr/local/apache229/modules/libphp4.so(zend_execute_scripts+0xde)[0xb7c674fe]
/usr/local/apache229/modules/libphp4.so(php_execute_script+0x316)[0xb7c3b006]
/usr/local/apache229/modules/libphp4.so[0xb7c8171b]
/usr/local/apache229/bin/httpd(ap_run_handler+0x59)[0x807b1b9]
/usr/local/apache229/bin/httpd(ap_invoke_handler+0x67)[0x807e447]
/usr/local/apache229/bin/httpd(ap_process_request+0x178)[0x8098af8]
/usr/local/apache229/bin/httpd[0x8095d9b]
/usr/local/apache229/bin/httpd(ap_run_process_connection+0x59)[0x8082539]
/usr/local/apache229/bin/httpd[0x80b68f5]
/usr/local/apache229/bin/httpd[0x80b6bb7]
/usr/local/apache229/bin/httpd(ap_mpm_run+0x880)[0x80b7510]
/usr/local/apache229/bin/httpd(main+0x865)[0x8068ae5]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d29ebc]
/usr/local/apache229/bin/httpd(apr_os_proc_mutex_put+0x5d)[0x8067ca1]
======= Memory map: ========
08048000-080d6000 r-xp 00000000 08:02 3574122 /usr/local/apache229/bin/httpd
080d6000-080d9000 rwxp 0008e000 08:02 3574122 /usr/local/apache229/bin/httpd
080d9000-08879000 rwxp 080d9000 00:00 0 [heap]
b4697000-b4718000 rwxp b4697000 00:00 0
b4718000-b4719000 ---p b4718000 00:00 0
b4719000-b4f19000 rwxp b4719000 00:00 0
b4f19000-b4f1a000 ---p b4f19000 00:00 0
b4f1a000-b571a000 rwxp b4f1a000 00:00 0
b571a000-b571b000 ---p b571a000 00:00 0
b571b000-b5f1b000 rwxp b571b000 00:00 0
b5f1b000-b5f1c000 ---p b5f1b000 00:00 0
b5f1c000-b6add000 rwxp b5f1c000 00:00 0
b6add000-b6b1e000 rwxp b6b1e000 00:00 0
b6b30000-b6b3f000 rwxp b6b30000 00:00 0
b6b4b000-b6b6a000 r-xp 00000000 08:02 3558881 /usr/local/lib/libNCSUtil.so.0.0.0
b6b6a000-b6b6c000 rwxp 0001e000 08:02 3558881 /usr/local/lib/libNCSUtil.so.0.0.0
b6b6c000-b6b6d000 rwxp b6b6c000 00:00 0
b6b6d000-b6b82000 r-xp 00000000 08:02 3558886 /usr/local/lib/libNCSCnet.so.0.0.0
b6b82000-b6b83000 rwxp 00015000 08:02 3558886 /usr/local/lib/libNCSCnet.so.0.0.0
b6b83000-b6ca4000 r-xp 00000000 08:02 3558876 /usr/local/lib/libNCSEcw.so.0.0.0
b6ca4000-b6cac000 rwxp 00121000 08:02 3558876 /usr/local/lib/libNCSEcw.so.0.0.0
b6cac000-b6cb9000 rwxp b6cac000 00:00 0
b6cb9000-b6cd7000 r-xp 00000000 08:02 3544617 /usr/lib/libexpat.so.1.0.0
b6cd7000-b6cd9000 rwxp 0001d000 08:02 3544617 /usr/lib/libexpat.so.1.0.0
b6cd9000-b6e16000 r-xp 00000000 08:02 3558864 /usr/local/lib/libgeos-3.0.0.so
b6e16000-b6e1b000 rwxp 0013d000 08:02 3558864 /usr/local/lib/libgeos-3.0.0.so
b6e1b000-b6e2b000 r-xp 00000000 08:02 3558867 /usr/local/lib/libgeos_c.so.1.4.1
b6e2b000-b6e2c000 rwxp 0000f000 08:02 3558867 /usr/local/lib/libgeos_c.so.1.4.1
b6e2c000-b6e37000 r-xp 00000000 08:02 3096590 /lib/libgcc_s.so.1
b6e37000-b6e38000 rwxp 0000a000 08:02 3096590 /lib/libgcc_s.so.1
b6e38000-b6f17000 r-xp 00000000 08:02 3541506 /usr/lib/libstdc++.so.6.0.8
b6f17000-b6f1a000 r-xp 000de000 08:02 3541506 /usr/lib/libstdc++.so.6.0.8
b6f1a000-b6f1c000 rwxp 000e1000 08:02 3541506 /usr/lib/libstdc++.so.6.0.8
b6f1c000-b6f22000 rwxp b6f1c000 00:00 0
b6f22000-b6f3f000 r-xp 00000000 08:02 3544663 /usr/lib/libgd.so.2.0.34
b6f3f000-b6f5f000 rwxp 0001c000 08:02 3544663 /usr/lib/libgd.so.2.0.34
b6f5f000-b6f73000 rwxp b6f5f000 00:00 0
b6f73000-b6fa4000 r-xp 00000000 08:02 3558847 /usr/local/lib/libproj.so.0.5.4
b6fa4000-b6fa6000 rwxp 00030000 08:02 3558847 /usr/local/lib/libproj.so.0.5.4
b6fa6000-b7441000 r-xp 00000000 08:02 3559023 /usr/local/lib/libgdal.so.1.12.2
b7441000-b7496000 rwxp 0049a000 08:02 3559023 /usr/local/lib/libgdal.so.1.12.2
b7496000-b7498000 rwxp b7496000 00:00 0
b7498000-b7500000 r-xp 00000000 08:02 3544629 /usr/lib/libfreetype.so.6.3.10
b7500000-b7503000 rwxp 00068000 08:02 3544629 /usr/lib/libfreetype.so.6.3.10
b7503000-b751b000 r-xp 00000000 08:02 3638511 /usr/local/pgsql8014/lib/libpq.so.4.0
b751b000-b751c000 rwxp 00018000 08:02 3638511 /usr/local/pgsql8014/lib/libpq.so.4.0
b751c000-b7646000 r-xp 00000000 08:02 3559091 /usr/lib/i686/cmov/libcrypto.so.0.9.8
b7646000-b765a000 rwxp 00129000 08:02 3559091 /usr/lib/i686/cmov/libcrypto.so.0.9.8
b765a000-b765e000 rwxp b765a000 00:00 0
b765e000-b769a000 r-xp 00000000 08:02 3559092 /usr/lib/i686/cmov/libssl.so.0.9.8
b769a000-b769e000 rwxp 0003b000 08:02 3559092 /usr/lib/i686/cmov/libssl.so.0.9.8
b769e000-b76cd000 r-xp 00000000 08:02 3544755 /usr/lib/libidn.so.11.5.19
b76cd000-b76ce000 rwxp 0002f000 08:02 3544755 /usr/lib/libidn.so.11.5.19
b76ce000-b76d1000 r-xp 00000000 08:02 3544765 /usr/lib/libkrb5support.so.0.0
b76d1000-b76d2000 rwxp 00003000 08:02 3544765 /usr/lib/libkrb5support.so.0.0
b76d2000-b76f6000 r-xp 00000000 08:02 3544762 /usr/lib/libk5crypto.so.3.0
b76f6000-b76f7000 rwxp 00024000 08:02 3544762 /usr/lib/libk5crypto.so.3.0
b76f7000-b7772000 r-xp 00000000 08:02 3544764 /usr/lib/libkrb5.so.3.2
b7772000-b7774000 rwxp 0007b000 08:02 3544764 /usr/lib/libkrb5.so.3.2
b7774000-b77a8000 r-xp 00000000 08:02 3544758 /usr/lib/libcurl.so.3.0.0
b77a8000-b77a9000 rwxp 00034000 08:02 3544758 /usr/lib/libcurl.so.3.0.0
b77a9000-b789f000 r-xp 00000000 08:02 3639336 /usr/local/apache229/php/extensions/php_mapscript.so
b789f000-b78a4000 rwxp 000f6000 08:02 3639336 /usr/local/apache229/php/extensions/php_mapscript.so
b78a4000-b78a6000 rwxp b78a4000 00:00 0
b78a6000-b78af000 rwxp b78a6000 00:00 0
b78af000-b78b1000 r-xp 00000000 08:02 3100952 /lib/libcom_err.so.2.1
b78b1000-b78b2000 rwxp 00001000 08:02 3100952 /lib/libcom_err.so.2.1
b78b2000-b78cd000 r-xp 00000000 08:02 3542145 /usr/lib/libgssapi_krb5.so.2.2
b78cd000-b78ce000 rwxp 0001b000 08:02 3542145 /usr/lib/libgssapi_krb5.so.2.2
b78cf000-b78d2000 rwxp b78cf000 00:00 0
b78d2000-b78e2000 rwxs 00000000 00:08 351751 /dev/zero (deleted)
b78e2000-b78e9000 r-xs 00000000 08:02 3541006 /usr/lib/gconv/gconv-modules.cache
b78e9000-b7924000 r-xp 00000000 08:02 3573704 /usr/lib/locale/it_IT.utf8/LC_CTYPE
b7924000-b792d000 r-xp 00000000 08:02 3096738 /lib/tls/i686/cmov/libnss_files-2.5.so
b792d000-b792f000 rwxp 00008000 08:02 3096738 /lib/tls/i686/cmov/libnss_files-2.5.so
b792f000-b7937000 r-xp 00000000 08:02 3096741 /lib/tls/i686/cmov/libnss_nis-2.5.so
b7937000-b7939000 rwxp 00007000 08:02 3096741 /lib/tls/i686/cmov/libnss_nis-2.5.so
b7939000-b7940000 r-xp 00000000 08:02 3096736 /lib/tls/i686/cmov/libnss_compat-2.5.so
b7940000-b7942000 rwxp 00006000 08:02 3096736 /lib/tls/i686/cmov/libnss_compat-2.5.so
b7942000-b7955000 r-xp 00000000 08:02 3096735 /lib/tls/i686/cmov/libnsl-2.5.so
b7955000-b7957000 rwxp 00012000 08:02 3096735 /lib/tls/i686/cmov/libnsl-2.5.so
b7957000-b7959000 rwxp b7957000 00:00 0
b7959000-b7968000 r-xp 00000000 08:02 3096747 /lib/tls/i686/cmov/libresolv-2.5.so
b7968000-b796a000 rwxp 0000f000 08:02 3096747 /lib/tls/i686/cmov/libresolv-2.5.so
b796a000-b796c000 rwxp b796a000 00:00 0
b796c000-b798a000 r-xp 00000000 08:02 3558823 /usr/local/lib/libjpeg.so.62.0.0
b798a000-b798b000 rwxp 0001d000 08:02 3558823 /usr/local/lib/libjpeg.so.62.0.0
b798b000-b799e000 r-xp 00000000 08:02 3541002 /usr/lib/libz.so.1.2.3
b799e000-b799f000 rwxp 00012000 08:02 3541002 /usr/lib/libz.so.1.2.3
b799f000-b79c1000 r-xp 00000000 08:02 3558834 /usr/local/lib/libpng12.so.0.29.0
b79c1000-b79c2000 rwxp 00022000 08:02 3558834 /usr/local/lib/libpng12.so.0.29.0
b79c2000-b7a9f000 r-xp 00000000 08:02 3637348 /usr/local/libiconv112/lib/libiconv.so.2.4.0
b7a9f000-b7aa0000 rwxp 000dd000 08:02 3637348 /usr/local/libiconv112/lib/libiconv.so.2.4.0
b7aa0000-b7ad9000 r-xp 00000000 08:02 3606021 /usr/local/mysql4115/lib/mysql/libmysqlclient.so.14.0.0
b7ad9000-b7afc000 rwxp 00039000 08:02 3606021 /usr/local/mysql4115/lib/mysql/libmysqlclient.so.14.0.0
b7afc000-b7afe000 rwxp b7afc000 00:00 0
b7afe000-b7cba000 r-xp 00000000 08:02 3606099 /usr/local/apache229/modules/libphp4.so
b7cba000-b7cfa000 rwxp 001bb000 08:02 3606099 /usr/local/apache229/modules/libphp4.so
b7cfa000-b7d14000 rwxp b7cfa000 00:00 0
b7d14000-b7e4f000 r-xp 00000000 08:02 3096728 /lib/tls/i686/cmov/libc-2.5.so
b7e4f000-b7e50000 r-xp 0013b000 08:02 3096728 /lib/tls/i686/cmov/libc-2.5.so
b7e50000-b7e52000 rwxp 0013c000 08:02 3096728 /lib/tls/i686/cmov/libc-2.5.so
b7e52000-b7e55000 rwxp b7e52000 00:00 0
b7e55000-b7e57000 r-xp 00000000 08:02 3096732 /lib/tls/i686/cmov/libdl-2.5.so
b7e57000-b7e59000 rwxp 00001000 08:02 3096732 /lib/tls/i686/cmov/libdl-2.5.so
b7e59000-b7e5a000 rwxp b7e59000 00:00 0
b7e5a000-b7e6d000 r-xp 00000000 08:02 3096746 /lib/tls/i686/cmov/libpthread-2.5.so
b7e6d000-b7e6f000 rwxp 00013000 08:02 3096746 /lib/tls/i686/cmov/libpthread-2.5.so
b7e6f000-b7e71000 rwxp b7e6f000 00:00 0
b7e71000-b7e76000 r-xp 00000000 08:02 3096730 /lib/tls/i686/cmov/libcrypt-2.5.so
b7e76000-b7e78000 rwxp 00004000 08:02 3096730 /lib/tls/i686/cmov/libcrypt-2.5.so
b7e78000-b7e9f000 rwxp b7e78000 00:00 0
b7e9f000-b7ea6000 r-xp 00000000 08:02 3096749 /lib/tls/i686/cmov/librt-2.5.so
b7ea6000-b7ea8000 rwxp 00006000 08:02 3096749 /lib/tls/i686/cmov/librt-2.5.so
b7ea8000-b7ecd000 r-xp 00000000 08:02 3574050 /usr/local/apache229/lib/libapr-1.so.0.3.0
b7ecd000-b7ece000 rwxp 00025000 08:02 3574050 /usr/local/apache229/lib/libapr-1.so.0.3.0
b7ece000-b7ee8000 r-xp 00000000 08:02 3574095 /usr/local/apache229/lib/libexpat.so.0.1.0
b7ee8000-b7eea000 rwxp 00019000 08:02 3574095 /usr/local/apache229/lib/libexpat.so.0.1.0
b7eea000-b7eeb000 rwxp b7eea000 00:00 0
b7eeb000-b7f06000 r-xp 00000000 08:02 3574101 /usr/local/apache229/lib/libaprutil-1.so.0.3.0
b7f06000-b7f07000 rwxp 0001b000 08:02 3574101 /usr/local/apache229/lib/libaprutil-1.so.0.3.0
b7f07000-b7f2c000 r-xp 00000000 08:02 3096733 /lib/tls/i686/cmov/libm-2.5.so
b7f2c000-b7f2e000 rwxp 00024000 08:02 3096733 /lib/tls/i686/cmov/libm-2.5.so
b7f2e000-b7f34000 rwxp b7f2e000 00:00 0
b7f34000-b7f4d000 r-xp 00000000 08:02 3096591 /lib/ld-2.5.so
b7f4d000-b7f4f000 rwxp 00019000 08:02 3096591 /lib/ld-2.5.so
bfec6000-bfedc000 rw-p bfec6000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
[Wed May 06 08:54:04 2009] [notice] child pid 26930 exit signal Aborted (6)
--http://www.provincia.biella.it------------------------------------------------------
Vuoi rimanere sempre aggiornato sulle nostre attivita'?
Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse.
--Avviso------------------------------------------------------------------------------
Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in
indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e'
pervenuto per errore, vi informiamo che ogni suo uso e'proibito.
In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo.
Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it.
Grazie -Il Webmaster.
--Warning-----------------------------------------------------------------------------
This message and its attachments are addressed solely to the persons above and may
contain confidential information. If you have received the message in error, be
informed that any use of the content hereof is prohibited.
Please return it immediately to the sender and delete the message. Should you have
any questions, please contact us by replying to ced at provincia.biella.it.
The Webmaster.
--------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090507/f5989828/attachment.htm>
More information about the MapServer-users
mailing list