PHP's bundled regex/*.o

Thomas S thomas at MICRODOP.ORG
Thu Dec 16 10:38:59 EST 2004


Thanks for your help,

I search a lite more on my problem now :

./configure --with-php=/usr/local/include/php/
--with-php-regex-dir=/root/php4/php4-4.3.9/regex/ --with-gdal
--with-ogr
WORK

./configure -with-gdal  --with-ogr --with-proj
WORK

./configure --with-php=/usr/local/include/php/
--with-php-regex-dir=/root/php4/php4-4.3.9/regex/ --with-gdal
--with-ogr --with-proj
SEGFAULT

Valgrid dump :

==20502== Memcheck, a memory error detector for x86-linux. ==20502==
Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==20502== Using valgrind-2.2.0, a program supervision framework for
x86-linux.
==20502== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et
al.
==20502== Valgrind library directory: /usr/lib/valgrind
==20502== Command line
==20502==    shp2img
==20502==    -m
==20502==    test.map
==20502== Startup, with flags:
==20502==    --tool=memcheck
==20502==    -v
==20502==    --
==20502== Contents of /proc/version:
==20502==   Linux version 2.6.8.1 (root at thomas) (version gcc 3.3.4
(Debian 1:3.3 .4-6sarge1)) #1 Wed Sep 22 08:15:24 CEST 2004
==20502== Reading syms from /root/mapserver-4.4/mapserver-4.4.0/shp2img
(0x80480 00)
==20502== Reading syms from /lib/ld-2.3.2.so (0x1B8E4000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/valgrind/stage2 (0xB0000000)
==20502== Reading syms from /lib/ld-2.3.2.so (0xB1000000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /lib/tls/libdl-2.3.2.so (0xB101D000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /lib/tls/libc-2.3.2.so (0xB1020000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/valgrind/vgskin_memcheck.so
(0xB125C000)
==20502== Reading suppressions file: /usr/lib/valgrind/default.supp
==20502== REDIRECT soname:libc.so.6(__GI___errno_location) to
soname:libpthread. so.0(__errno_location)
==20502== REDIRECT soname:libc.so.6(__errno_location) to
soname:libpthread.so.0( __errno_location)
==20502== REDIRECT soname:libc.so.6(__GI___h_errno_location) to
soname:libpthrea d.so.0(__h_errno_location)
==20502== REDIRECT soname:libc.so.6(__h_errno_location) to
soname:libpthread.so. 0(__h_errno_location)
==20502== REDIRECT soname:libc.so.6(__GI___res_state) to
soname:libpthread.so.0( __res_state)
==20502== REDIRECT soname:libc.so.6(__res_state) to
soname:libpthread.so.0(__res _state)
==20502== REDIRECT soname:libc.so.6(stpcpy) to
*vgpreload_memcheck.so*(stpcpy)
==20502== REDIRECT soname:libc.so.6(strnlen) to
*vgpreload_memcheck.so*(strnlen)
==20502== REDIRECT soname:ld-linux.so.2(stpcpy) to
*vgpreload_memcheck.so*(stpcp y)
==20502== REDIRECT soname:ld-linux.so.2(strchr) to
*vgpreload_memcheck.so*(strch r)
==20502==
==20502== Reading syms from /usr/lib/valgrind/vg_inject.so (0x1B8FE000)
==20502== Reading syms from /usr/lib/valgrind/vgpreload_memcheck.so
(0x1B901000)
==20502== Reading syms from /usr/lib/libgd.so.2.0.33 (0x1B911000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libjpeg.so.62.0.0 (0x1B962000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libfreetype.so.6.3.5 (0x1B981000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libpng12.so.0.1.2.8 (0x1B9EF000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libz.so.1.2.2 (0x1BA15000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libproj.so.0.5.0 (0x1BA28000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libgdal.so.1.3.0 (0x1BA60000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /lib/tls/libc-2.3.2.so (0x1BDCB000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /lib/tls/libm-2.3.2.so (0x1BF07000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libstdc++.so.5.0.7 (0x1BF2B000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /lib/libgcc_s.so.1 (0x1BFE6000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/valgrind/libpthread.so (0x1BFF0000)
==20502== Reading syms from /usr/X11R6/lib/libXpm.so.4.11 (0x1C022000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/X11R6/lib/libX11.so.6.2 (0x1C032000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libfontconfig.so.1.0.4 (0x1C0FA000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libodbc.so.1.0.0 (0x1C122000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libxerces-c.so.21.0 (0x1C19B000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libjasper-1.701.so.1.0.0
(0x1C417000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libmfhdf.so.4.1r4 (0x1C467000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libdf.so.4.1r4 (0x1C48A000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libungif.so.4.1.3 (0x1C52A000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libtiff.so.4.0.0 (0x1C533000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libnetcdf.so.3.5.0 (0x1C582000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libcfitsio.so.2.500 (0x1C5A6000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /lib/tls/libdl-2.3.2.so (0x1C716000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libpq.so.3.1 (0x1C71A000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libexpat.so.1.0.0 (0x1C73A000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libltdl.so.3.1.0 (0x1C75B000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/i686/cmov/libssl.so.0.9.7
(0x1C763000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/i686/cmov/libcrypto.so.0.9.7
(0x1C797000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libkrb5.so.3.2 (0x1C897000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /lib/tls/libcrypt-2.3.2.so (0x1C900000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /lib/tls/libresolv-2.3.2.so (0x1C92D000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /lib/tls/libnsl-2.3.2.so (0x1C940000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /usr/lib/libk5crypto.so.3.0 (0x1C956000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== Reading syms from /lib/libcom_err.so.2.1 (0x1C97B000)
==20502==    object doesn't have a symbol table
==20502==    object doesn't have any debug info
==20502== TRANSLATE: 0x1BE45AF0 redirected to 0x1B904740
==20502== TRANSLATE: 0x1BFBD2C0 redirected to 0x1B904FDE
==20502== TRANSLATE: 0x1BFBBCF0 redirected to 0x1B905590
==20502== TRANSLATE: 0x1BE3F080 redirected to 0x1B904E4C
==20502== TRANSLATE: 0x1BE3F2D0 redirected to 0x1B90592D
==20502== TRANSLATE: 0x1BE3F7B0 redirected to 0x1B90586A
==20502== TRANSLATE: 0x1BE3F210 redirected to 0x1B9053DA
==20502== Invalid write of size 4
==20502==    at 0x80595D5: loadMapInternal (in
/root/mapserver-4.4/mapserver-4.4 .0/shp2img)
==20502==    by 0x804D4AA: main (in
/root/mapserver-4.4/mapserver-4.4.0/shp2img)
==20502==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20502==
==20502== Process terminating with default action of signal 11 (SIGSEGV)
==20502==  Access not within mapped region at address 0x0
==20502==    at 0x80595D5: loadMapInternal (in
/root/mapserver-4.4/mapserver-4.4 .0/shp2img)
==20502==    by 0x804D4AA: main (in
/root/mapserver-4.4/mapserver-4.4.0/shp2img)
==20502==
==20502== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 81 from
1)
==20502==
==20502== 1 errors in context 1 of 1:
==20502== Invalid write of size 4
==20502==    at 0x80595D5: loadMapInternal (in
/root/mapserver-4.4/mapserver-4.4 .0/shp2img)
==20502==    by 0x804D4AA: main (in
/root/mapserver-4.4/mapserver-4.4.0/shp2img)
==20502==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
--20502--
--20502-- supp:   81 Ugly strchr error in /lib/ld-2.3.2.so
==20502==
==20502== IN SUMMARY: 1 errors from 1 contexts (suppressed: 81 from 1)
==20502==
==20502== malloc/free: in use at exit: 24 bytes in 1 blocks.
==20502== malloc/free: 80 allocs, 79 frees, 6260 bytes allocated.
==20502==
--20502--     TT/TC: 0 tc sectors discarded.
--20502--            3865 tt_fast misses.
--20502-- translate: new     3850 (64726 -> 839886; ratio 129:10)
--20502--            discard 0 (0 -> 0; ratio 0:10).
--20502-- chainings: 2111 chainings, 0 unchainings.
--20502--  dispatch: 3950758 jumps (bb entries); of them 239926 (6%)
unchained.
--20502--            240/4547 major/minor sched events.
--20502-- reg-alloc: 746 t-req-spill, 155380+5370 orig+spill uis,
--20502--            19979 total-reg-rank
--20502--    sanity: 241 cheap, 10 expensive checks.
--20502--    ccalls: 15329 C calls, 56% saves+restores avoided (50944
bytes)
--20502--            20661 args, avg 0.87 setup instrs each (5100 bytes)
--20502--            0% clear the stack (45894 bytes)
--20502--            6096 retvals, 31% of reg-reg movs avoided (3774
bytes)

My system is a debian sarge build in a chroot with debootstrap.
Do you need any other information ?

--
Thomas Sondag <thomas.sondag at educagri.fr>
ENESAD-CNERTA 4 rue champs-prévois, batiment grand-champs, 21000 Dijon
Tel : 03 80 77 27 13
Web : http://www.igcs-stb.org  http://agrogeomatic.educagri.org/debian



More information about the mapserver-dev mailing list