bug-gnu-utils
[Top][All Lists]
Advanced

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

sed crash


From: Kevin Scannell
Subject: sed crash
Date: Mon, 28 Jan 2013 22:05:59 -0600

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

Attachment: sedbug.txt
Description: Text document


reply via email to

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