Giter Site home page Giter Site logo

csexec's People

Contributors

roman-yagodin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

shakahl

csexec's Issues

Unpredictable behavior with long paths

Attempt to run script or compiled binary using paths longer than ~155 chars (actual value differs from case to case) will lead to unexpected results, which are somewhat random:

  1. Segfault (more frequently):
* Assertion at strenc.c:183, condition `utf8!=NULL' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.IO.MonoIO.GetFileStat (string,System.IO.MonoIOStat&,System.IO.MonoIOError&) <0x0005d>
  at System.IO.File.FillAttributeInfo (string,System.IO.MonoIOStat&,bool,bool) <0x00040>
  at System.IO.FileSystemInfo.Refresh () <0x00024>
  at System.IO.DirectoryInfo.get_Exists () <0x0001b>
  at System.IO.Directory.CreateDirectoriesInternal (string) <0x000b9>
  at System.IO.Directory.CreateDirectory (string) <0x000a0>
  at R7.Scripting.Log..ctor (string,bool) <0x0004b>
  at R7.Scripting.Script..ctor (string[]) <0x0007f>
  at R7.Scripting.DesktopScript..ctor (string[]) <0x00017>
  at MyScript..ctor (string[]) <0x00017>
  at Program.Main (string[]) <0x00033>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0x000f5>
...
  1. No segfault, but Main process quickly grows in memory to about 4 Gb - less frequently, but very annoying!

The problem seems of Mono/.NET origin, but it would be nice to overcome this to ensure scripts can run from any directory as a working directory, or at least block their execution in a nice way.

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.