From: Ben Crowell Date: 2007-06-12T06:45:10+09:00 Subject: Re: possible bug in oniguruma, not 64-bit clean? Okay, I managed to make something a little smaller: http://www.lightandmatter.com/ruby_bug.tar.gz When I run the script "bug" in this tarball on my x64 machine, I get the following output: -------------------------------------------------------- warning, undefined reference nonmetricunits warning, undefined reference electroncapture ./a.rb:570:in `block in handle_math': unmatched close parenthesis: /\220\007~\000\000\000\000\000in|end){align\*?}/ (RegexpError) from ./a.rb:564:in `each' from ./a.rb:564:in `handle_math' from ./a.rb:760:in `parse_para' from ./a.rb:1048:in `block in
' from ./a.rb:1046:in `each' from ./a.rb:1046:in `
' -------------------------------------------------------- (The two warning messages are output from my program, not from ruby.) Ruby's behavior in this example is really, really strange. Believe it or not, if I cut out the third line of the file, which is a comment, I no longer get the error from the ruby interpreter. In fact, almost any seemingly trivial change I make to the file a.rb seems to get rid of the error. This is the kind of behavior that's made it extremely difficult for me to cut this down to a small test program that demonstrates the bug. I'll post this on the oniguruma bug tracker.