[naviserver-devel] Windows test failures, http_chunked
On Tue, Mar 14, 2023 at 02:54:54PM -0400, Andrew Piskorski wrote: >> [14/Mar/2023:13:17:45][16420.4aa0][-main:test-] Error: modload: >> Z:/src/web/ns-fork-pub/naviserver/tests/../nslog/nslog.dll: couldn't load >> library "Z:/src/web/ns-fork-pub/naviserver/tests/../nslog/nslog.dll": >> permission denied >> [14/Mar/2023:13:17:45][16420.4aa0][-main:test-] Fatal: modload: failed to >> load module 'Z:/src/web/ns-fork-pub/naviserver/tests/../nslog/nslog.dll' > In my case, trying to run on a network drive (over Samba) seems to be > causing the "permission denied" problem. Embarassingly, the problem there was simply that my compiled Windows *.dll files, located on the Samba drive, lacked execute permission. Some Samba configurations enforce that and some don't. With that fixed I can actually look at real test failures. I am still getting the pop-up I mentioned before: Debug Error! Program: C:\web\ns-fork-pub\naviserver\nsd\libnsd.dll Run-Time Check Failure #2 - Stack around the variable 'filter' was corrupted. I never see the usual "all.tcl" test summary output. Maybe nsd is hitting the above "Debug Error!" before getting there? In the test output, I have lots of "compress" failures, but that's probably because I don't have zlib installed (yet) on this machine. I also see 4 "http_chunked" test failures, below: http_chunked-1.1 ADP streaming w/chunks to HTTP/1.1 client FAILED Contents of test case: nstest::http-0.9 -http 1.1 -setheaders {Connection keep-alive} -getbody 1 -getheaders {Transfer-Encoding Connection Content-Length} GET /http_chunked.adp?stream=1 Result was: 200 chunked keep-alive {} {a 0123456789 5 01234 } Result should have been (exact matching): 200 chunked keep-alive {} {a 0123456789 5 01234 0 } http_chunked-1.1 FAILED http_chunked-1.3 ADP with longer partly-buffered response and auto-streaming FAILED Contents of test case: nstest::http-0.9 -http 1.1 -setheaders {Connection keep-alive} -getheaders {Transfer-Encoding Connection Content-Length} -getbody t GET /http_chunked.adp?stream=0=8 Result was: 200 chunked keep-alive {} {a 0123456789 5 01234 } Result should have been (exact matching): 200 chunked keep-alive {} {a 0123456789 5 01234 0 } http_chunked-1.3 FAILED http_chunked-2.1 Tcl streaming w/chunks to HTTP/1.1 client FAILED Contents of test case: nstest::http-0.9 -http 1.1 -getheaders {Transfer-Encoding Content-Length} -getbody 1 GET /tclchunked Result was: 200 chunked {} {a 0123456789 5 01234 } Result should have been (exact matching): 200 chunked {} {a 0123456789 5 01234 0 } http_chunked-2.1 FAILED http_chunked-2.1.1 Tcl streaming multiple binary buffers w/chunks to HTTP/1.1 client FAILED Contents of test case: nstest::http-0.9 -http 1.1 -getheaders {Transfer-Encoding Content-Length} -getbody 1 GET /tclchunked Result was: 200 chunked {} {a 0123456789 5 01234 } Result should have been (exact matching): 200 chunked {} {a 0123456789 5 01234 0 } http_chunked-2.1.1 FAILED ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] cannot run Windows tests, mysterious nslog.dll permission denied
On Tue, Mar 14, 2023 at 01:46:34PM -0400, Andrew Piskorski wrote: > nmake -f Makefile.win32 _test_one > > Now, I can't get that to work, and I'm stuck trying to figure out why. In my case, trying to run on a network drive (over Samba) seems to be causing the "permission denied" problem. (I'm still trying to figure out why.) If I simply copy everything to a local Windows disk, then the tests do run. They eventually crash nsd with this popup error message: Debug Error! Program: C:\web\ns-fork-pub\naviserver\nsd\libnsd.dll Run-Time Check Failure #2 - Stack around the variable 'filter' was corrupted. I haven't tried to debug that yet. -- Andrew Piskorski ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
[naviserver-devel] cannot run Windows tests, mysterious nslog.dll permission denied
Back in 2020, we had the regression tests successfully running on Windows, from the command line with these sorts of commands: nmake -f Makefile.win32 _test nmake -f Makefile.win32 _test_one Now, I can't get that to work, and I'm stuck trying to figure out why. Note, I DON'T mean that the tests are failing - they're not. Rather, I currently can't get the test nsd to start up and run the tests at all! When run from nmake like the above, I get no useful output anywhere, just a "return code '0xc022'" message from nmake. If I copy that generated command line and run the it manually at the Windows command prompt, it then DOES write to "tests/nsd.log", where I see errors like this: [14/Mar/2023:13:17:45][16420.4aa0][-main:test-] Error: modload: Z:/src/web/ns-fork-pub/naviserver/tests/../nslog/nslog.dll: couldn't load library "Z:/src/web/ns-fork-pub/naviserver/tests/../nslog/nslog.dll": permission denied [14/Mar/2023:13:17:45][16420.4aa0][-main:test-] Fatal: modload: failed to load module 'Z:/src/web/ns-fork-pub/naviserver/tests/../nslog/nslog.dll' Yes, it says "permission denied", but I have no idea why! AFAICT that nslog.dll' file *IS* readable by everybody in every other context. Note that in that same Windows Command Prompt I can run tclsh and see that the file IS readable: Z:\src\web\ns-fork-pub\naviserver> tclsh % info patchlevel 8.6.12 % file readable Z:/src/web/ns-fork-pub/naviserver/tests/../nslog/nslog.dll 1 % exit I suspect I'm overlooking something. Any debugging suggestions for me? Btw, once I install Naviserver I can start it up using the "simple-config.tcl" just fine, but I don't remember if it's feasible to run the tests that way. In the past I definitely ran them using the build directory like the above, not after installing. -- Andrew Piskorski ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel