clink icon indicating copy to clipboard operation
clink copied to clipboard

Autorun does not appear to work with windows 10

Open mortenn opened this issue 9 years ago • 13 comments

I have a clean install of windows 10, but after installing clink with autorun enabled, it does not run when I execute cmd. If I run clink from the installed shortcut, it does work. When I issue "clink autorun --help" in the clink shell, I get help text and then the program crashes with an exception: Unhandled exception at 0x00007FFDA581DFAC (ntdll.dll) in clink_x64.exe: 0xC0000374: A heap has been corrupted (parameters: 0x00007FFDA58722B0).

mortenn avatar Jan 23 '16 14:01 mortenn

Works for me, I am on Windows 10 Pro with Clink v0.4.5 [git:5d6c11]

vovcacik avatar Jan 25 '16 12:01 vovcacik

Mine is v0.4.7 [git:dfc95a]

mortenn avatar Jan 25 '16 19:01 mortenn

I uninstalled 0.4.7 and installed v0.4.6 [git:bd8d44] It now works as expected

mortenn avatar Jan 25 '16 19:01 mortenn

If I rerun the 0.4.7 installer after having installed 0.4.6, clink still autoruns when I run cmd. I still get an exception running clink autorun --help I downloaded the 0.4.7 pdbs, but VS will not load them. Stack trace: ntdll.dll!RtlReportCriticalFailure() Unknown ntdll.dll!RtlpHeapHandleError() Unknown ntdll.dll!RtlpLogHeapFailure() Unknown ntdll.dll!RtlFreeHeap() Unknown AcLayers.dll!NS_FaultTolerantHeap::APIHook_RtlFreeHeap() Unknown clink_x64.exe!00007ff6b7524f8c() Unknown clink_x64.exe!00007ff6b7521452() Unknown clink_x64.exe!00007ff6b752299d() Unknown clink_x64.exe!00007ff6b7522ab4() Unknown clink_x64.exe!00007ff6b75246b0() Unknown [External Code]

mortenn avatar Jan 25 '16 19:01 mortenn

After rebooting a couple times, autorun no longer works, it seems.

mortenn avatar Jan 27 '16 16:01 mortenn

Going back to 0.4.6, will report back if autorun stops working again while I am using that version.

mortenn avatar Jan 27 '16 16:01 mortenn

it seems it is just the help that is broken - in that clink crashes after printing the help ("c:\Program Files (x86)\clink\0.4.7\clink.bat" autorun --help).

The installation of the autorun to the current user account works for me with "c:\Program Files (x86)\clink\0.4.7\clink.bat" autorun install

jtnord avatar Feb 02 '16 19:02 jtnord

I don't know if it is due to clink, but I can no longer hit arrow up.. I just get some strange control sequences printed to the shell instead.

mortenn avatar Feb 03 '16 11:02 mortenn

Upgraded to 0.4.7 and autorun stopped working, but I can now use arrow up again.

mortenn avatar Feb 03 '16 11:02 mortenn

same with win10 pro x64 and clink 0.4.8

void285 avatar Dec 11 '16 03:12 void285

Hi mortenn. Did you install clink under Admin account? In this case you need to run autorun install manually under regular user account as jtnord noted in his comment: "C:\Program Files (x86)\clink\0.4.8\clink.bat" autorun install Worked for me after that on Win10 Pro x64 with clink 0.4.8.

esauloff avatar Mar 23 '17 21:03 esauloff

No, my account is admin due to MSVS requirements, this is not a issue for me at the moment, however.

mortenn avatar Mar 25 '17 20:03 mortenn

@esauloff and @jtnord thanks for the note about manually running at lower privilege user if you installed as admin (different from your regular user). This did the trick for me "C:\Program Files (x86)\clink\0.4.9\clink.bat" autorun install

ericop avatar May 31 '18 16:05 ericop