[UMN_MAPSERVER-USERS] CGI Error - 4.4 Windows Binaries

Fortin,Nicolas [SteFoy] nicolas.fortin at EC.GC.CA
Fri Dec 3 11:12:44 PST 2004


Hi Howard,

Thanks for your answer

It would be fine if someone else try your mapserver binaries with oracle spatial to see if I'm trying to find a problem I can't solve.  I tried with shp2img and it crash in the same conditions, I never used msvc debugger but here's the log file create by drwtsn32 ... but don't understand what it means:

État de vidage Thread Id 0x5b0

eax=01f21bbc ebx=7ffdf000 ecx=01f21bbc edx=01f21bbc esi=0012bf90 edi=0012bf10
eip=6066dfbe esp=0012bc64 ebp=0012be9c iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000             efl=00000202


fonction : kpufhndl0
        6066dfa0 55               push    ebp
        6066dfa1 8bec             mov     ebp,esp
        6066dfa3 81ec2c020000     sub     esp,0x22c
        6066dfa9 8b4508           mov     eax,[ebp+0x8]          ss:00c15d82=25452544
        6066dfac 53               push    ebx
        6066dfad 56               push    esi
        6066dfae 57               push    edi
        6066dfaf 85c0             test    eax,eax
        6066dfb1 c745fc00000000   mov   dword ptr [ebp+0xfc],0x0 ss:00c15d82=25452544
        6066dfb8 0f848a190000     je      kpufhndl0+0x19a8 (6066f948)
FAUTE ->6066dfbe 8138cbdae9f8     cmp dword ptr [eax],0xf8e9dacb ds:01f21bbc=????????
        6066dfc4 0f857e190000     jne     kpufhndl0+0x19a8 (6066f948)
        6066dfca 8b750c           mov     esi,[ebp+0xc]          ss:00c15d82=25452544
        6066dfcd 33c9             xor     ecx,ecx
        6066dfcf 8a4805           mov     cl,[eax+0x5]                 ds:02a0baa2=??
        6066dfd2 3bce             cmp     ecx,esi
        6066dfd4 0f856e190000     jne     kpufhndl0+0x19a8 (6066f948)
        6066dfda 8b580c           mov     ebx,[eax+0xc]          ds:02a0baa2=????????
        6066dfdd 85db             test    ebx,ebx
        6066dfdf 895df4           mov     [ebp+0xf4],ebx         ss:00c15d82=25452544
        6066dfe2 0f8460190000     je      kpufhndl0+0x19a8 (6066f948)
        6066dfe8 813bcbdae9f8     cmp dword ptr [ebx],0xf8e9dacb ds:7ffdf000=00010000

*----> Parcours arrière de la pile <----*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
0012BE9C 6066DF92 01F21BBC 00000007 00000000 0012BEC0 oraclient9!kpufhndl0 
0012BEB0 6060121A 01F21BBC 00000007 0012BED0 00BC68BF oraclient9!kpufhndl 
0012BEC0 00BC68BF 01F21BBC 00000007 0012BEE0 100567A2 oraclient9!OCIHandleFree 
0012BED0 100567A2 01F21BBC 00000007 0012BEF0 100568C0 !OCIHandleFree 
0012BEE0 100568C0 01EDAD38 01EDAD38 0012BF04 10047016 !msOracleSpatialLayerOpen 
0012BEF0 10047016 01A9B780 00000007 0012BFAC 0012BFAC !msOracleSpatialLayerClose 
0012BF04 1005BCF7 01A9B780 00000000 001491C0 00000001 !msLayerClose 
0012BFAC 1005B57E 01A60048 01A9B780 01D54E90 01D54E90 !msDrawVectorLayer 
0012BFD0 1005A7DE 01A60048 01A9B780 01D54E90 00000000 !msDrawLayer 
0012FF04 0040182C 01A60048 FFFFFFFF 0012FF58 780014CF !msDrawMap 
0012FF4C 004019F3 0000000C 00DC4890 00DC2EA8 00403000 !<nosymbols> 
0012FFC0 77E9893D 00000000 001491C0 7FFDF000 C0000005 !<nosymbols> 
0012FFF0 00000000 00401910 00000000 003A0043 0057005C kernel32!ProcessIdToSessionId 

*----> Vidage brut de la pile <----*
0012bc64  10 bf 12 00 90 bf 12 00 - 00 f0 fd 7f 10 00 00 00  ................
0012bc74  18 02 dc 00 28 25 46 78 - b0 01 dc 00 b0 64 f2 01  ....(%Fx.....d..
0012bc84  01 56 46 78 54 56 46 78 - b0 01 dc 00 b8 4c d5 01  .VFxTVFx.....L..
0012bc94  00 00 dc 00 07 00 00 00 - 01 bc 12 00 38 4d d5 01  ............8M..
0012bca4  ec bc 12 00 e8 d7 d4 01 - 01 25 46 78 ff ff ff ff  .........%Fx....
0012bcb4  38 bc 12 00 03 00 00 00 - 04 bd 12 00 55 1f 46 78  8...........U.Fx
0012bcc4  28 25 46 78 ff ff ff ff - 14 bd 12 00 e0 32 f2 01  (%Fx.........2..
0012bcd4  48 2d f2 01 00 00 dc 00 - f8 bc 12 00 d9 c8 4a 78  H-............Jx
0012bce4  8d 00 00 00 e0 32 f2 01 - 00 00 dc 00 48 2d f2 01  .....2......H-..
0012bcf4  50 2d f2 01 00 00 dc 00 - 00 00 dc 00 78 01 dc 00  P-..........x...
0012bd04  6b c8 4a 78 08 06 dc 00 - c2 c7 4a 78 9c 2d f2 01  k.Jx......Jx.-..
0012bd14  50 2d f2 01 00 00 00 00 - e6 9c 11 61 60 4d d5 01  P-.........a`M..
0012bd24  08 86 42 61 58 bd 12 00 - 87 8d 41 61 f0 d7 d4 01  ..BaX.....Aa....
0012bd34  e2 99 11 61 6c 86 42 61 - 00 00 00 00 58 cf f2 01  ...al.Ba....X...
0012bd44  b8 fb f0 01 58 cf f2 01 - 78 01 dc 00 50 cf f2 01  ....X...x...P...
0012bd54  c4 85 42 61 bc bd 12 00 - 12 90 41 61 b4 bd 12 00  ..Ba......Aa....
0012bd64  f0 d7 d4 01 c4 85 42 61 - 00 00 dc 00 40 01 00 00  ......Ba.... at ...
0012bd74  01 2d f2 01 00 00 00 00 - ff ff ff ff 48 2d f2 01  .-..........H-..
0012bd84  01 92 13 61 d8 82 42 61 - 10 bd 12 00 68 86 42 61  ...a..Ba....h.Ba
0012bd94  dc bd 12 00 55 1f 46 78 - cc bd 12 00 c8 dd f2 01  ....U.Fx........


Part of my problem is that I'm quite dependant of peoples like you that are fine enough to compile it for other.  Too bad I don't know how to compile it by myself...

Nicolas


-----Message d'origine-----
De : Howard Butler [mailto:hobu at iastate.edu] 
Envoyé : Friday, December 03, 2004 12:34 PM
À : Fortin,Nicolas [SteFoy]; MAPSERVER-USERS at LISTS.UMN.EDU
Objet : RE : [UMN_MAPSERVER-USERS] CGI Error - 4.4 Windows Binaries


Nicolas,

A couple of thoughts.  It could be very likely that my binaries are borked 
with respect to Oracle Spatial.  My binaries are *not* compiled with 
FastCGI support, and Fernando might be able to comment more about its 
current relationship to Oracle Spatial support.  The cvs log shows a 
significant change to maporaclespatial.c right at 4.4 beta 1.  Things have 
very likely changed significantly since the 4.3 binaries you were using 
were made.

As for my binaries, I only really use the SDE support, which seems to be 
working fine.  My guess is that something is funky in my binaries, or 
you've run into some sort of bug.  Any chance you can use shp2img.exe to 
test your mapfile and attach the msvc debugger to the process?

Howard




At 10:15 AM 12/3/2004, Fortin,Nicolas [SteFoy] wrote:
>Hi Fernando,
>
>I made more tests this morning with some wierd results:
>
>First, sometimes it works sometimes not, depending of either the zoom = 
>level or the layers activated.
>
>If I ask for one oracle spatial layer, I got the error each time and = 
>instantly. If I ask for an other type of layer than oracle spatial, all 
>work fine. If I ask for mixed type of layers with oracle spatial 
>included, it = become complicated...it seems that the order of the 
>layers in the = mapfile have an effect; if the first layer found (and 
>asked) in the = mapfile is oracle spatial, it get an error.  If it's a 
>raster or = something else, it works most of the time.
>
>I ran FileMon to see if this is a permission or file not found issue 
>and = it's not.
>
>I checked IIS log file and when I get an error, the http status code is 
>=
>502:
>2004-12-03 15:43:00 131.235.233.138 131.235.233.138 80 GET =
>/cgi-bin/mapserv.exe 502 0 391 -
>When this happens, the sc-bytes number is always 391
>I searched for the meaning of http 502 and found this from the w3c.org =
>website:
>Service temporarily overloaded 502 (TO BE DISCUSSED)=20
>The server cannot process the request due to a high load (whether HTTP =
>servicing or other requests). The implication is that this is a =
>temporary condition which maybe alleviated at other times.=20
>OR
>502 Bad Gateway
>The server, while acting as a gateway or proxy, received an invalid =
>response from the upstream server it accessed in attempting to fulfill =
>the request.=20
>
>First I thought that the reason is because my dev workstation is inside 
>= our firewall and Oracle Database is outside...but I tested with an = 
>Oracle database inside our firewall and the result is the same.
>
>When I shift to previous version (4.3 with oracle spatial downloaded = 
>from maptools.org) all work fine. Now I'm lost...
>
>I download my binaries from Howard site at : = 
>http://hobu.stat.iastate.edu/mapserver/
>Here's the mapserv -v result:
>MapServer version 4.4.0 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG = 
>OUTPUT=3DPDF OUTPUT=3DSWF SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE = 
>SUPPORTS=3DWMS_SERVER SUPPORTS=3DWMS_CLIENT SUPPORTS=3DWFS_SERVER = 
>SUPPORTS=3DWFS_CLIENT SUPPORTS=3DWCS_SERVER INPUT=3DPOSTGIS = 
>INPUT=3DORACLESPATIAL INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE
>
>How could you have such a complete log from mapserver ? When I got the 
>= error, I have no line add to my mapserver log... I'm on Windows 2000 
>SP4 with IIS 5.0
>
>Thank you very much for your help Fernando.  If someone other than = 
>Fernando has any idea of what I could do to find the solution, you're = 
>welcome!
>
>Nicolas
>
>



More information about the MapServer-users mailing list