Issue #278 has been reported by Anonymous. ---------------------------------------- Bug #278: segmentation fault on regexp http://redmine.ruby-lang.org/issues/show/278 Author: Anonymous Status: Open Priority: High Assigned to: Category: Target version: ruby segfaults when rexml tries to parse an xml document (which i can't post). tracing the execution, the failure is in: c-call /usr/lib/ruby/1.8/rexml/parsers/xpathparser.rb:605 === Regexp this is inside a case statement on 'path' variable which is a String with value '*' (without quotes) coredump shows this: #0 0xb7e7cbca in re_match_exec (bufp=0x8109fb0, string_arg=0xb481a0c0 "*", size=1, pos=0, beg=0, regs=0xbfc4c5ec) at regex.c:3981 #1 0xb7e80ab3 in ruby_re_search (bufp=0x8109fb0, string=0xb481a0c0 "*", size=1, startpos=0, range=1, regs=0xbfc4c5ec) at regex.c:3314 #2 0xb7e7b36f in rb_reg_search (re=3076234480, str=3075252200, pos=0, reverse=0) at re.c:918 #3 0xb7e7b705 in rb_reg_eqq (re=3076234480, str=3075252200) at re.c:1615 #4 0xb7e1ce6b in call_cfunc (func=0xb7e7b680 <rb_reg_eqq>, recv=3076234480, len=8, argc=1, argv=0x825809c) at eval.c:5749 ---------------------------------------- http://redmine.ruby-lang.org