unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Progress on bug#3521? mode-line updates break process-send-region
@ 2009-06-28  9:46 Tassilo Horn
  2009-06-28 14:53 ` Chong Yidong
  0 siblings, 1 reply; 8+ messages in thread
From: Tassilo Horn @ 2009-06-28  9:46 UTC (permalink / raw)
  To: emacs-devel

Hi all,

did anyone have a look at this bug?  IMO it should be fixed before 23.1
is released.

I can still reproduce it using emacs -Q (GNU Emacs 23.1.50.1
(x86_64-pc-linux-gnu, GTK+ Version 2.16.1) of 2009-06-28 on localhost)
updated and compiled 20 minutes ago with the recipe I posted in the bug
report.

Bye,
Tassilo




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Progress on bug#3521? mode-line updates break process-send-region
  2009-06-28  9:46 Progress on bug#3521? mode-line updates break process-send-region Tassilo Horn
@ 2009-06-28 14:53 ` Chong Yidong
  2009-06-28 15:56   ` Tassilo Horn
  0 siblings, 1 reply; 8+ messages in thread
From: Chong Yidong @ 2009-06-28 14:53 UTC (permalink / raw)
  To: emacs-devel

Tassilo Horn <tassilo@member.fsf.org> writes:

> did anyone have a look at this bug?  IMO it should be fixed before 23.1
> is released.
>
> I can still reproduce it using emacs -Q (GNU Emacs 23.1.50.1
> (x86_64-pc-linux-gnu, GTK+ Version 2.16.1) of 2009-06-28 on localhost)
> updated and compiled 20 minutes ago with the recipe I posted in the bug
> report.

Please do a search of prior revisions and find the change where this
problem first arose.  Thanks.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Progress on bug#3521? mode-line updates break process-send-region
  2009-06-28 14:53 ` Chong Yidong
@ 2009-06-28 15:56   ` Tassilo Horn
  2009-06-28 16:07     ` Chong Yidong
  0 siblings, 1 reply; 8+ messages in thread
From: Tassilo Horn @ 2009-06-28 15:56 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

Chong Yidong <cyd@stupidchicken.com> writes:

Hi Chong,

>> did anyone have a look at this bug?  IMO it should be fixed before
>> 23.1 is released.
>>
>> I can still reproduce it using emacs -Q (GNU Emacs 23.1.50.1
>> (x86_64-pc-linux-gnu, GTK+ Version 2.16.1) of 2009-06-28 on
>> localhost) updated and compiled 20 minutes ago with the recipe I
>> posted in the bug report.
>
> Please do a search of prior revisions and find the change where this
> problem first arose.  Thanks.

I'll see what I can do.  I've tried with emacs 22.3, and there I cannot
reproduce it.  So it seems to be introduced some times back in the 23
branch.  I remember, I've suffered from it at least about one year ago,
but I always suspected my local imap server (dovecot)...

Bye,
Tassilo




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Progress on bug#3521? mode-line updates break process-send-region
  2009-06-28 15:56   ` Tassilo Horn
@ 2009-06-28 16:07     ` Chong Yidong
  2009-06-28 20:15       ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Chong Yidong @ 2009-06-28 16:07 UTC (permalink / raw)
  To: emacs-devel; +Cc: 3521

Tassilo Horn <tassilo@member.fsf.org> writes:

>> Please do a search of prior revisions and find the change where this
>> problem first arose.  Thanks.
>
> I'll see what I can do.  I've tried with emacs 22.3, and there I cannot
> reproduce it.  So it seems to be introduced some times back in the 23
> branch.

Note, by the way, that your test case does something that you maybe did
not intend:

> (progn
>   (setq proctest
> 	(start-process "cat" (get-buffer-create "cat") "/bin/cat"))
>   (with-temp-buffer
>     (dotimes (dummy 999999)
>       (insert
>        (concat (number-to-string (random))
> 	       (number-to-string (random))
> 	       (number-to-string (random))
> 	       (number-to-string (random))
> 	       "\n")))
>     (process-send-region proctest (point-min) (point-max)))
>   (delete-process proctest))

It keeps growing the temporary buffer, and eventually you're sending
extremely large strings to the inferior process.

> Debugger entered--Lisp error: (file-error "writing to process" "bad address" #<process cat<2>>)
>   process-send-region(#<process cat<2>> 1 75145548)

On my 32-bit machine, the error occurs earlier.  But If I insert an
`erase-buffer' call into your loop, so that the size of the temporary
buffer is bounded, Emacs completes the 999999-iteration loop without any
error.

If there's any connection with mode-line updates, I have not been able
to reproduce it.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Progress on bug#3521? mode-line updates break process-send-region
  2009-06-28 16:07     ` Chong Yidong
@ 2009-06-28 20:15       ` Andreas Schwab
  2009-06-28 20:39         ` Tassilo Horn
  2009-06-28 20:58         ` bug#3521: " David Engster
  0 siblings, 2 replies; 8+ messages in thread
From: Andreas Schwab @ 2009-06-28 20:15 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 3521, emacs-devel

Chong Yidong <cyd@stupidchicken.com> writes:

> On my 32-bit machine, the error occurs earlier.  But If I insert an
> `erase-buffer' call into your loop, so that the size of the temporary
> buffer is bounded, Emacs completes the 999999-iteration loop without any
> error.

The whole point of the test case is the big size of the buffer string.
This is a typical symptom of a GC bug.  I have checked in a fix.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Progress on bug#3521? mode-line updates break process-send-region
  2009-06-28 20:15       ` Andreas Schwab
@ 2009-06-28 20:39         ` Tassilo Horn
  2009-06-28 20:58         ` bug#3521: " David Engster
  1 sibling, 0 replies; 8+ messages in thread
From: Tassilo Horn @ 2009-06-28 20:39 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Chong Yidong, emacs-devel, 3521

Andreas Schwab <schwab@linux-m68k.org> writes:

Hi Andreas,

>> On my 32-bit machine, the error occurs earlier.  But If I insert an
>> `erase-buffer' call into your loop, so that the size of the temporary
>> buffer is bounded, Emacs completes the 999999-iteration loop without
>> any error.
>
> The whole point of the test case is the big size of the buffer string.
> This is a typical symptom of a GC bug.  I have checked in a fix.

Wow, this was quick.  Tomorrow, I'll test it and report back if the bug
is gone.

Chong wrote:
> If there's any connection with mode-line updates, I have not been able
> to reproduce it.

I already reported the bug as #2272, and Andreas checked in a fix for
it.  At that time, I couldn't reproduce it, but out of sudden, it hit me
again, and David Engster found out that it seems to be triggered when
the mode-line is updated.  He got the error because of `display-time'
and I got it when `rcirc-track-minor-mode' updated the mode-line.  So
since Andreas last fix, the update of the mode-line was needed for me to
trigger the bug again.

Bye,
Tassilo




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#3521: Progress on bug#3521? mode-line updates break process-send-region
  2009-06-28 20:15       ` Andreas Schwab
  2009-06-28 20:39         ` Tassilo Horn
@ 2009-06-28 20:58         ` David Engster
  2009-06-29  6:56           ` Tassilo Horn
  1 sibling, 1 reply; 8+ messages in thread
From: David Engster @ 2009-06-28 20:58 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Chong Yidong, emacs-devel, 3521

Andreas Schwab <schwab@linux-m68k.org> writes:
> Chong Yidong <cyd@stupidchicken.com> writes:
>> On my 32-bit machine, the error occurs earlier.  But If I insert an
>> `erase-buffer' call into your loop, so that the size of the temporary
>> buffer is bounded, Emacs completes the 999999-iteration loop without any
>> error.
>
> The whole point of the test case is the big size of the buffer string.
> This is a typical symptom of a GC bug.  I have checked in a fix.

Thank you! The bug is fixed for me.

It doesn't really matter anymore, but for what it's worth, I think this
bug was introduced with the merge of the unicode branch on
2008-02-01. But just when I wanted to dig further, Andreas checked in
the fix. :-)

-David





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Progress on bug#3521? mode-line updates break process-send-region
  2009-06-28 20:58         ` bug#3521: " David Engster
@ 2009-06-29  6:56           ` Tassilo Horn
  0 siblings, 0 replies; 8+ messages in thread
From: Tassilo Horn @ 2009-06-29  6:56 UTC (permalink / raw)
  To: David Engster; +Cc: Chong Yidong, 3521, Andreas Schwab, emacs-devel

David Engster <deng@randomsample.de> writes:

Hi!

>> The whole point of the test case is the big size of the buffer
>> string.  This is a typical symptom of a GC bug.  I have checked in a
>> fix.
>
> Thank you! The bug is fixed for me.

I cannot reproduce it anymore, too.  Thanks Andreas!

Bye,
Tassilo




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-06-29  6:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-28  9:46 Progress on bug#3521? mode-line updates break process-send-region Tassilo Horn
2009-06-28 14:53 ` Chong Yidong
2009-06-28 15:56   ` Tassilo Horn
2009-06-28 16:07     ` Chong Yidong
2009-06-28 20:15       ` Andreas Schwab
2009-06-28 20:39         ` Tassilo Horn
2009-06-28 20:58         ` bug#3521: " David Engster
2009-06-29  6:56           ` Tassilo Horn

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).