From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chunyu Wang Newsgroups: gmane.emacs.bugs Subject: bug#6126: 24.0.50; Segmentation fault when w32-shell-execute try to open an unassociated file Date: Fri, 7 May 2010 09:52:42 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1273197385 17316 80.91.229.12 (7 May 2010 01:56:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 May 2010 01:56:25 +0000 (UTC) Cc: 6126@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 07 03:56:22 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OACne-0006XM-1U for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 May 2010 03:56:22 +0200 Original-Received: from localhost ([127.0.0.1]:34589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OACnc-0000Lj-UV for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 May 2010 21:56:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OACnY-0000KO-0H for bug-gnu-emacs@gnu.org; Thu, 06 May 2010 21:56:16 -0400 Original-Received: from [140.186.70.92] (port=48376 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OACnW-0000JS-5F for bug-gnu-emacs@gnu.org; Thu, 06 May 2010 21:56:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OACnT-0006p2-Iz for bug-gnu-emacs@gnu.org; Thu, 06 May 2010 21:56:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59448) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OACnT-0006ow-H7 for bug-gnu-emacs@gnu.org; Thu, 06 May 2010 21:56:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OAClO-0000mm-8R; Thu, 06 May 2010 21:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chunyu Wang Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 May 2010 01:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6126-submit@debbugs.gnu.org id=B6126.12731971893008 (code B ref 6126); Fri, 07 May 2010 01:54:02 +0000 Original-Received: (at 6126) by debbugs.gnu.org; 7 May 2010 01:53:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OACkW-0000mS-Tb for submit@debbugs.gnu.org; Thu, 06 May 2010 21:53:09 -0400 Original-Received: from mail-px0-f172.google.com ([209.85.212.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OACkV-0000m6-2B for 6126@debbugs.gnu.org; Thu, 06 May 2010 21:53:07 -0400 Original-Received: by pxi19 with SMTP id 19so266298pxi.3 for <6126@debbugs.gnu.org>; Thu, 06 May 2010 18:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=tMseZ2G51EMHyUPGCpRNUy6Q1aa+Cmty6SrgHjGyE/k=; b=f2wYXrsBQ+yDuQtMZdGiNTiG/9mAXw4mNd2/IsPS9b1NB7zIOa8IHKMl0LBZY3mYYd gecxEKkHjvXM1vyHH2bv5nKvHVXPey8bK8RHhhjLTDYNHq/RGRA6HtSy5GBIWWDt3FXF v2iojOZS+rt/LfuNovxgbhu4BEMWWCWv046/o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=UBgmcwEHsKl/lzWaxdpfxAogIQetXWlOHEi1CV5ctXIT+/gBu0J/CJibf6xvdtKhiO 1Rc6OJnmnKq7xZFJ+Xk5hTafeKxi02HhncCx9Ot8ID+Cgql5y9glp1Bgctcd5KeRkE6c qHJvvUAL59Xu7Ci8KnipThgh18kZgjxQ2Hpew= Original-Received: by 10.142.248.38 with SMTP id v38mr935368wfh.246.1273197182673; Thu, 06 May 2010 18:53:02 -0700 (PDT) Original-Received: by 10.142.114.18 with HTTP; Thu, 6 May 2010 18:52:42 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 06 May 2010 21:54:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36759 Archived-At: 2010/5/7 Lennart Borgman : > ... > I do not understand C code but here are some small observations: > > - In w32_error the argument error_no has type int. It should be more > easy to understand if it had the type DWORD which is what GetLastError > returns. Will using int be correct on all w32 platforms? Sorry, I have no idea completely. > - The call to error in w32-shell-execute has only two arguments. Is > that correct? error in eval.c takes four arguments. (w32-shell-execute OPERATION DOCUMENT &optional PARAMETERS SHOW-FLAG) The last two are optional, but emacs crashed even if called with them. > - The parameter lpBuffer to FormatMessage has the type LPTSTR. Is it > correct to call that with *char (ie buf)? It looks in the backtrace > like even the argument a1 to error is incorrect. no idea too. -- Harbin Institute of Technology, China Chunyu Wang