GNU bug report logs - #42160
Issue with Man-kill and background process.

Previous Next

Package: emacs;

Reported by: Ergus <spacibba <at> aol.com>

Date: Thu, 2 Jul 2020 02:24:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42160 in the body.
You can then email your comments to 42160 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#42160; Package emacs. (Thu, 02 Jul 2020 02:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ergus <spacibba <at> aol.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 02 Jul 2020 02:24:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ergus <spacibba <at> aol.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Issue with Man-kill and background process.
Date: Thu, 2 Jul 2020 04:23:09 +0200
When using man with big manuals (like gcc). There is an error when
trying to quit with k just after opening the manual.
This seems to be related with the formating process that is running in
the background.

To reproduce the issue:

emacs -Q
M-x toggle-debug-on-error RET
M-x man RET
gcc RET
k

And I get this error message:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
 Man-bgproc-filter(#<process man> "nt, there is no need to use address spaces like \"_...")


In GNU Emacs 28.0.50 (build 8, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars)
of 2020-06-30 built on ergus
Repository revision: 519e64f98140b984e10a9567017c7e5c4a81ff89
Repository branch: master
System Description: Debian GNU/Linux 10 (buster)

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Debug on Error enabled globally
Invoking man gcc in the background
next-line: End of buffer [4 times]
Entering debugger...

Configured using:
'configure --prefix=/home/ergus/.local/ --with-mailutils'

Configured features:
XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS
LUCID X11 XDBE XIM MODULES THREADS PDUMPER GMP

Important settings:
 value of $LANG: en_GB.UTF-8
 locale-coding-system: utf-8-unix

Major mode: Debugger

Minor modes in effect:
 tooltip-mode: t
 global-eldoc-mode: t
 electric-indent-mode: t
 mouse-wheel-mode: t
 tool-bar-mode: t
 menu-bar-mode: t
 file-name-shadow-mode: t
 global-font-lock-mode: t
 font-lock-mode: t
 auto-composition-mode: t
 auto-encryption-mode: t
 auto-compression-mode: t
 buffer-read-only: t
 line-number-mode: t
 transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util
rmail rmail-loaddefs text-property-search time-date subr-x seq mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
cl-print debug backtrace help-mode find-func cl-seq imenu man easymenu
cl-loaddefs cl-lib ansi-color cus-start cus-load term/tmux term/xterm
xterm byte-opt gv bytecomp byte-compile cconv tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo x-toolkit x multi-tty make-network-process
emacs)

Memory information:
((conses 16 62396 7811)
(symbols 48 7549 1)
(strings 32 19068 1764)
(string-bytes 1 597034)
(vectors 16 8450)
(vector-slots 8 93078 6052)
(floats 8 32 570)
(intervals 56 197 5)
(buffers 992 11))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42160; Package emacs. (Fri, 03 Jul 2020 08:03:01 GMT) Full text and rfc822 format available.

Message #8 received at 42160 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ergus <spacibba <at> aol.com>
Cc: 42160 <at> debbugs.gnu.org
Subject: Re: bug#42160: Issue with Man-kill and background process.
Date: Fri, 03 Jul 2020 11:02:08 +0300
> Date: Thu, 2 Jul 2020 04:23:09 +0200
> From: Ergus via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> When using man with big manuals (like gcc). There is an error when
> trying to quit with k just after opening the manual.
> This seems to be related with the formating process that is running in
> the background.
> 
> To reproduce the issue:
> 
> emacs -Q
> M-x toggle-debug-on-error RET
> M-x man RET
> gcc RET
> k
> 
> And I get this error message:
> 
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   Man-bgproc-filter(#<process man> "nt, there is no need to use address spaces like \"_...")

Thanks.  Does the patch below fix this?

diff --git a/lisp/man.el b/lisp/man.el
index 5278a1a..bc8fd45 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1392,7 +1392,7 @@ Man-bgproc-filter
 command is run.  Second argument STRING is the entire string of output."
   (save-excursion
     (let ((Man-buffer (process-buffer process)))
-      (if (null (buffer-name Man-buffer)) ;; deleted buffer
+      (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
 	  (set-process-buffer process nil)
 
 	(with-current-buffer Man-buffer
@@ -1426,7 +1426,7 @@ Man-bgproc-sentinel
 	(delete-buff nil)
 	message)
 
-    (if (null (buffer-name Man-buffer)) ;; deleted buffer
+    (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
 	(or (stringp process)
 	    (set-process-buffer process nil))
 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42160; Package emacs. (Fri, 10 Jul 2020 07:01:01 GMT) Full text and rfc822 format available.

Message #11 received at 42160 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: spacibba <at> aol.com
Cc: 42160 <at> debbugs.gnu.org
Subject: Re: bug#42160: Issue with Man-kill and background process.
Date: Fri, 10 Jul 2020 09:59:58 +0300
Ping!

> Date: Fri, 03 Jul 2020 11:02:08 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 42160 <at> debbugs.gnu.org
> 
> > Date: Thu, 2 Jul 2020 04:23:09 +0200
> > From: Ergus via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> > 
> > When using man with big manuals (like gcc). There is an error when
> > trying to quit with k just after opening the manual.
> > This seems to be related with the formating process that is running in
> > the background.
> > 
> > To reproduce the issue:
> > 
> > emacs -Q
> > M-x toggle-debug-on-error RET
> > M-x man RET
> > gcc RET
> > k
> > 
> > And I get this error message:
> > 
> > Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> >   Man-bgproc-filter(#<process man> "nt, there is no need to use address spaces like \"_...")
> 
> Thanks.  Does the patch below fix this?
> 
> diff --git a/lisp/man.el b/lisp/man.el
> index 5278a1a..bc8fd45 100644
> --- a/lisp/man.el
> +++ b/lisp/man.el
> @@ -1392,7 +1392,7 @@ Man-bgproc-filter
>  command is run.  Second argument STRING is the entire string of output."
>    (save-excursion
>      (let ((Man-buffer (process-buffer process)))
> -      (if (null (buffer-name Man-buffer)) ;; deleted buffer
> +      (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
>  	  (set-process-buffer process nil)
>  
>  	(with-current-buffer Man-buffer
> @@ -1426,7 +1426,7 @@ Man-bgproc-sentinel
>  	(delete-buff nil)
>  	message)
>  
> -    (if (null (buffer-name Man-buffer)) ;; deleted buffer
> +    (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
>  	(or (stringp process)
>  	    (set-process-buffer process nil))
>  
> 
> 
> 
> 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42160; Package emacs. (Sat, 18 Jul 2020 07:47:01 GMT) Full text and rfc822 format available.

Message #14 received at 42160 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: spacibba <at> aol.com
Cc: 42160 <at> debbugs.gnu.org
Subject: Re: bug#42160: Issue with Man-kill and background process.
Date: Sat, 18 Jul 2020 10:46:07 +0300
Ping! Ping!

Jimmy, could you please try this patch and see if it fixes your
problems?  If it does, I' d like to install it.

> Date: Fri, 10 Jul 2020 09:59:58 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 42160 <at> debbugs.gnu.org
> 
> Ping!
> 
> > Date: Fri, 03 Jul 2020 11:02:08 +0300
> > From: Eli Zaretskii <eliz <at> gnu.org>
> > Cc: 42160 <at> debbugs.gnu.org
> > 
> > > Date: Thu, 2 Jul 2020 04:23:09 +0200
> > > From: Ergus via "Bug reports for GNU Emacs,
> > >  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> > > 
> > > When using man with big manuals (like gcc). There is an error when
> > > trying to quit with k just after opening the manual.
> > > This seems to be related with the formating process that is running in
> > > the background.
> > > 
> > > To reproduce the issue:
> > > 
> > > emacs -Q
> > > M-x toggle-debug-on-error RET
> > > M-x man RET
> > > gcc RET
> > > k
> > > 
> > > And I get this error message:
> > > 
> > > Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> > >   Man-bgproc-filter(#<process man> "nt, there is no need to use address spaces like \"_...")
> > 
> > Thanks.  Does the patch below fix this?
> > 
> > diff --git a/lisp/man.el b/lisp/man.el
> > index 5278a1a..bc8fd45 100644
> > --- a/lisp/man.el
> > +++ b/lisp/man.el
> > @@ -1392,7 +1392,7 @@ Man-bgproc-filter
> >  command is run.  Second argument STRING is the entire string of output."
> >    (save-excursion
> >      (let ((Man-buffer (process-buffer process)))
> > -      (if (null (buffer-name Man-buffer)) ;; deleted buffer
> > +      (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
> >  	  (set-process-buffer process nil)
> >  
> >  	(with-current-buffer Man-buffer
> > @@ -1426,7 +1426,7 @@ Man-bgproc-sentinel
> >  	(delete-buff nil)
> >  	message)
> >  
> > -    (if (null (buffer-name Man-buffer)) ;; deleted buffer
> > +    (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
> >  	(or (stringp process)
> >  	    (set-process-buffer process nil))
> >  
> > 
> > 
> > 
> > 
> 
> 
> 
> 




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 25 Jul 2020 07:17:02 GMT) Full text and rfc822 format available.

Notification sent to Ergus <spacibba <at> aol.com>:
bug acknowledged by developer. (Sat, 25 Jul 2020 07:17:02 GMT) Full text and rfc822 format available.

Message #19 received at 42160-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: spacibba <at> aol.com
Cc: 42160-done <at> debbugs.gnu.org
Subject: Re: bug#42160: Issue with Man-kill and background process.
Date: Sat, 25 Jul 2020 10:16:38 +0300
> Date: Sat, 18 Jul 2020 10:46:07 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 42160 <at> debbugs.gnu.org
> 
> Ping! Ping!
> 
> Jimmy, could you please try this patch and see if it fixes your
> problems?  If it does, I' d like to install it.

No comments, so I installed the changes, and I'm closing this bug
report.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42160; Package emacs. (Sat, 25 Jul 2020 11:17:02 GMT) Full text and rfc822 format available.

Message #22 received at 42160 <at> debbugs.gnu.org (full text, mbox):

From: Ergus <spacibba <at> aol.com>
To: "eliz <at> gnu.org" <eliz <at> gnu.org>
Cc: "42160 <at> debbugs.gnu.org" <42160 <at> debbugs.gnu.org>
Subject: Re: bug#42160: closed (Re: bug#42160: Issue with Man-kill and
 background process.)
Date: Sat, 25 Jul 2020 11:16:27 +0000 (UTC)
[Message part 1 (text/plain, inline)]
Hi Eli:
 Sorry for not replying your messages on time. I just checked that all your previous messages went to the Spam folder... (except the closing bug report one) I just fixed that. 

Your patch seems to fix the issue successfully. 

Very thanks
Best



-----Original Message-----
From: GNU bug Tracking System <help-debbugs <at> gnu.org>
To: Ergus <spacibba <at> aol.com>
Sent: Sat, Jul 25, 2020 9:17 am
Subject: bug#42160: closed (Re: bug#42160: Issue with Man-kill and background process.)

Your bug report

#42160: Issue with Man-kill and background process.

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 42160 <at> debbugs.gnu.org.

-- 
42160: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42160
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems> Date: Sat, 18 Jul 2020 10:46:07 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 42160 <at> debbugs.gnu.org
> 
> Ping! Ping!
> 
> Jimmy, could you please try this patch and see if it fixes your
> problems?  If it does, I' d like to install it.

No comments, so I installed the changes, and I'm closing this bug
report.


When using man with big manuals (like gcc). There is an error when
trying to quit with k just after opening the manual.
This seems to be related with the formating process that is running in
the background.

To reproduce the issue:

emacs -Q
M-x toggle-debug-on-error RET
M-x man RET
gcc RET
k

And I get this error message:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  Man-bgproc-filter(#<process man> "nt, there is no need to use address spaces like \"_...")


In GNU Emacs 28.0.50 (build 8, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars)
 of 2020-06-30 built on ergus
Repository revision: 519e64f98140b984e10a9567017c7e5c4a81ff89
Repository branch: master
System Description: Debian GNU/Linux 10 (buster)

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Debug on Error enabled globally
Invoking man gcc in the background
next-line: End of buffer [4 times]
Entering debugger...

Configured using:
 'configure --prefix=/home/ergus/.local/ --with-mailutils'

Configured features:
XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS
LUCID X11 XDBE XIM MODULES THREADS PDUMPER GMP

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Debugger

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util
rmail rmail-loaddefs text-property-search time-date subr-x seq mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
cl-print debug backtrace help-mode find-func cl-seq imenu man easymenu
cl-loaddefs cl-lib ansi-color cus-start cus-load term/tmux term/xterm
xterm byte-opt gv bytecomp byte-compile cconv tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo x-toolkit x multi-tty make-network-process
emacs)

Memory information:
((conses 16 62396 7811)
 (symbols 48 7549 1)
 (strings 32 19068 1764)
 (string-bytes 1 597034)
 (vectors 16 8450)
 (vector-slots 8 93078 6052)
 (floats 8 32 570)
 (intervals 56 197 5)
 (buffers 992 11))



[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 22 Aug 2020 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 259 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.