[mapserver-dev] Problem with beta2 and SDE access on WMS benchmarking server

Smith, Michael ERDC-USACE-NH michael.smith at usace.army.mil
Sun Oct 4 21:24:50 EDT 2009


Here¹s the call and call stack

----------


[root at goliath mapserver-5.6.0-beta2]# ./shp2img -o test.png -m
/opt/benchmarking/mapserver/sde-test.map -l areawater-merged-sde
*** glibc detected *** ./shp2img: double free or corruption (!prev):
0x02da01a0 ***
======= Backtrace: =========
/lib/libc.so.6[0x2cc80f1]
/lib/libc.so.6(cfree+0x90)[0x2ccbbc0]
./shp2img[0x8056b7e]
./shp2img(msSDELayerFreeItemInfo+0xf5)[0x815a0e5]
./shp2img[0x808556f]
./shp2img[0x8085893]
./shp2img[0x80936b9]
./shp2img[0x8093015]
./shp2img[0x8092011]
./shp2img[0x8053ab4]
/lib/libc.so.6(__libc_start_main+0xdc)[0x2c74e8c]
./shp2img[0x8052b01]
======= Memory map: ========
00110000-0018d000 r-xp 00000000 fd:00 62956036
/usr/lib/libfreetype.so.6.3.10
0018d000-00190000 rwxp 0007d000 fd:00 62956036
/usr/lib/libfreetype.so.6.3.10
00190000-001a5000 r-xp 00000000 fd:00 62974138
/usr/local/lib/libgeos_c.so.1.6.0
001a5000-001a6000 rwxp 00014000 fd:00 62974138
/usr/local/lib/libgeos_c.so.1.6.0
001a6000-001a8000 r-xp 00000000 fd:00 52002902   /lib/libcom_err.so.2.1
001a8000-001a9000 rwxp 00001000 fd:00 52002902   /lib/libcom_err.so.2.1
001a9000-001ab000 r-xp 00000000 fd:00 62953874   /usr/lib/libXau.so.6.0.0
001ab000-001ac000 rwxp 00001000 fd:00 62953874   /usr/lib/libXau.so.6.0.0
001ac000-001c6000 r-xp 00000000 fd:00 52002819   /lib/ld-2.5.so
001c6000-001c7000 r-xp 00019000 fd:00 52002819   /lib/ld-2.5.so
001c7000-001c8000 rwxp 0001a000 fd:00 52002819   /lib/ld-2.5.so
001c8000-0021b000 r-xp 00000000 fd:00 62974180   /usr/local/lib/libsg.so
0021b000-0021c000 rwxp 00053000 fd:00 62974180   /usr/local/lib/libsg.so
0021c000-00279000 r-xp 00000000 fd:00 62956447
/usr/lib/libsqlite3.so.0.8.6
00279000-0027b000 rwxp 0005c000 fd:00 62956447
/usr/lib/libsqlite3.so.0.8.6
0027b000-0029a000 r-xp 00000000 fd:00 52003008   /lib/libexpat.so.0.5.0
0029a000-0029c000 rwxp 0001e000 fd:00 52003008   /lib/libexpat.so.0.5.0
0029c000-002b1000 r-xp 00000000 fd:00 62974148
/usr/local/lib/libNCSCnet.so.0.0.0
002b1000-002b2000 rwxp 00014000 fd:00 62974148
/usr/local/lib/libNCSCnet.so.0.0.0
002b2000-002cf000 r-xp 00000000 fd:00 62974110
/usr/local/lib/libNCSUtil.so.0.0.0
002cf000-002d1000 rwxp 0001c000 fd:00 62974110
/usr/local/lib/libNCSUtil.so.0.0.0
002d1000-002d2000 rwxp 002d1000 00:00 0
002d2000-002da000 r-xp 00000000 fd:00 62965398   /usr/lib/libgif.so.4.1.3
002da000-002db000 rwxp 00007000 fd:00 62965398   /usr/lib/libgif.so.4.1.3
002db000-002e2000 r-xp 00000000 fd:00 52002848   /lib/librt-2.5.so
002e2000-002e3000 r-xp 00006000 fd:00 52002848   /lib/librt-2.5.so
002e3000-002e4000 rwxp 00007000 fd:00 52002848   /lib/librt-2.5.so
002e4000-0031f000 r-xp 00000000 fd:00 62956056   /usr/lib/libcurl.so.3.0.0
0031f000-00320000 rwxp 0003b000 fd:00 62956056   /usr/lib/libcurl.so.3.0.0
00320000-00323000 r-xp 00000000 fd:00 52003041   /lib/libtermcap.so.2.0.8
00323000-00324000 rwxp 00002000 fd:00 52003041   /lib/libtermcap.so.2.0.8
00324000-0032c000 r-xp 00000000 fd:00 62974166
/usr/local/lib/libfcgi.so.0.0.0
0032c000-0032d000 rwxp 00007000 fd:00 62974166
/usr/local/lib/libfcgi.so.0.0.0
0032d000-00338000 r-xp 00000000 fd:00 52002882
/lib/libgcc_s-4.1.2-20080825.so.1
00338000-00339000 rwxp 0000a000 fd:00 52002882
/lib/libgcc_s-4.1.2-20080825.so.1
00339000-0033b000 r-xp 00000000 fd:00 52002864   /lib/libdl-2.5.so
0033b000-0033c000 r-xp 00001000 fd:00 52002864   /lib/libdl-2.5.so
0033c000-0033d000 rwxp 00002000 fd:00 52002864   /lib/libdl-2.5.so
0033d000-0033e000 r-xp 00000000 fd:00 62955850   /usr/lib/libaio.so.1.0.1
0033e000-0033f000 rwxp 00000000 fd:00 62955850   /usr/lib/libaio.so.1.0.1
0033f000-00352000 r-xp 00000000 fd:00 52002846   /lib/libpthread-2.5.so
00352000-00353000 r-xp 00012000 fd:00 52002846   /lib/libpthread-2.5.so
00353000-00354000 rwxp 00013000 fd:00 52002846   /lib/libpthread-2.5.so
00354000-00356000 rwxp 00354000 00:00 0
00358000-0036a000 r-xp 00000000 fd:00 62955004   /usr/lib/libz.so.1.2.3
0036a000-0036b000 rwxp 00011000 fd:00 62955004   /usr/lib/libz.so.1.2.3
0036d000-0037d000 r-xp 00000000 fd:00 62960965   /usr/lib/libXpm.so.4.11.0
0037d000-0037e000 rwxp 00010000 fd:00 62960965   /usr/lib/libXpm.so.4.11.0
00380000-0039f000 r-xp 00000000 fd:00 62956016   /usr/lib/libgd.so.2.0.0
0039f000-003bf000 rwxp 0001e000 fd:00 62956016   /usr/lib/libgd.so.2.0.0
003bf000-003d3000 rwxp 003bf000 00:00 0
003d3000-00400000 r-xp 00000000 fd:00 62955002
/usr/lib/libgssapi_krb5.so.2.2
00400000-00401000 rwxp 0002d000 fd:00 62955002
/usr/lib/libgssapi_krb5.so.2.2
00401000-00414000 r-xp 00000000 fd:00 52002856   /lib/libnsl-2.5.so
00414000-00415000 r-xp 00012000 fd:00 52002856   /lib/libnsl-2.5.so
00415000-00416000 rwxp 00013000 fd:00 52002856   /lib/libnsl-2.5.so
00416000-00418000 rwxp 00416000 00:00 0
00419000-00430000 r-xp 00000000 fd:00 64127820
/usr/local/pgsql/lib/libpq.so.5.1
00430000-00431000 rwxp 00016000 fd:00 64127820
/usr/local/pgsql/lib/libpq.so.5.1
00431000-00456000 r-xp 00000000 fd:00 62954987   /usr/lib/libk5crypto.so.3.1
00456000-00457000 rwxp 00025000 fd:00 62954987   /usr/lib/libk5crypto.so.3.1
00457000-0047c000 r-xp 00000000 fd:00 52002866   /lib/libm-2.5.so
0047c000-0047d000 r-xp 00024000 fd:00 52002866   /lib/libm-2.5.so
0047d000-0047e000 rwxp 00025000 fd:00 52002866   /lib/libm-2.5.so
0047f000-00484000 r-xp 00000000 fd:00 62953876   /usr/lib/libXdmcp.so.6.0.0
00484000-00485000 rwxp 00004000 fd:00 62953876   /usr/lib/libXdmcp.so.6.0.0
00487000-00586000 r-xp 00000000 fd:00 62953877   /usr/lib/libX11.so.6.2.0
00586000-0058a000 rwxp 000ff000 fd:00 62953877   /usr/lib/libX11.so.6.2.0
0058a000-0061d000 r-xp 00000000 fd:00 62954992   /usr/lib/libkrb5.so.3.3
0061d000-00620000 rwxp 00092000 fd:00 62954992   /usr/lib/libkrb5.so.3.3
00620000-00628000 r-xp 00000000 fd:00 62954979
/usr/lib/libkrb5support.so.0.1
00628000-00629000 rwxp 00007000 fd:00 62954979
/usr/lib/libkrb5support.so.0.1
00629000-0062b000 r-xp 00000000 fd:00 52002894   /lib/libkeyutils-1.2.so
0062b000-0062c000 rwxp 00001000 fd:00 52002894   /lib/libkeyutils-1.2.so
0062c000-00642000 r-xp 00000000 fd:00 52002901   /lib/libselinux.so.1
00642000-00644000 rwxp 00015000 fd:00 52002901   /lib/libselinux.so.1
0064c000-0064d000 r-xp 0064c000 00:00 0          [vdso]
0064d000-00992000 r-xp 00000000 fd:00 62974171   /usr/local/lib/libsde.so
00992000-009a0000 rwxp 00344000 fd:00 62974171   /usr/local/lib/libsde.so
009a0000-009a5000 rwxp 009a0000 00:00 0
009b1000-009d6000 r-xp 00000000 fd:00 62957288   /usr/lib/libpng12.so.0.10.0
009d6000-009d7000 rwxp 00024000 fd:00 62957288   /usr/lib/libpng12.so.0.10.0
009d9000-009e8000 r-xp 00000000 fd:00 52002897   /lib/libresolv-2.5.so
009e8000-009e9000 r-xp 0000e000 fd:00 52002897   /lib/libresolv-2.5.so
009e9000-009ea000 rwxp 0000f000 fd:00 52002897   /lib/libresolv-2.5.so
009ea000-009ec000 rwxp 009ea000 00:00 0
009ee000-00a0f000 r-xp 00000000 fd:00 62954790   /usr/lib/libjpeg.so.62.0.0
00a0f000-00a10000 rwxp 00020000 fd:00 62954790   /usr/lib/libjpeg.so.62.0.0
00a10000-00b96000 r-xp 00000000 fd:00 5406772
/opt/build/instantclient_11_1/libnnz11.so
00b96000-00bbb000 rwxp 00185000 fd:00 5406772
/opt/build/instantclient_11_1/libnnz11.so
00bbb000-00bbc000 rwxp 00bbb000 00:00 0
00bdc000-00d7a000 r-xp 00000000 fd:00 62958679   /usr/local/lib/libpe.so
00d7a000-00d8f000 rwxp 0019d000 fd:00 62958679   /usr/local/lib/libpe.so
00d8f000-00e9f000 r-xp 00000000 fd:00 62974147
/usr/local/lib/libNCSEcw.so.0.0.0
00e9f000-00ea7000 rwxp 00110000 fd:00 62974147
/usr/local/lib/libNCSEcw.so.0.0.0
00ea7000-00eb4000 rwxp 00ea7000 00:00 0
00eb4000-00ee4000 r-xp 00000000 fd:00 62959347   /usr/lib/libidn.so.11.5.19
00ee4000-00ee5000 rwxp 0002f000 fd:00 62959347   /usr/lib/libidn.so.11.5.19
00f01000-00f32000 r-xp 00000000 fd:00 62974132
/usr/local/lib/libproj.so.0.5.5
00f32000-00f34000 rwxp 00030000 fd:00 62974132
/usr/local/lib/libproj.so.0.5.5
00f34000-01551000 r-xp 00000000 fd:00 62974182
/usr/local/lib/libgdal.so.1.13.1
01551000-015d4000 rwxp 0061c000 fd:00 62974182
/usr/local/lib/libgdal.so.1.13.1
015d4000-015d5000 rwxp 015d4000 00:00 0
015d5000-01716000 r-xp 00000000 fd:00 62974159
/usr/local/lib/libgeos-3.1.1.so
01716000-0171b000 rwxp 00141000 fd:00 62974159
/usr/local/lib/libgeos-3.1.1.so
0171b000-0171c000 rwxp 0171b000 00:00 0
0171c000-01757000 r-xp 00000000 fd:00 52002899   /lib/libsepol.so.1
01757000-01758000 rwxp 0003a000 fd:00 52002899   /lib/libsepol.so.1
01758000-01762000 rwxp 01758000 00:00 0
01ad2000-01bfb000 r-xp 00000000 fd:00 52002905   /lib/libcrypto.so.0.9.8e
01bfb000-01c0e000 rwxp 00129000 fd:00 52002905   /lib/libcrypto.so.0.9.8e
01c0e000-01c12000 rwxp 01c0e000 00:00 0
02c5f000-02d9d000 r-xp 00000000 fd:00 52002833   /lib/libc-2.5.so
02d9d000-02d9f000 r-xp 0013e000 fd:00 52002833   /lib/libc-2.5.so
02d9f000-02da0000 rwxp 00140000 fd:00 52002833   /lib/libc-2.5.so
02da0000-02da3000 rwxp 02da0000 00:00 0
03605000-03648000 r-xp 00000000 fd:00 52002907   /lib/libssl.so.0.9.8e
03648000-0364c000 rwxp 00042000 fd:00 52002907   /lib/libssl.so.0.9.8e
04243000-04323000 r-xp 00000000 fd:00 62954746   /usr/lib/libstdc++.so.6.0.8
04323000-04327000 r-xp 000df000 fd:00 62954746   /usr/lib/libstdc++.so.6.0.8
04327000-04328000 rwxp 000e3000 fd:00 62954746   /usr/lib/libstdc++.so.6.0.8
04328000-0432e000 rwxp 04328000 00:00 0
0451e000-04527000 r-xp 00000000 fd:00 52002884   /lib/libcrypt-2.5.so
04527000-04528000 r-xp 00008000 fd:00 52002884   /lib/libcrypt-2.5.so
04528000-04529000 rwxp 00009000 fd:00 52002884   /lib/libcrypt-2.5.so
04529000-04550000 rwxp 04529000 00:00 0
04aef000-04b1e000 r-xp 00000000 fd:00 62960747   /usr/lib/libreadline.so.5.1
04b1e000-04b22000 rwxp 0002f000 fd:00 62960747   /usr/lib/libreadline.so.5.1
04b22000-04b23000 rwxp 04b22000 00:00 0
04ee9000-05015000 r-xp 00000000 fd:00 62957206   /usr/lib/libxml2.so.2.6.26
05015000-0501a000 rwxp 0012c000 fd:00 62957206   /usr/lib/libxml2.so.2.6.26
0501a000-0501b000 rwxp 0501a000 00:00 0
05a8c000-05ab3000 r-xp 00000000 fd:00 62956038
/usr/lib/libfontconfig.so.1.1.0
05ab3000-05abb000 rwxp 00027000 fd:00 62956038
/usr/lib/libfontconfig.so.1.1.0
05aef000-07574000 r-xp 00000000 fd:00 5406771
/opt/build/instantclient_11_1/libclntsh.so.11.1
07574000-07622000 rwxp 01a85000 fd:00 5406771
/opt/build/instantclient_11_1/libclntsh.so.11.1
07622000-0763b000 rwxp 07622000 00:00 0
08048000-081e1000 r-xp 00000000 fd:00 5473056
/opt/build/mapserver-5.6.0-beta2/shp2img
081e1000-081e7000 rw-p 00198000 fd:00 5473056
/opt/build/mapserver-5.6.0-beta2/shp2img
081e7000-081e8000 rw-p 081e7000 00:00 0
084e0000-08804000 rw-p 084e0000 00:00 0          [heap]
b7e00000-b7e21000 rw-p b7e00000 00:00 0
b7e21000-b7f00000 ---p b7e21000 00:00 0
b7f07000-b7f13000 rw-p b7f07000 00:00 0
b7f22000-b7f24000 rw-p b7f22000 00:00 0
bffb4000-bffc9000 rwxp bffea000 00:00 0          [stack]
Aborted



On 10/4/09 6:17 PM, "Tamas Szekeres" <szekerest at gmail.com> wrote:

> Jeff,
> 
> Could you compile mapserver and the SDE driver in debug mode? If you could
> provide a call stack for the error then it would probably help a lot to track
> this issue down.
> Another option would be to enable the LOG/DEBUG facilities of MapServer and
> include further msDebug-s in the code in order to localize the problem.
> 
> 
> Best regards,
> 
> Tamas
> 
> 
> 
> 2009/10/4 Jeff McKenna <jmckenna at gatewaygeomatics.com>
>> We're hitting an issue with MapServer 5.6.0beta2 in the FOSS4G benchmarking
>> exercise[1]:
>> 
>> - MapServer 5.4.2 with an SDE connection is ok:
>> http://64.222.187.168/cgi-bin/mapserv?MAP=/opt/benchmarking/mapserver/sde.map
>> &SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=areawater-merged-sde,roads-m
>> erged-sde,gnis-names-sde&STYLES=&SRS=EPSG:4269&BBOX=-96.980629943844,29.85411
>> 4257812,-96.79038641357,29.974268066406&WIDTH=950&HEIGHT=600&FORMAT=image/png
>> 
>> - MapServer 5.6.0beta2 with an SDE connection causes a segmentation fault:
>> http://64.222.187.168/cgi-bin/mapserv560beta2?MAP=/opt/benchmarking/mapserver
>> /sde.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=areawater-merged-sde
>> ,roads-merged-sde,gnis-names-sde&STYLES=&SRS=EPSG:4269&BBOX=-96.980629943844,
>> 29.854114257812,-96.79038641357,29.974268066406&WIDTH=950&HEIGHT=600&FORMAT=i
>> mage/png
>> 
>> - MapServer 5.6.0beta2 connecting to SDE through OGR is ok:
>> http://64.222.187.168/cgi-bin/mapserv560beta2?MAP=/opt/benchmarking/mapserver
>> /sde.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=areawater-merged-sde
>> -ogr,roads-merged-sde-ogr,gnis-names-sde-ogr&STYLES=&SRS=EPSG:4269&BBOX=-96.9
>> 80629943844,29.854114257812,-96.79038641357,29.974268066406&WIDTH=950&HEIGHT=
>> 600&FORMAT=image/png
>> 
>> We have full access to these benchmarking machines and datasets for this
>> competition.  Can someone assist us here?  We don't see any relevant changes
>> in SDE access in MapServer.  Thoughts?
>> 
>> [1] http://wiki.osgeo.org/wiki/Benchmarking_2009
>> 
>> -jeff
>> 
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20091004/96430f57/attachment-0001.html


More information about the mapserver-dev mailing list