all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Florian Beck <abstraktion@t-online.de>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.60; emacs-report-bug fails silently
Date: Thu, 05 Jun 2008 09:58:12 -0400	[thread overview]
Message-ID: <jwvk5h4c7gc.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87zlq0gkru.fsf@sophokles.streitblatt.de> (Florian Beck's message of "Thu, 05 Jun 2008 13:53:57 +0200")

>> 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




  reply	other threads:[~2008-06-05 13:58 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-30 12:59 23.0.60; emacs-report-bug fails silently Florian Beck
2008-05-30 13:59 ` Lennart Borgman (gmail)
2008-05-30 21:42   ` Florian Beck
2008-05-30 21:52     ` Lennart Borgman (gmail)
2008-05-31  0:44       ` Florian Beck
2008-05-31  9:18         ` Lennart Borgman (gmail)
2008-05-31 10:56           ` Reiner Steib
2008-06-01  2:47           ` Florian Beck
2008-06-01  8:04             ` Lennart Borgman (gmail)
2008-05-31  9:53         ` Reiner Steib
2008-06-01  2:54           ` Florian Beck
2008-06-01  7:59             ` Lennart Borgman (gmail)
2008-06-02  0:38             ` Stefan Monnier
2008-06-02  2:13               ` Florian Beck
2008-06-02  2:24                 ` Stefan Monnier
2008-06-05  5:27                 ` Stefan Monnier
2008-06-05 11:53                   ` Florian Beck
2008-06-05 13:58                     ` Stefan Monnier [this message]
2008-06-05 14:28                       ` Florian Beck
2008-06-06  6:01                         ` Stefan Monnier
2008-06-06 19:04                           ` Richard M Stallman
2008-06-07  1:24                             ` Stefan Monnier
2008-06-07  2:28                           ` Florian Beck
2008-06-07 14:23                             ` Chong Yidong
2008-06-07  7:50                           ` Reiner Steib
2008-06-13  4:15                           ` Kevin Rodgers
2008-06-13 14:17                             ` bug#404: " Stefan Monnier
2008-06-13 14:17                             ` Stefan Monnier
2008-06-13 17:30                               ` bug#404: marked as done (23.0.60; emacs-report-bug fails silently) Emacs bug Tracking System
2008-06-02  8:07               ` 23.0.60; emacs-report-bug fails silently Paul R
2008-06-02 18:56                 ` Reiner Steib
2008-06-02 19:15                   ` Paul R
2008-06-03  8:26                     ` tomas
2008-06-05  5:15                       ` Stefan Monnier
2008-06-05 12:41                         ` tomas
2008-06-05 16:43                           ` Don Armstrong
2008-06-05 19:50                             ` Stefan Monnier
2008-06-01  5:36     ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvk5h4c7gc.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=abstraktion@t-online.de \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.