--- libxml-ruby-0.3.8.4/ext/xml/ruby_xml_parser.c.dist	2007-03-09 01:18:59.000000000 +0900
+++ libxml-ruby-0.3.8.4/ext/xml/ruby_xml_parser.c	2007-03-09 01:22:02.000000000 +0900
@@ -1111,7 +1111,7 @@
   ruby_xml_parser *rxp;
   ruby_xml_parser_context *rxpc;
   xmlDocPtr xdp;
-  VALUE doc;
+  volatile VALUE doc;
 
   Data_Get_Struct(self, ruby_xml_parser, rxp);
 
