Opened 8 days ago

Closed 6 days ago

#545 closed defect (fixed)

mapserv.exe startup crash on Win Server 2016

Reported by: TC Haddad Owned by: Jeff McKenna
Priority: blocker Milestone: 5.2.1 release
Component: MS4W - MapServer Version: 5.2.0
Keywords: Cc: Alberto Bianchi
Blocked By: Blocking:

Description (last modified by Jeff McKenna)

mapserv.exe in MS4W 5.2.0 unfortunately seems to crash on startup on Windows Server 2016 (which admittedly is close to EOL in 2027).

The final MS4W 5.2.0 install startup page will show Internal Server Error in place of the main OpenLayers map, and any click to view the demo WMS, WFS, etc. will also result in a 500 server error.

Apache Log and Error Log show the following:

"GET /cgi-bin/mapserv.exe?map=/ms4w/apps/local-demo/local.map&MODE=browse&TEMPLATE=openlayers&LAYERS=all HTTP/1.1" 500 570

and

[client 127.0.0.1:49757] End of script output before headers: mapserv.exe

Other relevant findings to date from command line testing:

Test with map2img SUCCEEDS:

map2img -m "D:\www\tests\test.map" -o test.png

Test with mapserv FAILS:

mapserv.exe "QUERY_STRING=map=D:\www\tests\test.map&mode=map"
Error message produced from this failed test is:
"The application was unable to start correctly (0x000a200)"

Going back in the release history shows that the Windows Server 2016 will successfully run the MS4W 5.2.0 Beta 1, and that the incompatibility with this OS arose in the betas and release candidates that followed.

Attachments (1)

libfcgi.dll (42.5 KB ) - added by Jeff McKenna 7 days ago.
Fixed libfcgi.dll (to fix issues on Windows Server 2016)

Download all attachments as: .zip

Change History (14)

comment:1 by Jeff McKenna, 7 days ago

Cc: Alberto Bianchi added; TC Haddad removed

by Jeff McKenna, 7 days ago

Attachment: libfcgi.dll added

Fixed libfcgi.dll (to fix issues on Windows Server 2016)

comment:2 by Jeff McKenna, 7 days ago

Thank-you both @tchaddad and @abianchi for the thorough testing and research, this really helped.

The problem was one dll (loaded by mapserv.exe), causing issues because Windows Server 2016 is more strict when loading dlls (than newer versions such as Server 2019, 2022, 2025).

See attached file (libfcgi.dll). Copy that into your /ms4w/Apache/cgi-bin/ and restart Apache.

Please report results here. thanks again.

Last edited 7 days ago by Jeff McKenna (previous) (diff)

comment:3 by Jeff McKenna, 7 days ago

Priority: majorblocker

comment:4 by Jeff McKenna, 7 days ago

Component: MS4W - BaseMS4W - MapServer

comment:5 by Jeff McKenna, 7 days ago

Description: modified (diff)
Summary: Mapserv startup crash on Win Server 2016mapserv.exe startup crash on Win Server 2016

comment:6 by Jeff McKenna, 7 days ago

Description: modified (diff)

comment:7 by Jeff McKenna, 7 days ago

Description: modified (diff)

comment:8 by Jeff McKenna, 7 days ago

Description: modified (diff)

comment:9 by Jeff McKenna, 7 days ago

Description: modified (diff)

comment:10 by Jeff McKenna, 7 days ago

Description: modified (diff)

comment:11 by Alberto Bianchi, 7 days ago

Works perfectly. Many thanks.

comment:12 by TC Haddad, 7 days ago

Yes, can confirm working here as well, thanks Jeff!

comment:13 by Jeff McKenna, 6 days ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.