[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#3521: 23.0.94; process-send-region errors / bug#2272 strikes again

From: Tassilo Horn
Subject: bug#3521: 23.0.94; process-send-region errors / bug#2272 strikes again
Date: Wed, 10 Jun 2009 12:39:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux)

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Evaluating this code once again triggers an error (I already reported it
in bug 2272 some times ago, and it was fixed and the bug closed):

--8<---------------cut here---------------start------------->8---
  (setq proctest
        (start-process "cat" (get-buffer-create "cat") "/bin/cat"))
    (dotimes (dummy 999999)
       (concat (number-to-string (random))
               (number-to-string (random))
               (number-to-string (random))
               (number-to-string (random))
    (process-send-region proctest (point-min) (point-max)))
  (delete-process proctest))
--8<---------------cut here---------------end--------------->8---

Here's the backtrace:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (file-error "writing to process" "bad address" 
#<process cat<2>>)
  process-send-region(#<process cat<2>> 1 75145548)
  (progn (dotimes (dummy 999999) (insert ...)) (process-send-region proctest 
(point-min) (point-max)))
  (unwind-protect (progn (dotimes ... ...) (process-send-region proctest ... 
...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... ...) 
(and ... ...)))
  (with-current-buffer temp-buffer (unwind-protect (progn ... ...) (and ... 
  (let ((temp-buffer ...)) (with-current-buffer temp-buffer (unwind-protect ... 
  (with-temp-buffer (dotimes (dummy 999999) (insert ...)) (process-send-region 
proctest (point-min) (point-max)))
  (progn (setq proctest (start-process "cat" ... "/bin/cat")) (with-temp-buffer 
(dotimes ... ...) (process-send-region proctest ... ...)) (delete-process 
  eval((progn (setq proctest (start-process "cat" ... "/bin/cat")) 
(with-temp-buffer (dotimes ... ...) (process-send-region proctest ... ...)) 
(delete-process proctest)))
  call-interactively(eval-last-sexp nil nil)
--8<---------------cut here---------------end--------------->8---

Again, this bit me when Gnus tried to upload a sent message containing
some PDF attachments (~2MB) into an IMAP folder, and again this mail is
lost... :-(

This time I cannot reproduce this easily with emacs -Q, but with my
usual config it always happens.  But the test case above uses only very
low-level functions which shouldn't be influenced by any customization
anyway, right?  At none of them is redefined or adviced by me...

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.0.94/etc/DEBUG for instructions.

In GNU Emacs (x86_64-pc-linux-gnu, GTK+ Version 2.16.1)
 of 2009-06-08 on thinkpad
Windowing system distributor `The X.Org Foundation', version 11.0.10503000
configured using `configure  '--prefix=/usr' '--host=x86_64-pc-linux-gnu' 
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' 
'--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib64' 
'--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' 
'--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' 
'--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' 
'--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=gtk' 
'--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-gpm' 
'--with-dbus' '--build=x86_64-pc-linux-gnu' 'build_alias=x86_64-pc-linux-gnu' 
'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-g -ggdb -O1 -pipe' 'LDFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-topic-mode: t
  gnus-undo-mode: t
  rcirc-track-minor-mode: t
  hl-line-mode: t
  yas/minor-mode: t
  recentf-mode: t
  window-number-meta-mode: t
  window-number-mode: t
  exec-abbrev-cmd-mode: t
  savehist-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<down-mouse-2> <mouse-2> <left> C-x C-e <up> C-SPC 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> M-w q M-x g <return> 
<return> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> ^ q <return> y <return> 
<down> <return> <down> <return> <down> <return> <down> 
<return> q <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> q M-x r e b <r

Recent messages:
20090610T122057.363> nnimap: Updating info for nnimap+Uni:ml/agebert...
20090610T122057.371> nnimap: Updating info for nnimap+Uni:ml/agebert...done
20090610T122057.372> Fetching headers for nnimap+Uni:ml/agebert...
20090610T122057.377> Fetching headers for nnimap+Uni:ml/agebert...done
20090610T122057.379> Generating summary...
20090610T122057.379> Generating summary...done
Adding "Re: [AG-Ebert] [Fwd:  Schreckensmeldung vom Uni-CMS]" to field 
20090610T122134.208> Exiting summary buffer and applying spam rules
20090610T122134.216> nnimap: Setting marks in ml/agebert...
20090610T122134.218> nnimap: Setting marks in ml/agebert...done

     My software never has bugs. It just develops random features.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]