# Segmentation Fault on 64-bit

**URL:** <https://www.ruby-forum.com/t/segmentation-fault-on-64-bit/127572>\
**Category:** Rails\
**Created:** [January 30, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/segmentation-fault-on-64-bit/127572 "2008-01-30T13:51:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@pratik](https://www.ruby-forum.com/u/pratik)\
**Post date:** [January 30, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/segmentation-fault-on-64-bit/127572/1 "2008-01-30T13:51:06Z")

</div>

ruby (1.8.4) is crashing when it is compiled on 64-bit when caching is  
used while fetching data through oracle.  
the same works fine when ruby is compiled in 32-bit.  
The platform is Sun OS 64-bit SPARC. But it is also reproduceable on  
Linux 64-bit Server.  
Here is the error:

/home/venkatr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault  
ruby 1.8.4 (2005-12-24) [sparc-solaris2.10]

gem env output:

[venkatr @hummer ~] gem env  
RubyGems Environment:

- VERSION: 0.9.4 (0.9.4)
- INSTALLATION DIRECTORY: /home/venkatr/v6ClientToolsInstallDir/gems
- GEM PATH:
  - /home/venkatr/v6ClientToolsInstallDir/gems
  - /home/venkatr/v6ClientToolsInstallDir/lib/ruby/gems/1.8
  - /home/venkatr/v6ClientToolsInstallDir/lib/ruby/1.8’
  - /home/venkatr/v6ClientToolsInstallDir/lib/ruby/1.8/sparc-  
solaris2.10’
  - /home/venkatr/v6ClientToolsInstallDir/lib/ruby/site\_ruby/1.8’
  - /home/venkatr/v6ClientToolsInstallDir/lib/ruby/site\_ruby/1.8/  
sparc-solaris2.10’
  - /home/venkatr/v6ClientToolsInstallDir/lib/ruby/gems/1.8/gems’

- REMOTE SOURCES:
  - [http://gems.rubyforge.org](http://gems.rubyforge.org)

This is urgent. Hence, any help would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![pratik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@pratik](https://www.ruby-forum.com/u/pratik)\
**Post date:** [January 30, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/segmentation-fault-on-64-bit/127572/2 "2008-01-30T16:47:36Z")

</div>

On Wed, 30 Jan 2008, Pratik wrote:

> ruby (1.8.4) is crashing when it is compiled on 64-bit when caching is  
> used while fetching data through oracle.  
> the same works fine when ruby is compiled in 32-bit.  
> The platform is Sun OS 64-bit SPARC. But it is also reproduceable on  
> Linux 64-bit Server.

Did you try strace’ing it in Linux?

(Or truss in Solaris)

Where does it die?

–
