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 )
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)
Change History (14)
comment:1 by , 7 days ago
| Cc: | added; removed |
|---|
by , 7 days ago
| Attachment: | libfcgi.dll added |
|---|
comment:2 by , 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.
comment:3 by , 7 days ago
| Priority: | major → blocker |
|---|
comment:4 by , 7 days ago
| Component: | MS4W - Base → MS4W - MapServer |
|---|
comment:5 by , 7 days ago
| Description: | modified (diff) |
|---|---|
| Summary: | Mapserv startup crash on Win Server 2016 → mapserv.exe startup crash on Win Server 2016 |
comment:6 by , 7 days ago
| Description: | modified (diff) |
|---|
comment:7 by , 7 days ago
| Description: | modified (diff) |
|---|
comment:8 by , 7 days ago
| Description: | modified (diff) |
|---|
comment:9 by , 7 days ago
| Description: | modified (diff) |
|---|
comment:10 by , 7 days ago
| Description: | modified (diff) |
|---|
comment:13 by , 6 days ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |

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