Giter VIP home page Giter VIP logo

Comments (4)

Px-x64 avatar Px-x64 commented on June 2, 2024

Alternative server for tests: ftp://internat.freebsd.org/

from farmanager.

alabuzhev avatar alabuzhev commented on June 2, 2024

Far could do better here, not dying suddenly :)

Unfortunately, not really.
The stack basically says that:

  • netbox called strncpy_s with some invalid parameters
  • strncpy_s validated the parameters, detected the issue and called the invalid parameter handler
  • the invalid parameter handler forced the process to commit suicide ASAP.

Far does set up its own invalid parameter handler and is able to intercept such failures, but... only if they happen in its own code, far.exe. Plugins are linked with their own runtimes and have their own CRT state, invisible to Far, so it can't replace their error handlers. It can't stop them from explicitly and directly suiciding the process either.

If you still want such errors to be handled by Far, the easiest way is to override the default handler in Netbox code and call RaiseException(STATUS_ASSERTION_FAILURE, ...) there instead of terminating the process. Far will handle SEH gracefully.

The ultimate solution would be implementing the error handler as an external process, constantly attached to far.exe as a debugger and monitoring its state. It's more robust by definition and would be able to intercept these too but an extra process... Imagine always working with WinDBG attached, all day, every day. Ugh.

PS: there is also a bunch of

Those are just Lua and C++ exceptions being thrown and caught, likely BAU and not related in any way to this one.

from farmanager.

Px-x64 avatar Px-x64 commented on June 2, 2024

The code in stack seems completely from WinSCP, not sure if its exception handler can be overridden, but I've got your point, thank you :)

from farmanager.

alabuzhev avatar alabuzhev commented on June 2, 2024

It should work as long as it's within the same binary.

from farmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.