Subject: Re: bug#52461: spontaneous crash with portable dumper

From: Eli Zaretskii <[email-masked]>
Date: Mon, 13 Dec 2021 15:31:09 +0200

> Date: Mon, 13 Dec 2021 10:38:28 +0900
> From: YAMAMOTO Mitsuharu <[email-masked]>
> 
> (lldb) p cs_i
> (int) $2 = 183
> (lldb) p charset_table_used
> (int) $3 = 183
> 
> Because cs_i >= charset_table_used, charset_table[cs_i] (i.e., *cs)
> contains uninitialized contents.

So we somehow have a charset that is not in charset_table, is that
what you are saying?  Because otherwise how could its ID be beyond the
table, when define-charset-internal enlarges the table as needed?

Any idea what charset is that, and where it is added/loaded?

FWIW, on my system, charset_table_used is 179, so maybe the mac port
defines some additional charsets?

Thanks.