`<div dir="ltr">Yes. And it also reproduces with a simple transliteration. But it does go awry only with /usr/bin/sed, not with /usr/gnu/bin/sed. Replacements also work just fine.<div><br></div><div><div>root@bloody:/var/cores# ls</div><div>root@bloody:/var/cores# env</div><div>HZ=</div><div>SHELL=/usr/bin/bash</div><div>TERM=xterm</div><div>LC_ALL=en_US.UTF-8</div><div>PAGER=/usr/bin/less -ins</div><div>MAIL=/var/mail/root</div><div>PATH=/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin</div><div>PWD=/var/cores</div><div>LANG=en_US.UTF-8</div><div>TZ=Europe/Bucharest</div><div>SHLVL=1</div><div>HOME=/root</div><div>LOGNAME=root</div><div>OLDPWD=/root</div><div>_=/usr/gnu/bin/env</div><div>root@bloody:/var/cores# uname -a</div><div>SunOS bloody 5.11 omnios-fa65b1e i86pc i386 i86pc</div><div>root@bloody:/var/cores# <b>echo "x" | /usr/bin/sed 'y%,%,%'</b></div><div>Segmentation Fault (core dumped)</div><div>root@bloody:/var/cores# ls</div><div>core core.sed.971</div><div>root@bloody:/var/cores# pstack core.sed.971</div><div>core 'core.sed.971' of 971: /usr/bin/sed y%,%,%</div><div> feeb67b9 _UTF8_mbsnrtowcs (0, 80474fc, ffffffff, 0, 0, 3) + 2d</div><div> feea8d8b mbsrtowcs_l (0, 80474fc, 0, 0, fee01a00, 8067d66) + 35</div><div> feea8dcf mbsrtowcs (0, 80474fc, 0, 0, 0, 0) + 42</div><div> 08053f2b compile_tr (8067d61, 806a274, 0, fee10268, 58, fee10048) + 132</div><div> 08054939 compile_stream (806a260, 8047e18, 8047dd8, 80531a8, 1, 8047ee1) + 7b8</div><div> 08054af0 compile (0, 3, fef6ec80, 0, 100, feffb0a4) + 10</div><div> 080531b3 main (8047dcc, fef72668, 8047e0c, 805251b, 2, 8047e18) + 1a8</div><div> 0805251b _start (2, 8047ed4, 8047ee1, 0, 8047ee8, 8047eec) + 83</div></div><div><div>root@bloody:/var/cores# echo "a" | /usr/bin/sed 'y%a%b%'<br></div><div>Segmentation Fault (core dumped)</div><div>root@bloody:/var/cores# echo "a" | /usr/gnu/bin/sed 'y%a%b%'</div><div>b</div></div><div><div>root@bloody:/var/cores# echo "x" | /usr/bin/sed 's%,%,%'</div><div>x</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 5:28 PM, Dan McDonald <span dir="ltr"><<a href="mailto:danmcd@omniti.com" target="_blank">danmcd@omniti.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On Sep 12, 2014, at 9:19 AM, Dan Vatca <<a href="mailto:dan@syneto.net">dan@syneto.net</a>> wrote:<br>
<br>
> I'm compiling omnios bloody and I get this crash during cdrtools compilation:<br>
><br>
> make: Warning: Ignoring DistributedMake -j option<br>
> <------>==> MAKING SYMLINKS in ./RULES/<br>
> sh: line 1: 14171: Memory fault(coredump)<br>
> mksh: Fatal error: The command `uname -s | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"%abcdefghijklmnopqrstuvwxyz,------%'' returned status `0'<br>
><br>
> This creates a core with this stack trace:<br>
> root@bloody:/var/cores# mdb core.sed.6628<br>
> Loading modules: [ libc.so.1 ld.so.1 ]<br>
>> ::walk thread | ::findstack -v<br>
> stack pointer for thread 1: 80462a8<br>
> [ 080462a8 libc.so.1`_UTF8_mbsnrtowcs+0x2d() ]<br>
> 080462d8 libc.so.1`mbsrtowcs_l+0x35(0, 804736c, 0, 0, fee01a00, 8067da7)<br>
> 08046308 libc.so.1`mbsrtowcs+0x42(0, 804736c, 0, 0, 0, 0)<br>
> 08047388 compile_tr+0x132(8067d61, 806a274, 0, fefcac10, fee10048, 38)<br>
> 08047be8 compile_stream+0x7b8(806a260, 8047c7c, 8047c48, 80531a8, 1, 8047d60)<br>
> 08047c08 compile+0x10(0, 3, 0, 0, 3, feffb0a4)<br>
> 08047c48 main+0x1a8(8047c3c, fef72668, 8047c70, 805251b, 2, 8047c7c)<br>
> 08047c70 _start+0x83(2, 8047d5c, 8047d60, 0, 8047da8, 8047dbd)<br>
><br>
> Did anyone else run into this?<br>
<br>
</div></div>No, but I'm off bloody for now... (trying to bringup 012 and 013), and trying to beat back serious IPS problems I accidentally introduced.<br>
<br>
Can you reproduce this crash with just the command listed above all by itself?<br>
<span class="HOEnZb"><font color="#888888"><br>
Dan<br>
<br>
</font></span></blockquote></div><br></div>
`