# \[Bug #658\] $B%9%/%j%W%H%(%s%3!\<%G%#%s%0$,(BUTF-8$B$N$H$-(B /\[\\xfe\]/ $B$G(BSEGV

**URL:** <https://www.ruby-forum.com/t/bug-658-b-9-j-w-h-s-3-g-s-0-butf-8-b-n-h-b-xfe-b-g-bsegv/151250>\
**Category:** Development\
**Created:** [October 18, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/bug-658-b-9-j-w-h-s-3-g-s-0-butf-8-b-n-h-b-xfe-b-g-bsegv/151250 "2008-10-18T21:22:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hiroshi\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bbce88/32.png) [@Hiroshi\_M](https://www.ruby-forum.com/u/Hiroshi_M)\
**Post date:** [October 18, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/bug-658-b-9-j-w-h-s-3-g-s-0-butf-8-b-n-h-b-xfe-b-g-bsegv/151250/1 "2008-10-18T21:22:17Z")

</div>

Bug #658: e$B%9%/%j%W%H%(%s%3!\<%G%#%s%0$,e(BUTF-8e$B$N$H$-e(B /[\xfe]/  
e$B$Ge(BSEGV  
[http://redmine.ruby-lang.org/issues/show/658](http://redmine.ruby-lang.org/issues/show/658)

e$B5/I\<\<Te(B: Hiroshi M.  
e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal

e$B%j%S%8%g%se(B19812e$B0J9\_!"%9%/%j%W%H%(%s%3!\<%G%#%s%0$,e(BUTF-8e$B$N$H$-$Ke(B  
`\xfe' e$B$^$?$Oe(B `\xff’  
e$B$,@55,I=8=$NJ8;z%/%i%9$K4^$^$l$F$$$k$H!"e(Brubye$B$,e(B  
e$BMn$A$^$9e(B:

% ./ruby1.9 \<\<EOS

# Encoding: UTF-8

/[\xfe]/  
EOS  
./ruby1.9: [BUG] Segmentation fault  
ruby 1.9.0 (2008-10-19 revision 19843) [i686-linux]

## – control frame ---------- c:0002 p:-34103900 s:0004 b:0004 l:000003 d:000003 TOP c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP :17

## – backtrace of native function call (Use addr2line) – 0x811c045 0x814854e 0x81485ab 0x80ceee3 0xb7f3b440 0x80c9d52 0x80ca478 0x80cb9f8 0x80cbad4 0x80cbc9f 0x80bc7e5 0x80b375f 0x80b3b04 0x80b513b 0x808cac5 0x8098046 0x809e9e7 0x811e969 0x808bb80 0x808bbdd 0x80cd7b6 0x80ce37d 0x810de7a 0x80cc87c 0x805b644 0x80590b9 0xb7d95ea8 0x8058fd1

zsh: abort (core dumped) ./ruby1.9 \<\<\< ‘# Encoding: UTF-8 /[\xfe]/’

---

<div class="post-metadata">

**Author:** ![Hiroshi\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bbce88/32.png) [@Hiroshi\_M](https://www.ruby-forum.com/u/Hiroshi_M)\
**Post date:** [October 21, 2008, 12:50am UTC](https://www.ruby-forum.com/t/bug-658-b-9-j-w-h-s-3-g-s-0-butf-8-b-n-h-b-xfe-b-g-bsegv/151250/2 "2008-10-21T00:50:25Z")

</div>

e$B%A%1%C%He(B #658 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B  
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

## Applied in changeset r19863.

[http://redmine.ruby-lang.org/issues/show/658](http://redmine.ruby-lang.org/issues/show/658)

---

<div class="post-metadata">

**Author:** ![Hiroshi\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bbce88/32.png) [@Hiroshi\_M](https://www.ruby-forum.com/u/Hiroshi_M)\
**Post date:** [October 21, 2008, 1:57am UTC](https://www.ruby-forum.com/t/bug-658-b-9-j-w-h-s-3-g-s-0-butf-8-b-n-h-b-xfe-b-g-bsegv/151250/3 "2008-10-21T01:57:38Z")

</div>

e$B%A%1%C%He(B #658 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B

## Applied in changeset r19864.

[http://redmine.ruby-lang.org/issues/show/658](http://redmine.ruby-lang.org/issues/show/658)
