Subject: bug#18438: 24.4.50; assertion failed in bidi.c

From: Eli Zaretskii <[email-masked]>
Date: Wed, 22 Oct 2014 18:24:13 +0300

> Date: Wed, 22 Oct 2014 17:16:36 +1300
> From: [email-masked]
> 
> Another full backtrace (of all threads).
> 
> alloc.c:2830: Emacs fatal error: assertion failed: VBLOCK_BYTES_MIN <= 
> nbytes && nbytes <= VBLOCK_BYTES_MAX

And another bogus assertion:

> #1  0x00000001005b0375 in die (msg=0x100a3a368 <STRING_BYTES_MAX+296> "VBLOCK_BYTES_MIN <= nbytes && nbytes <= VBLOCK_BYTES_MAX", file=0x100a3a020 <DEFAULT_REHASH_SIZE+40> "alloc.c", line=2830) at alloc.c:6833
> No locals.
> #2  0x00000001005a8f2d in allocate_vector_from_block (nbytes=112) at alloc.c:2830
>         vector = 0x823f50
>         block = 0x1
>         index = 25769803776
>         restbytes = 8536096
> #3  0x00000001005a9a49 in allocate_vectorlike (len=13) at alloc.c:3073
>         nbytes = 112
>         p = 0x824240

'nbytes' is 112, which is perfectly within valid limits
(VBLOCK_BYTES_MIN is 8 and VBLOCK_BYTES_MAX is around 2000).