Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ruby File Copy SEG Fault on 64-bit System

1 view
Skip to first unread message

cje...@yorkieworks.com

unread,
Dec 13, 2006, 12:56:38 PM12/13/06
to
I have a Ruby script which copies certain files from one subdirectory to
another. I am running the latest version of Ruby (1.8.51.10) available
from Suse under Suse Linux 9.3. On my 32-bit computer, my ruby scrip
executes successfully. However, on my 64-bit AMD computer the script
fails with the following error:

/usr/lib64/ruby/1.8/ftools.rb:27: [BUG] Segmentation faul
ruby 1.8.1 (2003-12-25) [x86_64-linux]

Here is the line from my Ruby script which copies the file:

File::syscopy(path1, path2)

"path1" is the source file name and "path2" is the target file name. I
have verified that both names are correct. The file being copied is 130
Mb and the copy consistently fails on the 64-bit computer afterr 77 Mb have
been copied. I have tried the script on 2 64-bit computers running Suse
9.3 and the copy fails in an idential manner. I have also tried the scrip
on 1 32-bit computer running Suse 9.3 and the copy consistently succeeds.
There is no issue on any of the computers on smaller files.

Since the failure occurs midway through the execution of "syscopy", it
seems to me that the issue may lie with the 64-bit version of ftools.rb.

Any suggestions would be greatly appreciated.

Cindy Jeness

cje...@yorkieworks.com

unread,
Dec 14, 2006, 4:22:33 PM12/14/06
to


Please note that I have the same version of Ruby on all of my computers,
but the version should be "1.8.1-51.10" which represents the latest rpm
available from Suse. I went to the Ruby site, downloaded the source,
compiled and installed it. This fixed my file copy problem. But now I
have a version of Ruby which will not be part of the usual Suse update
process. How do I get Suse to provide an rpm with the latest version of Ruby?

Cindy Jeness

0 new messages