# Linux cron : problem with a ruby task

**URL:** <https://www.ruby-forum.com/t/linux-cron-problem-with-a-ruby-task/68680>\
**Category:** Ruby\
**Created:** [September 14, 2006, 1:25pm UTC](https://www.ruby-forum.com/t/linux-cron-problem-with-a-ruby-task/68680 "2006-09-14T13:25:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zouplaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/a4c791/32.png) [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Post date:** [September 14, 2006, 1:25pm UTC](https://www.ruby-forum.com/t/linux-cron-problem-with-a-ruby-task/68680/1 "2006-09-14T13:25:39Z")

</div>

Hello, since two days I’ve added a cron.daily task that launch the task  
runner of my Ruby on Rails application

Two times I had problem : a segfault the first day, and a ‘error’ the  
second (nothing more than ‘error’, and the ruby programs did things  
really wrong

I’ve lauched this program several times from bash and everything seems  
to be ok

Is there something wrong with cron and script/runner ??

You advice is welcome, thanks

CentOS 4, ruby 1.8.4, latest version of RoR

---

<div class="post-metadata">

**Author:** ![Zouplaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/a4c791/32.png) [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Post date:** [September 14, 2006, 1:35pm UTC](https://www.ruby-forum.com/t/linux-cron-problem-with-a-ruby-task/68680/2 "2006-09-14T13:35:42Z")

</div>

le 14/09/2006 13:20, Zouplaz nous a dit:

> Is there something wrong with cron and script/runner ??
> 
> You advice is welcome, thanks
> 
> CentOS 4, ruby 1.8.4, latest version of RoR

This time something else occured (from bash) that could be related - I  
got this error

glibc detected \*\*\* corrupted double-linked list:

What could it be ?

---

<div class="post-metadata">

**Author:** ![Zouplaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/a4c791/32.png) [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Post date:** [September 14, 2006, 5:07pm UTC](https://www.ruby-forum.com/t/linux-cron-problem-with-a-ruby-task/68680/3 "2006-09-14T17:07:05Z")

</div>

Zouplaz wrote:

> glibc detected \*\*\* corrupted double-linked list:
> 
> What could it be ?

Assuming that your program is not at fault and runs perfectly, random  
errors (especially memory corruption and segfaults) are generally a sign  
of bad hardware. Probably memory, possibly CPU or something else.

There’s also the possibility that another process is going crazy and  
overwriting your app’s memory.

---

<div class="post-metadata">

**Author:** ![Zouplaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/a4c791/32.png) [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Post date:** [September 14, 2006, 6:15pm UTC](https://www.ruby-forum.com/t/linux-cron-problem-with-a-ruby-task/68680/4 "2006-09-14T18:15:19Z")

</div>

On 9/14/06, Zouplaz [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > 
> 
> What could it be ?

Sounds serious! Have you built anything manually? It could be a  
library version problem, and if so, very hard to find and fix. If any  
new kernel modules have been built, have you tried running "ldconfig’?

If other programs are also running strangely I’d suspect a memory or  
disk problem. Also, check your CPU fans and make sure the machine is  
not overheating.

Les
