From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Beck Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; emacs-report-bug fails silently Date: Thu, 05 Jun 2008 13:53:57 +0200 Message-ID: <87zlq0gkru.fsf@sophokles.streitblatt.de> References: <87fxs0hrrv.fsf@sophokles.streitblatt.de> <4840084C.2020405@gmail.com> <87d4n3ii41.fsf@sophokles.streitblatt.de> <48407716.5080704@gmail.com> <874p8fi9op.fsf@sophokles.streitblatt.de> <87od6lc1bd.fsf@sophokles.streitblatt.de> <87abi4r3ci.fsf@sophokles.streitblatt.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212685091 13425 80.91.229.12 (5 Jun 2008 16:58:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2008 16:58:11 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Florian Beck To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 05 18:58:52 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K4InN-0002Nk-5M for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2008 18:58:37 +0200 Original-Received: from localhost ([127.0.0.1]:50938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4Ima-0002rO-Jp for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2008 12:57:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4Ili-0002MV-E5 for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:56:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4Ilg-0002Ku-A7 for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:56:53 -0400 Original-Received: from [199.232.76.173] (port=58757 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4Ilg-0002Kq-2S for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:56:52 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:53741) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4IlV-0005pm-Bv for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:56:41 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:59177 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1K4Ije-0001GT-Ev for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 12:54:46 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1K4IOz-0008RL-Ml for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 12:33:28 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:4640) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4HOS-0001L8-Vn for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 11:28:49 -0400 Original-Received: from mo-p07-ob.rzone.de ([81.169.146.189]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4E2e-0005H6-Gf for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 07:54:04 -0400 X-RZG-CLASS-ID: mo07 X-RZG-AUTH: z4gYkBuibEUuEEkKOBbVfrA10Cc5 Original-Received: from aeschylus (p54995241.dip.t-dialin.net [84.153.82.65]) by post.webmailer.de (mrclete mo55) (RZmta 16.41) with ESMTP id y04a19k55AoC0Y ; Thu, 5 Jun 2008 13:53:58 +0200 (MEST) (envelope-from: ) In-Reply-To: (Stefan Monnier's message of "Thu, 05 Jun 2008 01:27:53 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by mx20.gnu.org: Solaris 10 (beta) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:98475 gmane.emacs.pretest.bugs:22567 Archived-At: Stefan Monnier writes: >> It is from the postfix package, but obviously not configured: > >> fb@aeschylus:~$ sendmail >> sendmail: fatal: open /etc/postfix/main.cf: No such file or directory >> fb@aeschylus:~$ echo $? >> 75 > > That's odd. From what you said earlier, it seems you're using the > sendmail.el code to send the message. And that code does (around line > 1167): > (exit-value (apply 'call-process-region args))) > (or (null exit-value) (eq 0 exit-value) > (error "Sending...failed with exit value %d" exit-value))) > > so it should catch a non-0 exit status and signal an error for it. > > Could you try and investigate, to see whether you're indeed running this > code and why it doesn't get an exit-value of 75? Yes, this code is run. As far as I can see the following happens: * append((1 72 "/usr/sbin/sendmail" nil 0 nil "-oi") nil nil ("-oem" "-odb") ("-t") nil) And then: Debugger entered--returning value: nil call-process-region(1 72 "/usr/sbin/sendmail" "/tmp/emacsY9owP5" 0 nil "-oi" "-oem" "-odb" "-t") * apply(call-process-region (1 72 "/usr/sbin/sendmail" nil 0 nil "-oi" "-oem" "-odb" "-t")) * byte-code [snipped] * sendmail-send-it() mail-send() mail-send-and-exit(nil) call-interactively(mail-send-and-exit nil nil) However, > (or (null exit-value) (eq 0 exit-value) > (error "Sending...failed with exit value %d" exit-value))) is never run, because it belongs to the else branch of the enclosing if statement. -- Florian Beck