X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 From: Thomas Shanks Date: Fri, 2 Jul 2010 16:23:27 -0400 Message-ID: Subject: Answer: How to fix error "strace: error creating process vim, (error 2)" To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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