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 16:28:53 +0200 Message-ID: <87r6bcgdlm.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> <87zlq0gkru.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 1212683371 7026 80.91.229.12 (5 Jun 2008 16:29:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2008 16:29:31 +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:30:11 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 1K4ILp-0007hT-MU for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2008 18:30:09 +0200 Original-Received: from localhost ([127.0.0.1]:38182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4IL3-0008A6-2v for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2008 12:29:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4IJT-0006zz-JX for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:27:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4IJQ-0006xi-Lu for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:27:41 -0400 Original-Received: from [199.232.76.173] (port=33668 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4IJP-0006xH-NF for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:27:39 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:53840) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4IJP-0006sB-1M for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:27:39 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]:54645) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1K4IHX-0007D4-Up for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 12:25:44 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1K4IJK-0006qi-Kh for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 12:27:37 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:3727) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4H6E-0005vc-VR for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 11:09:59 -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 1K4GSW-0001VY-ST for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 10:28:57 -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 (fruni mo57) (RZmta 16.41) with ESMTP id w02b88k55DZqxz ; Thu, 5 Jun 2008 16:28:53 +0200 (MEST) (envelope-from: ) In-Reply-To: (Stefan Monnier's message of "Thu, 05 Jun 2008 09:58:12 -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: Linux 2.6, seldom 2.4 (older, 4) 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:98470 gmane.emacs.pretest.bugs:22565 Archived-At: Stefan Monnier writes: >>> 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) > > Can you do M-x trace-function-background RET call-process-region RET, > then run the code, then look at the *trace-output* buffer to see what > call-process-region returns? 1 -> call-process-region: start=1 end=77 program="/usr/sbin/sendmail" delete=nil buffer=0 display=nil args=("-oi" "-oem" "-odb" "-t") 1 <- call-process-region: nil According to the docstring, call-process-region doesn't return the exit value, because buffer=0. This is because mail-interactive is nil by default. >>> (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. > > Hmm... which version of sendmail.el is that? On the trunk and the > Emacs-22 branch, this code is the body of the `let' that runs > call-process-region, so it definitely should be run. You are right, of course. Seems I got lost somewhere in the long list of bindings. -- Florian Beck