-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when handle parameters with shim binary #9
Comments
Sorry I didn't reply until now. I wanted an extremely lightweight program, both in compile-time and runtime dependencies. For such a small program, I don't think those features are necessarily useful. Unless switching to a more sound language gets requested, I won't change it. Personal note: I really don't like C (and at the very least, I prefer C++), but I wanted something very easy to set up and use. If it was up to me, this would be in Zig (fast, but unpopular) or Rust (popular, but requires a ton of dependencies). I also made this at the time in order to learn C. As for the issue, does your repo fix it? |
Yes |
Weirdly, I can't reproduce on my system. The only problem I can possibly see is that the |
Can you try to delete FaultTolerantHeap entry from When it's heap issue and it crashed too much, OS may turn on fault tolerant heap automatically. |
No entry for the shim in |
Do you familiar with WinDbg and TTD trace? I've taken the trace and the symbol of compiled binary
Also, which Windows version are you using? |
I can try looking into this. What happens when you remove the calls to By the way, which Scoop package is that? I can't find My Windows version is |
Please use this, I thought the official one is also providing
It crash/become undefined around here If you run this under a debugger, you will see the message saying |
I still can't figure out what's wrong with my code, and what makes it different from yours. I still don't have any issue, even with your Scoop bucket. Your C++ code is cleaner so I'd be inclined to use it instead of my C, but it does add a dependency to C++. How big is the generated binary with optimizations? |
Around 122K with 32 bit binary and |
I notice that Emacs shim which's using this
shim.exe
crash when runningemacsclient -a="" -nw
.It seems that there're memory early release error somewhere, thus leads to access violation.
Side note:
I've convert this to Cpp with better memory management notation (using smart pointer and c++17 features), let me know if you think it's appropriate to be able to merged back here.
https://github.com/kiennq/scoop-better-shimexe
The text was updated successfully, but these errors were encountered: