Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sed crash

6 views
Skip to first unread message

Kevin Scannell

unread,
Jan 28, 2013, 11:05:59 PM1/28/13
to bug-gn...@gnu.org
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

Paolo Bonzini

unread,
Jan 29, 2013, 6:46:32 AM1/29/13
to Kevin Scannell, bug-gn...@gnu.org
Il 29/01/2013 05:05, Kevin Scannell ha scritto:
> I have a simple test case that causes GNU sed to crash on Unicode text
> in Myanmar script. A sample input file is attached.

Thanks for the simple testcase, I reported it to upstream GNU libc.

Paolo


0 new messages