Daniel Berger
12/14/2006 7:47:00 PM
Cynthia Jeness wrote:
> 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 script
> 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]
I'm confused - are you running 1.8.5 or 1.8.1 on your 64 bit machine?
<snip>
> 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.
Quite possible, as I've hit obscure segfaults with ftools that I've
never been able to narrow down. My suggestion, for the immediate time,
is to use FileUtils.cp instead. In the meantime, consider submitting a
bug on RubyForge (assuming this really is for 1.8.5 and not 1.8.1).
Regards,
Dan