# Random hang (requiring SIGKILL) in script talking to postgresql using rails application

**URL:** <https://www.ruby-forum.com/t/random-hang-requiring-sigkill-in-script-talking-to-postgresql-using-rails-application/178446>\
**Category:** Rails\
**Created:** [November 4, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/random-hang-requiring-sigkill-in-script-talking-to-postgresql-using-rails-application/178446 "2009-11-04T20:12:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathias\_MSSSSlster\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b77776/32.png) [@Mathias\_MSSSSlster\_S](https://www.ruby-forum.com/u/Mathias_MSSSSlster_S)\
**Post date:** [November 4, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/random-hang-requiring-sigkill-in-script-talking-to-postgresql-using-rails-application/178446/1 "2009-11-04T20:12:19Z")

</div>

Hello

We have a ruby-script for running system tests which talks to a  
database (to e.g. log each testrun) through a rails application.  
Sometimes this script freezes completely, only responding to SIGKILL.  
Have anyone else noticed this or have any idea where to start  
debugging (I’ve inherited the code and unfortunately don’t know too  
much about ruby on rails yet…) I have a hunch that the problem is  
related to the database access as the problem was reduced after  
deactivating a few tests which talk to the database a lot.

The script runs on linux (RHEL4) using rails version 2.3.4 and  
postgresql version 8.3.7. The database handler is pg, version 0.8.0

Mathias Lidal
