Comments (9)
Submitted
https://github.com/valenok/mongoose/commit/e556a487e0a85fd0dd61732732103108ace09
c81
You can try it with the dev executable,
https://code.google.com/p/mongoose/downloads/detail?name=mongoose_07.09.2013.exe
Please confirm that it works as expected.
Thanks for reporting!
Original comment by valenok
on 7 Sep 2013 at 5:52
- Changed state: Fixed
from mongoose.
Thanks for the quick update!
The original issue with SCRIPT_NAME is gone.
Unfortunately, now mongoose crashes on cleanup (after the cgi is finished and
the request handled).
The 'access violation' on cleanup also happens with a static page.
The 19.08.2013 version does not have this crash.
Here is the stack trace:
> kernel32.dll!7c830cb3()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
mongoose_07.09.2013.exe!0040847e()
mongoose_07.09.2013.exe!00408335()
ntdll.dll!7c90da2a()
kernel32.dll!7c8024c7()
msvcrt.dll!77c4aeff()
mongoose_07.09.2013.exe!00408147()
msvcrt.dll!77c3a243()
kernel32.dll!7c80b729()
Let me know if I can provide you with more information.
With kind regards,
Joost de Greef.
Original comment by [email protected]
on 7 Sep 2013 at 7:55
from mongoose.
Thanks!
Does crash happen with https://mongoose.googlecode.com/files/mongoose-4.0.exe
too ?
I am testing it under Wine on MacOS, with XP emulation, I see no crash.
I'd appreciate if you help me debug this.
Do you have access on other Windows platform, e.g. Windows 7?
Original comment by valenok
on 7 Sep 2013 at 8:03
from mongoose.
the 4.0 version has the same issue here (on windows xp 32 bit):
> kernel32.dll!7c830cb3()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
mongoose-4.0.exe!0040847e()
mongoose-4.0.exe!00408335()
ntdll.dll!7c90da2a()
kernel32.dll!7c8024c7()
msvcrt.dll!77c4aeff()
mongoose-4.0.exe!00408147()
msvcrt.dll!77c3a243()
kernel32.dll!7c80b729()
On windows 7 64 bit the stack trace shows the same address:
> KernelBase.dll!LockFileEx() + 0x32 bytes
[Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
mongoose-4.0.exe!0040847e()
mongoose-4.0.exe!00408335()
ntdll.dll!NtReleaseMutant() + 0x15 bytes
026fd838()
mongoose-4.0.exe!00408183()
msvcrt.dll!_beginthread() + 0xf2 bytes
msvcrt.dll!_beginthread() + 0xd1 bytes
kernel32.dll!BaseThreadInitThunk() + 0x12 bytes
ntdll.dll!RtlInitializeExceptionChain() + 0x63 bytes
ntdll.dll!RtlInitializeExceptionChain() + 0x36 bytes
sounds like a nice challenge :-)
sorry for replying like this, the email reply came back :-/
Original comment by [email protected]
on 7 Sep 2013 at 8:20
from mongoose.
Thanks. I suspect flockfile() change is guilty.
Did you configure access/error logging?
Can you share your config file / command line options please?
Original comment by valenok
on 7 Sep 2013 at 8:44
from mongoose.
Could you try this binary please:
https://code.google.com/p/mongoose/downloads/detail?name=mongoose-tiny.07.09.201
3.exe
Original comment by valenok
on 7 Sep 2013 at 8:55
from mongoose.
i also think the error is in the locking:
//#define flockfile(x) LockFileEx((HANDLE) _get_osfhandle(_fileno(x)), \
// LOCKFILE_FAIL_IMMEDIATELY | LOCKFILE_EXCLUSIVE_LOCK, 0, 0, 0, NULL)
//#define funlockfile(x) UnlockFileEx((HANDLE) _get_osfhandle(_fileno(x)), \
// 0, 0, 0, NULL)
#define flockfile(x) LockFile((HANDLE) _get_osfhandle(_fileno(x)), 0, 0, 0, 0)
#define funlockfile(x) UnlockFileEx((HANDLE) _get_osfhandle(_fileno(x)), 0, 0,
0, 0)
The second version 'works', even though it doesn't lock any bytes :-)
Testing the new build you posted now.
Original comment by [email protected]
on 7 Sep 2013 at 9:29
from mongoose.
The new 4.1 version you posted works fine!
Thanks a lot!
Original comment by [email protected]
on 7 Sep 2013 at 9:32
from mongoose.
You're welcome, and thank you!
Let me know if you have any more questions, or need help with Mongoose!
Original comment by valenok
on 7 Sep 2013 at 9:48
from mongoose.
Related Issues (20)
- Make mongoose example fail (again)
- HTTP Range Request Issue
- Cross compiler for mips platform. error "can't resolve symbol '__sysv_signal'" HOT 3
- Feature req. Serve cgi script generated downloads HOT 1
- Mongoose Fails to start HTTPS under Windows HOT 5
- curl_easy_perform stuck using ssl HOT 1
- Lua with sqlite3 for saving unicode characters HOT 1
- Random images not displaying in IE8 HOT 3
- mongoose 4.1 won't start on mac os x 10.9.1 with 'listening_ports 80' HOT 1
- Follow symbolic links
- I cannot get mongoose to process a GET from the client when requesting a JSON file. HOT 3
- Still not smart about urls containing cgi script and more elements after script in the url HOT 1
- compiling mogoose with lua HOT 5
- lua cgi with mongoose 4.1 HOT 1
- gpa pha HOT 1
- 301 Redirection HOT 1
- "Failed to start Mongoose" HOT 1
- mingw4.9 printf format for int64 should be also %I64d, not %lld HOT 1
- cookie_authentication example no server response HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoose.