From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; emacs-report-bug fails silently Date: Thu, 05 Jun 2008 09:58:12 -0400 Message-ID: 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 1212682515 3866 80.91.229.12 (5 Jun 2008 16:15:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2008 16:15:15 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Florian Beck Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 05 18:15:54 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 1K4I7j-00011l-G2 for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2008 18:15:35 +0200 Original-Received: from localhost ([127.0.0.1]:53166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4I6w-0007nG-S2 for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2008 12:14:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4I2G-0005IE-40 for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:09:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4I2E-0005HV-AM for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:09:55 -0400 Original-Received: from [199.232.76.173] (port=36243 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4I2D-0005HM-Qt for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:09:54 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:33423) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4I2D-0002c4-6z for emacs-devel@gnu.org; Thu, 05 Jun 2008 12:09:53 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]:52923) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1K4I0M-0005st-7R for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 12:07:58 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1K4I28-0002bC-Dm for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 12:09:52 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:4010) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4HD8-0007KV-LD for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 11:17:06 -0400 Original-Received: from 206-248-132-168.dsl.teksavvy.com ([206.248.132.168] helo=ceviche.home) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4Fys-00058g-Mu for emacs-pretest-bug@gnu.org; Thu, 05 Jun 2008 09:58:18 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id AB599B4248; Thu, 5 Jun 2008 09:58:12 -0400 (EDT) In-Reply-To: <87zlq0gkru.fsf@sophokles.streitblatt.de> (Florian Beck's message of "Thu, 05 Jun 2008 13:53:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-Greylist: delayed 307167 seconds by postgrey-1.27 at nadesico; Thu, 05 Jun 2008 09:58:18 EDT 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:98468 gmane.emacs.pretest.bugs:22564 Archived-At: >> 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? >> (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. Stefan