#3507: Mutt ignores SIGWINCH when built with --enable-imap
--------------------+-------------------------------------------------------
 Reporter:  vinc17  |       Owner:  mutt-dev
     Type:  defect  |      Status:  new     
 Priority:  minor   |   Milestone:          
Component:  mutt    |     Version:          
 Keywords:          |  
--------------------+-------------------------------------------------------
 When I configure Mutt with "./configure --enable-imap", it ignores
 SIGWINCH under some occasions (see below how to reproduce the bug). No
 such problem when I just do "./configure". It seems that this problem is
 recent.

 1. Open a 80x40 xterm.[[BR]]
 2. Run screen in it.[[BR]]
 3. Run "mutt -F /dev/null".[[BR]]
 4. Detach the session.[[BR]]
 5. Open a 80x60 xterm.[[BR]]
 6. Reattach the session with "screen -r".

 Result: There are 20 blank lines above the help line.

 According to strace, Mutt received a SIGWINCH as expected, but it has
 apparently been ignored.

 {{{
 [...]
 13:02:41 stat("/home/vlefevre/postponed", 0x7fff8f92ef10) = -1 ENOENT (No
 such file or directory)
 13:02:41 write(1, "\33[H\33[39;49m\33[37m\33[40m\33[7mq:Quit "..., 220) =
 220
 13:02:41 rt_sigaction(SIGINT, {0x464ff0, [], SA_RESTORER, 0x7f045d0161e0},
 NULL, 8) = 0
 13:02:41 write(1, "\33[?1h\33=", 7)     = 7
 13:02:41 poll([{fd=0, events=POLLIN}], 1, 300000) = ?
 ERESTART_RESTARTBLOCK (To be restarted)
 13:02:51 --- SIGWINCH (Window changed) @ 0 (0) ---
 13:02:51 rt_sigreturn(0x1c)             = -1 EINTR (Interrupted system
 call)
 13:02:51 rt_sigaction(SIGINT, {0x464ff0, [], SA_RESTORER|SA_RESTART,
 0x7f045d0161e0}, NULL, 8) = 0
 13:02:51 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig
 -icanon -echo ...}) = 0
 13:02:51 rt_sigaction(SIGINT, {0x464ff0, [], SA_RESTORER, 0x7f045d0161e0},
 NULL, 8) = 0
 13:02:51 poll([{fd=0, events=POLLIN}], 1, 300000) = 1 ([{fd=0,
 revents=POLLIN}])
 [...]
 }}}

 This can also sometimes be reproduced when increasing the xterm window
 (height or width).

 {{{
 Mutt 1.5.21+22 (8d0281f79b21) (2010-12-30)
 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.37-2-amd64 (x86_64)
 ncurses: ncurses 5.8.20110307 (compiled with 5.8)
 libidn: 1.20 (compiled with 1.20)
 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  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET
 +HAVE_LANGINFO_YESEXPR
 +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  -USE_HCACHE
 ISPELL="/usr/bin/ispell"
 SENDMAIL="/usr/sbin/sendmail"
 MAILPATH="/var/mail"
 PKGDATADIR="/usr/local/share/mutt"
 SYSCONFDIR="/usr/local/etc"
 EXECSHELL="/bin/sh"
 -MIXMASTER
 To contact the developers, please mail to <[email protected]>.
 To report a bug, please visit http://bugs.mutt.org/.
 }}}

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3507>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to