<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Segment7: Chasing "undefined method for Fixnum"</title>
    <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>The Blog</description>
    <item>
      <title>Chasing &amp;quot;undefined method for Fixnum&amp;quot;</title>
      <description>&lt;p&gt;I&amp;#8217;ve been running the unit tests for 43 People on my Powerbook since the shared development box slowed to a crawl after importing the entire production database and I&amp;#8217;m now seeing the &amp;#8220;undefined method [blah] for -517611318:Fixnum&amp;#8221; message occasionally on my Powerbook.  Not content to suffer through running another thirty seconds of tests I reached into eval.c and added a call to rb_bug() when method_missing is called on the Fixnum -517611318.&lt;/p&gt;


	&lt;p&gt;Within a couple runs of the tests I ended up with a core, but the &lt;span class="caps"&gt;NODE&lt;/span&gt; * argument to rb_eval() was 0&amp;#215;0 for all calls.  This made no sense, that value can&amp;#8217;t possibly be 0&amp;#215;0 for every call to rb_eval, the optimization flags must have been getting in the way.&lt;/p&gt;


	&lt;p&gt;So I rebuilt Ruby with -O0 and haven&amp;#8217;t gotten a core since.  So one of the optimizations that -O or -O2 makes is screwing up Ruby&amp;#8217;s internals.  Now I&amp;#8217;m trying a -O1 build to see if I can reproduce.  If I don&amp;#8217;t get any problems with -O1 I&amp;#8217;ll try sorting through -O2&amp;#8217;s flags until I find the culprit.&lt;/p&gt;
</description>
      <pubDate>Fri, 07 Apr 2006 10:28:35 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:d3fd638d-cbb8-4a8a-9b84-ec8e73ab6863</guid>
      <author>drbrain@segment7.net (Eric Hodel)</author>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum</link>
      <category>Ruby</category>
    </item>
    <item>
      <title>"Chasing "undefined method for Fixnum"" by Eric Hodel</title>
      <description>&lt;p&gt;Sounds like a different bug.  I can see this bug sometimes without using Rails at all.&lt;/p&gt;</description>
      <pubDate>Tue, 11 Apr 2006 10:55:43 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:7fcc2cbf-427f-4e27-bf58-a6989967101a</guid>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum#comment-190</link>
    </item>
    <item>
      <title>"Chasing "undefined method for Fixnum"" by Caiwangqin</title>
      <description>&lt;p&gt;this bug occur in my rails app only if database table has a column named ruby key word or object intanse method name, so i can rename column name to fix it.&lt;/p&gt;</description>
      <pubDate>Tue, 11 Apr 2006 07:43:33 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:fa7b1d85-4d8a-4d5e-b458-51df8a299cbf</guid>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum#comment-188</link>
    </item>
    <item>
      <title>"Chasing "undefined method for Fixnum"" by Eric Hodel</title>
      <description>&lt;p&gt;Caiwangqin: I don&amp;#8217;t understand how you fixed this bug by changing a database table name.  It has nothing to do with Rails.  Can you give more details?&lt;/p&gt;</description>
      <pubDate>Mon, 10 Apr 2006 10:12:53 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:1b2b9e31-55f1-40c7-bc68-63f2d53a7692</guid>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum#comment-182</link>
    </item>
    <item>
      <title>"Chasing "undefined method for Fixnum"" by Caiwangqin</title>
      <description>&lt;p&gt;I got this bug on windows.&lt;/p&gt;


	&lt;p&gt;I am using ruby 1.8.2 / rails 1.0 / ms sqlserver 2000, (because my project used memcached , so i can not use rails 1.1 now.)&lt;/p&gt;


	&lt;p&gt;i found that the but occurrent because the database table have a column named &amp;#8216;type&amp;#8217;, and i change the column name to solved this problem.&lt;/p&gt;</description>
      <pubDate>Mon, 10 Apr 2006 07:16:05 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:471bf2fc-1f9e-4c2c-93e6-61c73cb9d893</guid>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum#comment-180</link>
    </item>
    <item>
      <title>"Chasing "undefined method for Fixnum"" by Caleb</title>
      <description>&lt;p&gt;+1 thanks for looking&lt;/p&gt;</description>
      <pubDate>Fri, 07 Apr 2006 20:23:53 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:fea56506-633d-43b6-b02d-4ae3d9524ad1</guid>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum#comment-173</link>
    </item>
    <item>
      <title>"Chasing "undefined method for Fixnum"" by Eric Hodel</title>
      <description>&lt;p&gt;Bob: Should you feel the need, you can reward me with beer.&lt;/p&gt;</description>
      <pubDate>Fri, 07 Apr 2006 15:30:04 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:68ee64c6-ebb7-4643-b50d-70db286d4f6a</guid>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum#comment-172</link>
    </item>
    <item>
      <title>"Chasing "undefined method for Fixnum"" by Eric Hodel</title>
      <description>&lt;p&gt;David: I originally discovered that GCC 3.3 seems to fix the bug on PPC.&lt;/p&gt;


	&lt;p&gt;Saying &amp;#8220;Use GCC 3.3&amp;#8221; is no real solution.  I don&amp;#8217;t want to recompile everything with GCC 3.3 and I don&amp;#8217;t want to tell everybody else to do that either.&lt;/p&gt;


	&lt;p&gt;I typically hit the bug when running Rails&amp;#8217; unit tests so it may require a good workout for the GC to trigger.&lt;/p&gt;</description>
      <pubDate>Fri, 07 Apr 2006 15:29:23 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:81303cbc-e49f-4397-9213-7a3a751c9964</guid>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum#comment-171</link>
    </item>
    <item>
      <title>"Chasing "undefined method for Fixnum"" by Bob</title>
      <description>&lt;p&gt;Bless you!  Thank you for taking on this bug!  You should get a reward when you track it down.&lt;/p&gt;


	&lt;p&gt;Just out of curiosity, does anyone know if this is only a problem with gcc on the PowerPC platform, or is it with gcc in general?&lt;/p&gt;</description>
      <pubDate>Fri, 07 Apr 2006 15:00:11 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:5cc0c878-e8b6-4d36-9cf1-401f56c4afd4</guid>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum#comment-170</link>
    </item>
    <item>
      <title>"Chasing "undefined method for Fixnum"" by David Felstead</title>
      <description>&lt;p&gt;Hi Eric,&lt;/p&gt;


	&lt;p&gt;I was having the same problem with my installation of Ruby 1.8.2 on Tiger (PPC).  I recompiled Ruby using gcc 3.3 (rather than 4, which the original version was compiled with) and it hasn&amp;#8217;t happened since then.&lt;/p&gt;


	&lt;p&gt;A few days ago I upgraded to 1.8.4, compiled with gcc 4 and still haven&amp;#8217;t seen  it.  Interesting, no?&lt;/p&gt;</description>
      <pubDate>Fri, 07 Apr 2006 14:50:30 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:524ef9c9-f6d3-4d48-b42a-e7998ae97083</guid>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum#comment-169</link>
    </item>
    <item>
      <title>"Chasing "undefined method for Fixnum"" by J. Weir</title>
      <description>&lt;p&gt;Awesome, I have been bothered by this as well.  I also look forward to hearing the results.&lt;/p&gt;</description>
      <pubDate>Fri, 07 Apr 2006 14:47:46 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:6be38c45-c026-432f-8921-2806853eb7cc</guid>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum#comment-168</link>
    </item>
    <item>
      <title>"Chasing "undefined method for Fixnum"" by Daniel Berger</title>
      <description>&lt;p&gt;This would be a great bug to track down.  It&amp;#8217;s been one of those ghosts that have been haunting Ruby for a while, now.  I look forward to your results.&lt;/p&gt;


	&lt;p&gt;Dan&lt;/p&gt;</description>
      <pubDate>Fri, 07 Apr 2006 11:46:07 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:a045fbdb-370e-4935-860d-d38dd09b9d3e</guid>
      <link>http://blog.segment7.net/articles/2006/04/07/chasing-undefined-method-for-fixnum#comment-167</link>
    </item>
  </channel>
</rss>
