[Top][All Lists]

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

Re: GC crashes

From: Stefan Monnier
Subject: Re: GC crashes
Date: 03 Dec 2003 12:25:48 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> If the composition hash table is weak, GC can remove
> key-value pair from the table when a text that contains key
> as `composition' property is deleted (for instance by
> killing a buffer).

I guess strictly speaking, the :weak arg should not be t but `key' so
that only the key part is weak, but that does not explain the crash.

> The crash can be preproduced by this Emacs
>     GNU Emacs (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
> by doing this (of course by undoing my fix):

> C-u C-h t thai RET
> C-v (repeatedly until you reach the bottom)
> C-x k RET
> M-x garbage-collect RET
> C-u C-h t thai RET
> C-v (repeatedly)

> You'll encounter segfault before you reach the bottom.

I don't get the crash (with an Emacs checked out two weeks ago from CVS).
Maybe it's because I don't have the relevant fonts ?

> This segfault always happens while marking a buffer that
> contains `composition' property (in the above case, it's
> TUTORIAL.th).  So, I doubted the composition hash table and
> made it strong, then the segfault disappeared.

I suspect your fix just hides the underlying problem.


reply via email to

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