Bug#685344: devscripts: "bts show --mbox" cannot resume after a Ctrl-Z

2017-01-11 Thread Vincent Lefevre
Control: retitle -1 devscripts: "bts show --mbox" cannot resume after a Ctrl-Z 
with mutt
Control: tags -1 - moreinfo

On 2017-01-11 14:44:38 +0100, Vincent Lefevre wrote:
> On 2017-01-11 19:23:38 +1100, Ben Finney wrote:
> > The ‘fg’ command simply resumes the MUA (in my case, ‘mutt’) as expected.
> 
> I also use mutt.

To make sure not to depend on a specific configuration:

  bts show --mailreader="/usr/bin/mutt -F /dev/null -f %s" --mbox 622231

yields the problem from both bash and zsh. Note also that I have
/bin/sh -> dash.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#685344: devscripts: "bts show --mbox" cannot resume after a Ctrl-Z

2017-01-11 Thread Vincent Lefevre
Control: found -1 2.16.13
Control: found -1 2.17.0

On 2017-01-11 19:23:38 +1100, Ben Finney wrote:
> This does not happen for me when I try (using ‘devscripts/2.16.13’).

Note that the problem does not always occur. But when it occurs,
in general, Mutt no longer gets the keys from the keyboard.

> The ‘fg’ command simply resumes the MUA (in my case, ‘mutt’) as expected.

I also use mutt.

> Can you try reproducing this:
> 
> * With the current ‘devscripts’ version?

Same problem with 2.16.13 and 2.17.0.

> * Using each of Zsh and Bash?

Same problem from bash and zsh.

I've also tried from dash, but after Ctrl-Z, dash no longer receives
any key from the keyboard.

> * Using a different MUA?

No problems if I use:

  bts show --mailreader="less %s" --mbox 622231

or

  bts show --mailreader="lynx -force_html %s" --mbox 622231

Something interesting: when I type Ctrl-Z after running Mutt, zsh
mentions a STOP signal instead of the usual TSTP. This is due to:

case SIGTSTP: /* user requested a suspend */
  if (!option (OPTSUSPEND))
break;
  IsEndwin = isendwin ();
  curs_set (1);
  if (!IsEndwin)
endwin ();
  kill (0, SIGSTOP);

But lynx also needs to restore the terminal state, and zsh shows
TSTP, though lynx has:

kill(getpid(), SIGSTOP);

Well, this may not matter. But I wonder whether the "kill (0, SIGSTOP);"
(i.e. SIGSTOP sent to the progress group) is the problem with Mutt.
Doesn't this mean that the parent processes "sh" and "perl bts",
which don't trap SIGTSTP, can get stopped twice? Since Mutt is
presumably the only process to trap SIGTSTP, it should use getpid()
like lynx, IMHO. Now, I've rebuilt mutt with getpid() instead of 0,
and this doesn't make the problem disappear.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#685344: devscripts: "bts show --mbox" cannot resume after a Ctrl-Z

2017-01-11 Thread Ben Finney
Control: tags -1 + moreinfo

On 20-Aug-2012, Vincent Lefevre wrote:

> A "bts show --mbox " cannot resume after a Ctrl-Z.
> To reproduce the bug.
> 
> 1. Type "bts show --mbox 622231".
> 2. Ctrl-Z
> 3. Type "fg".
> 
> This shows another "zsh: suspended (signal)  bts show --mbox 622231",
> as if a second Ctrl-Z were sent.

This does not happen for me when I try (using ‘devscripts/2.16.13’).

The ‘fg’ command simply resumes the MUA (in my case, ‘mutt’) as expected.

Can you try reproducing this:

* With the current ‘devscripts’ version?

* Using each of Zsh and Bash?

* Using a different MUA?

-- 
 \“Good morning, Pooh Bear”, said Eeyore gloomily. “If it is a |
  `\   good morning”, he said. “Which I doubt”, said he. —A. A. Milne, |
_o__)_Winnie-the-Pooh_ |
Ben Finney 


signature.asc
Description: PGP signature


Bug#685344: devscripts: bts show --mbox cannot resume after a Ctrl-Z

2012-08-19 Thread Vincent Lefevre
Package: devscripts
Version: 2.12.1
Severity: minor

A bts show --mbox bugnumber cannot resume after a Ctrl-Z.
To reproduce the bug.

1. Type bts show --mbox 622231.
2. Ctrl-Z
3. Type fg.

This shows another zsh: suspended (signal)  bts show --mbox 622231,
as if a second Ctrl-Z were sent.

If I type fg again, then Mutt is resumed, but it can no longer
receive normal input from the keyboard: the characters typed on
the keyboard just appear in the terminal. However [Enter] and
[Backspace] seem to work, but alone this is quite useless.

-- Package-specific info:

--- /etc/devscripts.conf ---

--- ~/.devscripts ---
Not present

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev  1.16.8
ii  libc6 2.13-35
ii  perl  5.14.2-12
ii  python2.7.3-2

Versions of packages devscripts recommends:
ii  at3.1.13-2
ii  curl  7.27.0-1
ii  dctrl-tools   2.22.2
ii  debian-keyring2012.06.01
ii  dput  0.9.6.3
ii  equivs2.0.9
ii  fakeroot  1.18.4-2
ii  gnupg 1.4.12-4+b1
ii  libcrypt-ssleay-perl  0.58-1
ii  libdistro-info-perl   0.10
ii  libjson-perl  2.53-1
ii  libparse-debcontrol-perl  2.005-3
ii  libsoap-lite-perl 0.714-1
ii  liburi-perl   1.60-1
ii  libwww-perl   6.04-1
ii  lintian   2.5.10.1
ii  man-db2.6.2-1
ii  patch 2.6.1-3
ii  patchutils0.3.2-1.1
ii  python-debian 0.1.21
ii  python-magic  5.11-2
ii  sensible-utils0.0.7
ii  strace4.5.20-2.3
ii  unzip 6.0-7
ii  wdiff 1.1.2-1
ii  wget  1.14-1
ii  xz-utils  5.1.1alpha+20120614-1

Versions of packages devscripts suggests:
ii  bsd-mailx [mailx]8.1.2-0.2006cvs-1
ii  build-essential  11.5
pn  cvs-buildpackage none
pn  devscripts-elnone
ii  gnuplot  4.6.0-8
ii  libauthen-sasl-perl  2.1500-1
ii  libfile-desktopentry-perl0.04-3
pn  libnet-smtp-ssl-perl none
ii  libterm-size-perl0.207-1
ii  libtimedate-perl 1.2000-1
ii  libyaml-syck-perl1.20-1
ii  mutt 1.5.21-6.1
ii  openssh-client [ssh-client]  1:6.0p1-2
ii  svn-buildpackage 0.8.5
ii  w3m  0.5.3-8

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#685344: devscripts: bts show --mbox cannot resume after a Ctrl-Z

2012-08-19 Thread Vincent Lefevre
severity 685344 important
thanks

On 2012-08-20 02:30:00 +0200, Vincent Lefevre wrote:
 If I type fg again, then Mutt is resumed, but it can no longer
 receive normal input from the keyboard: the characters typed on
 the keyboard just appear in the terminal. However [Enter] and
 [Backspace] seem to work, but alone this is quite useless.

Actually this is much worse than that: arbitrary Mutt commands seem
to be executed, without having the way to notice them. I've a mail
related file that got corrupted because of that (its timestamp
corresponds to the time when I was doing the test).

-- 
Vincent Lefèvre vinc...@vinc17.net - Web: http://www.vinc17.net/
100% accessible validated (X)HTML - Blog: http://www.vinc17.net/blog/
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org