Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Dear,

I need a help on a problem I’m having. I have a script written in
ruby ​​that at one point creates a snapshot of /home and then do the
backup using the tar command. It works perfectly lucid in a long time
but it is giving segmentation fault in need.

Commands that are being run:

/sbin/lvs --noheadings -ovg_name,lv_name ‘/dev/mapper/work-home’
/sbin/lvs --noheadings -olv_size --units k --nosuffix
‘/dev/mapper/work-home’
/sbin/lvcreate -L40G -s -n ‘SS_backup’ ‘/dev/work/home’

Output of strace:

=====================================================================================

stat("/var/backup/SS_backup/dir1", {st_mode=S_IFDIR|0710, st_size=4096,
…}) = 0
stat("/var/backup/SS_backup/dir1", {st_mode=S_IFDIR|0710, st_size=4096,
…}) = 0
stat("/var/backup/SS_backup/dir2", {st_mode=S_IFDIR|0710, st_size=4096,
…}) = 0
stat("/var/backup/SS_backup/dir2", {st_mode=S_IFDIR|0710, st_size=4096,
…}) = 0
— SIGSEGV (Segmentation fault) @ 0 (0) —
write(2, "/usr/local/sbin/script.rb:851: ",
32/usr/local/sbin/script.rb:851: ) = 32
write(2, "[BUG] ", 6[BUG] ) = 6
write(2, “Segmentation fault”, 18Segmentation fault) = 18
write(2, “\nruby 1.8.7 (2011-06-30 patchlev”…, 56
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

) = 56
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(994, 994, SIGABRT) = 0
— SIGABRT (Aborted) @ 0 (0) —
+++ killed by SIGABRT +++
Aborted

======================================================================================

I am using the following package versions:

Ubuntu 12.04 64bits
ruby1.8 1.8.7.352-2ubuntu1
gcc-4.6-base 4.6.3-1ubuntu5
linux-server 3.2.0.24.26
lvm2 2.02.66-4ubuntu7.1

Has anyone experienced this problem and can give any tips?

I appreciate any help

Leandro Ferreira