error opening a ksh shell sh.exe:"_main: memory allocation at startup


  1. Posts : 39
    win7 home premium 64 bit
       #1

    error opening a ksh shell sh.exe:"_main: memory allocation at startup


    Hi,
    After the one year anniversary update I get error opening a ksh shell sh.exe:"_main: memory allocation error during startup."
    Anyone else see something like this?
    Thanks,
    Keith
      My Computer


  2. Posts : 15
    Windows 10/OS X 10.11 ADP
       #2

    Tap F8 just before you would usually see the Windows flag appear on startup. Select "Safe Mode with Networking". Does it still fail to start?

    If it does not, right click your start button, select Command Prompt (Admin) and type "sfc /scannow" then reboot.

    If it doesn't start, or gives you the same error, reboot the computer again and select "Startup Repair" then follow the prompts.

    Post back with how it goes.

    Andrew
      My Computer


  3. Posts : 39
    win7 home premium 64 bit
    Thread Starter
       #3

    shell start-up still broken


    [Safe Mode with Networking]
    Window pops up reading: Get Started this app can't be opened with build-in admin account.
    Clicked <ok>
    The shell open behaves same.


    <cmd>[sfc /scannow - reboot]
    "Windows Resource Protection did not find any integrity violations."
    The shell open behaves same.


    [start-up repair]
    The shell open behaves same.


    This is a clean install of Win 10 Pro. and ksh open worked. the anniversary update caused the failure with shell.
    The ksh open may or may not occur in error; whether opened in error or not the shell window suffers at times with the prompt:"_main: memory allocation error during startup." when ever you enter commands. It's broken.
      My Computer


  4. Posts : 3,257
    Windows 10 Pro
       #4

    klong915 said:
    Hi,
    After the one year anniversary update I get error opening a ksh shell sh.exe:"_main: memory allocation error during startup."
    Anyone else see something like this?
    Thanks,
    Keith
    Are you using the latest insider build? Or are you using the public 14393.xx build? There is a known issue in the latest insider (14915) that causes the bash shell to stop working, you need to uninstall and reinstall it from Programs & Features. Or are you using git-bash?
      My Computer


  5. Posts : 39
    win7 home premium 64 bit
    Thread Starter
       #5

    I'm using the public updater. The anniversary update is a major step, takes twice as long as the windows 12 pro install. The A update recreates windows dir; If the insider build is needed, should I just re-start the install from 0 (clean re-install of windows 10 pro and then update via insider build).
    Bash is also used on this pc but employs mintty; it is not affected by the A build. The ksh uses a window like that of cmd in dos utilities. ksh is the program that is now broken upon A build.
    The A build alters permissions/ownership of windows dir, ksh uses utils in windows/system32. In windows 7 ownership of windows dir was taken from trusty and given to this user.
    The goal is to molest windows 10 as little as possible and continue to use ksh on it.
      My Computer


  6. Posts : 15
    Windows 10/OS X 10.11 ADP
       #6

    I would wait for an update. You could try a refresh, and open the permissions of your whole Windows folder to everyone to see if it makes a difference (the memory allocation error could be privilege related - sh.exe could need a resource that it no longer has permission to access or execute) but the most likely problem is a file update making problems in the expected memory addresses sh.exe references, and sh tries to put something in space that is now in use.

    Only the devs of ksh or sh can fix that.
      My Computer


  7. Posts : 39
    win7 home premium 64 bit
    Thread Starter
       #7

    Well, I wish I knew a way to make this happen; we can alter number of buffers and buffer size; neither of which were alter B/W 10 and the A update. Maybe I should take ownership of windows as in windows 7.
      My Computer


  8. Posts : 39
    win7 home premium 64 bit
    Thread Starter
       #8

    OK, trying to take ownership of the windows dir appeared to be the wrong direction after a little effort to do so. Aborted this and recovered from a restore point (trouble was expected).
    So things are just as they were, broken: ksh will intermittently work and fail with error message "_main: memory allocation error during startup."
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:58.
Find Us




Windows 10 Forums