sed crash

Kevin Scannell <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <CAGqmpFUUFL2mPoFYhBy3fN7MDuM5d-ajDVwxEsyP+f8_4F4fqA@mail.gmail.com>
I have a simple test case that causes GNU sed to crash on Unicode text
in Myanmar script.  A sample input file is attached.

$ cat sedbug.txt | sed 's/[^x]x//'
sed: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr)
(((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct
malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size)
>= (unsigned long)((((__builtin_offsetof (struct malloc_chunk,
fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t)))
- 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end &
pagemask) == 0)' failed.


$ sed --version
GNU sed version 4.2.1
...

$ uname -a
Linux borel 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:42:16 UTC
2012 x86_64 x86_64 x86_64 GNU/Linux


Kevin
sedbug.txt (text/plain, 25 B)
ကျွန်ုပ်
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.