[TinyOWS-dev] R: Re: tinyOWS - libc-2.11.1.so segmentation fault

xor_x at libero.it xor_x at libero.it
Wed May 11 03:35:40 EST 2011



>----Messaggio originale----
>Da: olivier.courtin at oslandia.com
>Data: 11/05/2011 9.49
>A: "TinyOWS developers discuss list"<tinyows-dev at lists.maptools.org>
>Ogg: Re: [TinyOWS-dev] tinyOWS - libc-2.11.1.so segmentation fault
>
>
>On May 11, 2011, at 9:34 AM, xor_x at libero.it wrote:
>
>> Hi,
>> I installed the new version of Ubuntu tinyOWS 1.0.0_rc1 10.04.1
>> LTS 64-bit on HP ProLiant DL380 G5.
>> In the same server I installed Geoserver 2.0.2, Postgres 8.4 and
>> Postgis 1.5.2 GEOS = 3.2.2-CAPI-1.6.2 PROJ = Rel 4.7.1,libxml = 2.7.6
>>
>> When I do /usr/lib/cgi-bin/./ tinyows --check I get the
>>
>> following error: Segmentation fault
>>
>> I check with dmesg:
>> [170496.923689] tinyows [26291]: segfault at 300001c4f ip
>> 00007f8e15c51870 sp 00007ffffd1bcde8 error 4 in libc-
>> 2.11.1.so [7f8e15b23000 a000 +17]
>>
>> libc seems to give problems. I tried to reinstall the library without
>> success. This happens to me even with the Version 0.9
>>
>> Can anyone give me some help?
>
>A set of questions to try to understand:
>
>Did you perform the make install step (i.e do you have /usr/local/ 
>tinyows/schema dir) ?
>What your configuration file look like (/usr/local/tinyows/config,xml) ?
>

Yes, I followed the installation procedure following this link: http:
//geotribu.net/node/264.
I copied  the schema demo on original schema installation

Here config..xml. I just changed only the username and password

Config.xml  
-----------------------------------------------------------------------------------------

<tinyows online_resource="http://127.0.0.1/cgi-bin/tinyows"
         schema_dir="/usr/local/tinyows/schema/">

  <pg host="127.0.0.1" user="xxx" password="xxxx" dbname="tinyows_demo" port="
5432"/>

  <metadata name="TinyOWS Server"
         title="TinyOWS Server - Demo Service" />

  <layer retrievable="1"
         writable="1"
         ns_prefix="tows"
         ns_uri="http://www.tinyows.org/"
         name="world"
         title="World Administrative Boundaries" />

  <layer retrievable="1"
         writable="1"
         prefix="tows"
         server="http://www.tinyows.org/"
         name="france"
         title="French Administrative Sub Boundaries (IGN - GeoFLA 
Departements)" />
</tinyows>

-----------------------------------------------------------------------------------------------------------------------------------

>Could you install (if not present) valgrind, and give the output of :
>valgrind -v --run-libc-freeres=no --show-reachable=yes /usr/lib/cgi- 
>bin/tinyows --check
>
This is output valgrind 
-------------------------------------------------------------------------------------------------------------------

root at map:/# valgrind -v --run-libc-freeres=no --show-reachable=yes 
/usr/lib/cgi-bin/tinyows --check
==27971== Memcheck, a memory error detector
==27971== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==27971== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for 
copyright info
==27971== Command: /usr/lib/cgi-bin/tinyows --check
==27971==
--27971-- Valgrind options:
--27971--    --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--27971--    -v
--27971--    --run-libc-freeres=no
--27971--    --show-reachable=yes
--27971-- Contents of /proc/version:
--27971--   Linux version 2.6.32-24-server (buildd at yellow) (gcc version 4.4.3 
(Ubuntu 4.4.3-4ubuntu5) ) #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010
--27971-- Arch and hwcaps: AMD64, amd64-sse3-cx16
--27971-- Page sizes: currently 4096, max supported 4096
--27971-- Valgrind library directory: /usr/lib/valgrind
--27971-- Reading syms from /usr/lib/cgi-bin/tinyows (0x400000)
--27971-- Reading syms from /lib/ld-2.11.1.so (0x4000000)
--27971-- Reading debug info from /lib/ld-2.11.1.so ..
--27971-- .. CRC mismatch (computed 14d842e7 wanted b05c9aeb)
--27971-- Reading debug info from /usr/lib/debug/lib/ld-2.11.1.so ..
--27971-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux 
(0x38000000)
--27971--    object doesn't have a dynamic symbol table
--27971-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp
--27971-- Reading suppressions file: /usr/lib/valgrind/default.supp
--27971-- REDIR: 0x4018350 (strlen) redirected to 0x380402d7 
(vgPlain_amd64_linux_REDIR_FOR_strlen)
--27971-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so 
(0x4a22000)
--27971-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.
so (0x4c24000)
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x04018350 (strlen              ) R-> 0x04c28710 strlen
--27971-- REDIR: 0x40181c0 (index) redirected to 0x4c28320 (index)
--27971-- REDIR: 0x4018240 (strcmp) redirected to 0x4c28cf0 (strcmp)
--27971-- Reading syms from /usr/lib/libpq.so.5.2 (0x4e2d000)
--27971-- Reading debug info from /usr/lib/libpq.so.5.2 ..
--27971-- .. CRC mismatch (computed 77be5fc7 wanted 90858b5d)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /usr/lib/libxml2.so.2.7.6 (0x5055000)
--27971-- Reading debug info from /usr/lib/libxml2.so.2.7.6 ..
--27971-- .. CRC mismatch (computed 4d7c73b9 wanted f416181a)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /usr/local/lib/libfcgi.so.0.0.0 (0x53a5000)
--27971-- Reading syms from /lib/libc-2.11.1.so (0x55b0000)
--27971-- Reading debug info from /lib/libc-2.11.1.so ..
--27971-- .. CRC mismatch (computed 51f09164 wanted 9cdff916)
--27971-- Reading debug info from /usr/lib/debug/lib/libc-2.11.1.so ..
--27971-- Reading syms from /lib/libssl.so.0.9.8 (0x5933000)
--27971-- Reading debug info from /lib/libssl.so.0.9.8 ..
--27971-- .. CRC mismatch (computed bc710b59 wanted 12409b92)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /lib/libcrypto.so.0.9.8 (0x5b85000)
--27971-- Reading debug info from /lib/libcrypto.so.0.9.8 ..
--27971-- .. CRC mismatch (computed c09c2145 wanted 430c8be1)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /usr/lib/libkrb5.so.3.3 (0x5f15000)
--27971-- Reading debug info from /usr/lib/libkrb5.so.3.3 ..
--27971-- .. CRC mismatch (computed 2262e85d wanted 6009fa31)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /lib/libcom_err.so.2.1 (0x61d9000)
--27971-- Reading debug info from /lib/libcom_err.so.2.1 ..
--27971-- .. CRC mismatch (computed 8ee16e55 wanted 85bab119)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /usr/lib/libgssapi_krb5.so.2.2 (0x63dd000)
--27971-- Reading debug info from /usr/lib/libgssapi_krb5.so.2.2 ..
--27971-- .. CRC mismatch (computed 3ae19af0 wanted 5aa8f2be)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /lib/libcrypt-2.11.1.so (0x6611000)
--27971-- Reading debug info from /lib/libcrypt-2.11.1.so ..
--27971-- .. CRC mismatch (computed 6a969009 wanted 2210cc0e)
--27971-- Reading debug info from /usr/lib/debug/lib/libcrypt-2.11.1.so ..
--27971-- Reading syms from /usr/lib/libldap_r-2.4.so.2.5.4 (0x684a000)
--27971-- Reading debug info from /usr/lib/libldap_r-2.4.so.2.5.4 ..
--27971-- .. CRC mismatch (computed a8648fe6 wanted 6e42ab15)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /lib/libpthread-2.11.1.so (0x6a96000)
--27971-- Reading debug info from /lib/libpthread-2.11.1.so ..
--27971-- .. CRC mismatch (computed 74530e89 wanted 9c52fb5e)
--27971-- Reading debug info from /usr/lib/debug/lib/libpthread-2.11.1.so ..
--27971-- Reading syms from /lib/libdl-2.11.1.so (0x6cb3000)
--27971-- Reading debug info from /lib/libdl-2.11.1.so ..
--27971-- .. CRC mismatch (computed b9cf0b07 wanted a7cc336e)
--27971-- Reading debug info from /usr/lib/debug/lib/libdl-2.11.1.so ..
--27971-- Reading syms from /usr/local/lib/libz.so.1.2.5 (0x6eb7000)
--27971-- Reading syms from /lib/libm-2.11.1.so (0x70d0000)
--27971-- Reading debug info from /lib/libm-2.11.1.so ..
--27971-- .. CRC mismatch (computed 043548c3 wanted a081b93d)
--27971-- Reading debug info from /usr/lib/debug/lib/libm-2.11.1.so ..
--27971-- Reading syms from /lib/libnsl-2.11.1.so (0x7353000)
--27971-- Reading debug info from /lib/libnsl-2.11.1.so ..
--27971-- .. CRC mismatch (computed d10f9a00 wanted b4c620a0)
--27971-- Reading debug info from /usr/lib/debug/lib/libnsl-2.11.1.so ..
--27971-- Reading syms from /usr/lib/libk5crypto.so.3.1 (0x756d000)
--27971-- Reading debug info from /usr/lib/libk5crypto.so.3.1 ..
--27971-- .. CRC mismatch (computed 452b2378 wanted e0d595fd)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /usr/lib/libkrb5support.so.0.1 (0x7793000)
--27971-- Reading debug info from /usr/lib/libkrb5support.so.0.1 ..
--27971-- .. CRC mismatch (computed 0b57428c wanted 3bce2c79)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /lib/libkeyutils-1.2.so (0x799b000)
--27971-- Reading debug info from /lib/libkeyutils-1.2.so ..
--27971-- .. CRC mismatch (computed ff493ac5 wanted 05fbda4c)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /lib/libresolv-2.11.1.so (0x7b9e000)
--27971-- Reading debug info from /lib/libresolv-2.11.1.so ..
--27971-- .. CRC mismatch (computed 13e7793f wanted 6a5d57e8)
--27971-- Reading debug info from /usr/lib/debug/lib/libresolv-2.11.1.so ..
--27971-- Reading syms from /usr/lib/liblber-2.4.so.2.5.4 (0x7db7000)
--27971-- Reading debug info from /usr/lib/liblber-2.4.so.2.5.4 ..
--27971-- .. CRC mismatch (computed e5baf5b5 wanted 15f4f0c2)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /usr/lib/libsasl2.so.2.0.23 (0x7fc5000)
--27971-- Reading debug info from /usr/lib/libsasl2.so.2.0.23 ..
--27971-- .. CRC mismatch (computed 9c64feab wanted 88dc6e60)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /usr/lib/libgnutls.so.26.14.12 (0x81df000)
--27971-- Reading debug info from /usr/lib/libgnutls.so.26.14.12 ..
--27971-- .. CRC mismatch (computed 94d0e8e6 wanted 8e70c025)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /usr/lib/libtasn1.so.3.1.7 (0x8481000)
--27971-- Reading debug info from /usr/lib/libtasn1.so.3.1.7 ..
--27971-- .. CRC mismatch (computed f7df0b64 wanted eed7894e)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /lib/libgcrypt.so.11.5.2 (0x8692000)
--27971-- Reading debug info from /lib/libgcrypt.so.11.5.2 ..
--27971-- .. CRC mismatch (computed e55e7176 wanted 08f10ff7)
--27971--    object doesn't have a symbol table
--27971-- Reading syms from /lib/libgpg-error.so.0.4.0 (0x890a000)
--27971-- Reading debug info from /lib/libgpg-error.so.0.4.0 ..
--27971-- .. CRC mismatch (computed 47d1b7e3 wanted c4626e2e)
--27971--    object doesn't have a symbol table
--27971-- REDIR: 0x5633210 (strncmp) redirected to 0x4a225dc 
(_vgnU_ifunc_wrapper)
--27971-- REDIR: 0x5633010 (strlen) redirected to 0x4a225dc 
(_vgnU_ifunc_wrapper)
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x05633040 (__GI_strlen         ) R-> 0x04c286b0 strlen
--27971-- REDIR: 0x5634ad0 (rindex) redirected to 0x4a225dc 
(_vgnU_ifunc_wrapper)
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x05634b00 (__GI_strrchr        ) R-> 0x04c28110 rindex
--27971-- REDIR: 0x5631520 (index) redirected to 0x4a225dc 
(_vgnU_ifunc_wrapper)
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x05631550 (__GI_strchr         ) R-> 0x04c281e0 index
--27971-- REDIR: 0x56315d0 (strcmp) redirected to 0x4a225dc 
(_vgnU_ifunc_wrapper)
--27971-- REDIR: 0x5632a60 (strcpy) redirected to 0x4a225dc 
(_vgnU_ifunc_wrapper)
--27971-- REDIR: 0x5634aa0 (strncpy) redirected to 0x4a225dc 
(_vgnU_ifunc_wrapper)
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x05633040 (__GI_strlen         ) R-> 0x04c286b0 strlen
--27971-- REDIR: 0x56381f0 (rawmemchr) redirected to 0x4a225dc 
(_vgnU_ifunc_wrapper)
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x05638220 (__GI___rawmemchr    ) R-> 0x04c29a40 rawmemchr
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x05633040 (__GI_strlen         ) R-> 0x04c286b0 strlen
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x05634b00 (__GI_strrchr        ) R-> 0x04c28110 rindex
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x05631550 (__GI_strchr         ) R-> 0x04c281e0 index
--27971-- REDIR: 0x5635290 (bcmp) redirected to 0x4a225dc 
(_vgnU_ifunc_wrapper)
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x05633040 (__GI_strlen         ) R-> 0x04c286b0 strlen
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x05631550 (__GI_strchr         ) R-> 0x04c281e0 index
--27971-- REDIR: 0x5634b00 (__GI_strrchr) redirected to 0x4c28140 
(__GI_strrchr)
--27971-- REDIR: 0x5633040 (__GI_strlen) redirected to 0x4c286d0 (__GI_strlen)
--27971-- REDIR: 0x562c520 (malloc) redirected to 0x4c27426 (malloc)
--27971-- REDIR: 0x5636c90 (memcpy) redirected to 0x4c28dc0 (memcpy)
--27971-- REDIR: 0x5631610 (__GI_strcmp) redirected to 0x4c28ca0 (__GI_strcmp)
==27971== WARNING: new redirection conflicts with existing -- ignoring it
--27971--     new: 0x05633040 (__GI_strlen         ) R-> 0x04c286b0 strlen
--27971-- REDIR: 0x56da040 (???) redirected to 0x4c28730 (strcpy)
--27971-- REDIR: 0x56de840 (__strncmp_ssse3) redirected to 0x4c28b70 (strncmp)
==27971== Invalid read of size 1
==27971==    at 0x4C28B8C: strncmp (mc_replace_strmem.c:398)
==27971==    by 0x50B5CC9: __xmlParserInputBufferCreateFilename (in 
/usr/lib/libxml2.so.2.7.6)
==27971==    by 0x513B074: xmlNewTextReaderFilename (in /usr/lib/libxml2.so.
2.7.6)
==27971==    by 0x513B13D: xmlReaderForFile (in /usr/lib/libxml2.so.2.7.6)
==27971==    by 0x40C933: ows_parse_config (ows_config.c:597)
==27971==    by 0x40BEBF: main (ows.c:349)
==27971==  Address 0x300001c4f is not stack'd, malloc'd or (recently) free'd
==27971==
==27971==
==27971== Process terminating with default action of signal 11 (SIGSEGV)
==27971==  Access not within mapped region at address 0x300001C4F
==27971==    at 0x4C28B8C: strncmp (mc_replace_strmem.c:398)
==27971==    by 0x50B5CC9: __xmlParserInputBufferCreateFilename (in 
/usr/lib/libxml2.so.2.7.6)
==27971==    by 0x513B074: xmlNewTextReaderFilename (in /usr/lib/libxml2.so.
2.7.6)
==27971==    by 0x513B13D: xmlReaderForFile (in /usr/lib/libxml2.so.2.7.6)
==27971==    by 0x40C933: ows_parse_config (ows_config.c:597)
==27971==    by 0x40BEBF: main (ows.c:349)
==27971==  If you believe this happened as a result of a stack
==27971==  overflow in your program's main thread (unlikely but
==27971==  possible), you can try to increase the size of the
==27971==  main thread stack using the --main-stacksize= flag.
==27971==  The main thread stack size used in this run was 8388608.
==27971==
==27971== HEAP SUMMARY:
==27971==     in use at exit: 43,111 bytes in 41 blocks
==27971==   total heap usage: 41 allocs, 0 frees, 43,111 bytes allocated
==27971==
==27971== Searching for pointers to 41 not-freed blocks
==27971== Checked 599,696 bytes
==27971==
==27971== LEAK SUMMARY:
==27971==    definitely lost: 0 bytes in 0 blocks
==27971==    indirectly lost: 0 bytes in 0 blocks
==27971==      possibly lost: 0 bytes in 0 blocks
==27971==    still reachable: 43,111 bytes in 41 blocks
==27971==         suppressed: 0 bytes in 0 blocks
==27971== Rerun with --leak-check=full to see details of leaked memory
==27971==
==27971== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 12 from 6)
==27971==
==27971== 1 errors in context 1 of 1:
==27971== Invalid read of size 1
==27971==    at 0x4C28B8C: strncmp (mc_replace_strmem.c:398)
==27971==    by 0x50B5CC9: __xmlParserInputBufferCreateFilename (in 
/usr/lib/libxml2.so.2.7.6)
==27971==    by 0x513B074: xmlNewTextReaderFilename (in /usr/lib/libxml2.so.
2.7.6)
==27971==    by 0x513B13D: xmlReaderForFile (in /usr/lib/libxml2.so.2.7.6)
==27971==    by 0x40C933: ows_parse_config (ows_config.c:597)
==27971==    by 0x40BEBF: main (ows.c:349)
==27971==  Address 0x300001c4f is not stack'd, malloc'd or (recently) free'd
==27971==
--27971--
--27971-- used_suppression:     10 dl-hack3-cond-1
--27971-- used_suppression:      2 glibc-2.5.x-on-SUSE-10.2-(PPC)-2a
==27971==
==27971== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 12 from 6)
Segmentation fault

---- end 
valgrind---------------------------------------------------------------------------------------------------------------------


>Is it possible to have a login access to this server to reproduce  
>these error ?
>

Sorry is not possible. The server is in local area (intranet)

Thank you

>--
>Olivier Courtin
>Oslandia
>Directeur associé
>+33 977 217 501
>
>
>
>
>
>_______________________________________________
>TinyOWS-dev mailing list
>TinyOWS-dev at lists.maptools.org
>http://lists.maptools.org/mailman/listinfo/tinyows-dev
>




More information about the TinyOWS-dev mailing list