This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Answer: How to fix error "strace: error creating process vim, (error 2)"
- From: Thomas Shanks <thomas dot shanks at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 2 Jul 2010 16:23:27 -0400
- Subject: Answer: How to fix error "strace: error creating process vim, (error 2)"
Since no one bothered to reply to my previous message (help the cygwin
newbies, yall!), I'll post the answer.
If you get:
~$ strace vim
strace: error creating process vim, (error 2)
~$ strace
It's because vim is a symlink, and strace can't follow symlinks, as
it's not a cygwin.dll program.
Instead, figure out where 'vim' (or whatever) goes.
~$ realpath `which vim`
/usr/bin/gvim.exe
~$ strace /usr/bin/gvim.exe
The strace manpage does say this now (in a roundabout way), but I
didn't have the requisite optional manpage package installed at the
time.
DEVS: PLEASE file the missing error message text in strace (a
cygwin-specific program!) as a bug, as the error message isn't missing
(and replaced with cryptic "error 2") on other platforms.
Thomas Shanks
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple