# Httprequest fails with segmentation fault on OS X 10.6

**URL:** <https://www.ruby-forum.com/t/httprequest-fails-with-segmentation-fault-on-os-x-10-6/176786>\
**Category:** Ruby\
**Created:** [October 6, 2009, 9:20am UTC](https://www.ruby-forum.com/t/httprequest-fails-with-segmentation-fault-on-os-x-10-6/176786 "2009-10-06T09:20:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![navac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/eada6e/32.png) [@navac](https://www.ruby-forum.com/u/navac)\
**Post date:** [October 6, 2009, 9:20am UTC](https://www.ruby-forum.com/t/httprequest-fails-with-segmentation-fault-on-os-x-10-6/176786/1 "2009-10-06T09:20:54Z")

</div>

Hello,

Our application sends requests to a server using httpclient 2.1.5.1,  
which uses webrick’s httprequest.  
Sometimes it fails on segmentation fault:  
10/5/09 6:02:29 PM [0x0-0x3ab3ab].com.myapp.gateway.MyApp[13365]  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httprequest.rb:148:  
[BUG] Segmentation fault

My question is what can be a cause of such a fault? May be I should  
catch some kind of connection exception to prevent a crash at least?  
This haven’t happened on Leopard with Ruby 1.8.6. Snow Leopard has Ruby  
1.8.7 integrated. My app is built with RubyCocoa 0.13.2, which is  
integrated in 10.6 either.

Any advice or direction will be appreciated, since i’m really new to  
ruby.
