Package: mutt
Version: 1.5.21-2
Hi,
I was sending a 16 MiB attachment and then decided that was a bad
idea. So I hit ^C. The status bar says:
Sending message... 9.1M/16M (55%)
strace tells me:
Process 32553 attached - interrupt to quit
recvfrom(6, 0x27f0fd0, 5, 0, 0, 0) = ? ERESTARTSYS (To be
restarted)
--- SIGINT (Interrupt) @ 0 (0) ---
rt_sigreturn(0x2) = 45
gdb tells me:
(gdb) bt
#0 0x00007f059021a022 in __libc_recv (fd=<value optimized out>,
buf=0x27f0fd0, n=5,
flags=<value optimized out>) at
../sysdeps/unix/sysv/linux/x86_64/recv.c:30
#1 0x00007f0590ff956e in ?? () from /usr/lib/libgnutls.so.26
#2 0x00007f0590ff9960 in ?? () from /usr/lib/libgnutls.so.26
#3 0x00007f0590ff4fcc in _gnutls_recv_int () from
/usr/lib/libgnutls.so.26
#4 0x00007f0590ff658f in gnutls_bye () from /usr/lib/libgnutls.so.26
#5 0x00000000004961d7 in tls_socket_close (conn=0x279a280) at
../mutt_ssl_gnutls.c:378
#6 0x0000000000497fae in mutt_sasl_conn_close (conn=0x279a280) at
../mutt_sasl.c:491
#7 0x00000000004948f4 in mutt_socket_close (conn=0x279a280) at
../mutt_socket.c:81
#8 0x00000000004953ed in mutt_socket_write_d (conn=0x279a280,
buf=0x7fff0281cbc0
"AgFFAwJGBQRIBgVJAwFHAwBIAwBIAgBHAgBJAgBJAQBGAQBGAQBFAQBEAQBEAABAAAE+AAA8\r\n",
len=74,
dbg=<value optimized out>) at ../mutt_socket.c:135
#9 0x00000000004934b3 in smtp_data (from=<value optimized out>,
to=<value optimized out>,
cc=<value optimized out>, bcc=<value optimized out>, msgfile=<value
optimized out>,
eightbit=<value optimized out>) at ../smtp.c:215
#10 mutt_smtp_send (from=<value optimized out>, to=<value optimized
out>, cc=<value optimized out>,
bcc=<value optimized out>, msgfile=<value optimized out>,
eightbit=<value optimized out>) at ../smtp.c:301
#11 0x00000000004664d9 in send_message (flags=3, msg=0x27b9060,
tempfile=<value optimized out>, ctx=0x2784b20,
cur=0x274b1c0) at ../send.c:1031
#12 ci_send_message (flags=3, msg=0x27b9060, tempfile=<value optimized
out>, ctx=0x2784b20, cur=0x274b1c0)
at ../send.c:1777
#13 0x000000000044f6ce in mutt_pager (banner=<value optimized out>,
fname=<value optimized out>,
flags=<value optimized out>, extra=<value optimized out>) at
../pager.c:2564
#14 0x00000000004173f6 in mutt_display_message (cur=0x274b1c0) at
../commands.c:214
#15 0x0000000000422ab9 in mutt_index_menu () at ../curs_main.c:1226
#16 0x000000000043ceb1 in main (argc=42076624, argv=0x7fff02821238) at
../main.c:1026
No matter how many times I hit ^C, the syscall keeps on restarting.
Explicitly specifying "return -1" in frame 0 does what I wanted, which is to
print
SMTP session failed: write error
and provide a chance to change the message.
Thanks for mutt!
$ dpkg-query -W libgnutls26
libgnutls26 2.11.6-2
Mutt 1.5.21 (2010-09-15)
Copyright (C) 1996-2009 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.
System: Linux 2.6.38-rc6-00039-g61d2fb7 (x86_64)
ncurses: ncurses 5.8.20110307 (compiled with 5.7)
libidn: 1.20 (compiled with 1.18)
hcache backend: tokyocabinet 1.4.37
Compile options:
-DOMAIN
+DEBUG
-HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL -USE_FLOCK
+USE_POP +USE_IMAP +USE_SMTP
-USE_SSL_OPENSSL +USE_SSL_GNUTLS +USE_SASL +USE_GSS +HAVE_GETADDRINFO
+HAVE_REGCOMP -USE_GNU_REGEX
+HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET
+HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM
+CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME +CRYPT_BACKEND_GPGME
-EXACT_ADDRESS -SUN_ATTACHMENT
+ENABLE_NLS -LOCALES_HACK +COMPRESSED +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET
+HAVE_LANGINFO_YESEXPR
+HAVE_ICONV -ICONV_NONTRANS +HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"
MIXMASTER="mixmaster"
To contact the developers, please mail to <[email protected]>.
To report a bug, please visit http://bugs.mutt.org/.
misc/am-maintainer-mode
features/ifdef
features/xtitles
features/trash-folder
features/purge-message
features/imap_fast_trash
features/sensible_browser_position
features-old/patch-1.5.4.vk.pgp_verbose_mime
features/compressed-folders
features/compressed-folders.debian
debian-specific/Muttrc
debian-specific/Md.etc_mailname_gethostbyname.diff
debian-specific/use_usr_bin_editor.diff
debian-specific/correct_docdir_in_man_page.diff
debian-specific/dont_document_not_present_features.diff
debian-specific/document_debian_defaults
debian-specific/assumed_charset-compat
debian-specific/467432-write_bcc.patch
debian-specific/566076-build_doc_adjustments.patch
misc/define-pgp_getkeys_command.diff
misc/gpg.rc-paths
misc/smime.rc
upstream/531430-imapuser.patch
upstream/537818-emptycharset.patch
upstream/543467-thread-segfault.patch
upstream/542817-smimekeys-tmpdir.patch
upstream/537694-segv-imap-headers.patch
upstream/548577-gpgme-1.2.patch
upstream/553321-ansi-escape-segfault.patch
upstream/568295-references.patch
upstream/547980-smime_keys-chaining.patch
upstream/528233-readonly-open.patch
upstream/228671-pipe-mime.patch
upstream/383769-score-match.patch
upstream/578087-header-strchr.patch
upstream/603288-split-fetches.patch
upstream/537061-dont-recode-saved-attachments.patch
upstream/608706-fix-spelling-errors.patch
upstream/path_max
mutt.org