Exerb with cui17z and md5 => segmentation fault

Hi,

I’m trying to get up to par with all great things that have happened in
the Ruby community during 2002; very impressive indeed.

Right now I’m trying out exerb with md5 but am having some problems. Below
I’ve tried to rip out the central parts to show the problem. I’d be happy
if anyone got pointers or info to help solve this.

Description of what I tried:

  • I need to use Ruby 1.7.X since 1.6.X has bad performance when reading
    files opened with “rb”.

  • I installed ruby with Andy’s windows installer 1.7.3-7.

  • Installed exerb 2.4.0 with the 2.3.0 cc-core add-on which has the cui17z
    which should be for 1.7.X series. (Or am I mistaken here?)

  • Wrote simple program to show the bug:
    require ‘digest/md5’
    require ‘find’
    Find.find(’.’) do |filename|
    if filename =~ /.mp3$/
    md5hd = File.open(filename, “rb”) {|f| Digest::MD5.hexdigest(f.read)}
    puts "#{md5hd} *#{filename}"
    end
    end

  • When run on dir with many mp3’s in it it works perfectly with ruby
    1.7.3.

  • Create exerb rbc:

    ruby -r exerb/mkrbc md5test.rb

    which gives md5test.rbc:

    generated by mkrbc.rb

kcode none
script md5test.rb md5test.rb
library digest.so c:/Program files/ruby/lib/ruby/1.7/i386-mswin32/digest.so
library digest/md5.so c:/Program files/ruby/lib/ruby/1.7/i386-mswin32/digest/m
d5.so
script find.rb c:/Program files/ruby/lib/ruby/1.7/find.rb

  • then create exe:

    exerb -c cui17z -z md5test.rbc

  • and now when I run it fails after a couple of mp3 files at different
    locations. Examples:

    • md5test.rb:6: [BUG] Segmentation fault
      ruby 1.7.3 (2002-10-27) [i386-mswin32]

    • find.rb:18: [BUG] Segmentation fault
      ruby 1.7.3 (2002-10-27) [i386-mswin32]

    etc

What am I missing here? Anyone packed up an exe with exerb and md5 that
works flawlessly?

Regards,

Robert Feldt

Ps. Anyone know how to get on the english-speaking exerb list? The page
for doing so is in japanese.

“Robert Feldt” feldt@ce.chalmers.se wrote in message

I’m trying to get up to par with all great things that have happened in
the Ruby community during 2002; very impressive indeed.

Welcome back ! We missed you … at least I did when I needed some guidance
when wanting to “rockit” :wink:

Right now I’m trying out exerb with md5 but am having some problems.

So am I !

  • I installed ruby with Andy’s windows installer 1.7.3-7.

C:\atest>ruby -v
ruby 1.7.3 (2002-11-17) [i386-mswin32]

  • Installed exerb 2.4.0 with the 2.3.0 cc-core add-on which has the cui17z
    which should be for 1.7.X series. (Or am I mistaken here?)

I downloaded the latest release (exerb 2.5 and exerb-cc 2.5) and verified
that the test one-liner (puts ‘Ok’) worked.

  • Wrote simple program to show the bug:
    require ‘digest/md5’
    require ‘find’
    Find.find(‘.’) do |filename|
    if filename =~ /.mp3$/
    md5hd = File.open(filename, “rb”) {|f| Digest::MD5.hexdigest(f.read)}
    puts “#{md5hd} *#{filename}”
    end
    end

  • When run on dir with many mp3’s in it it works perfectly with ruby
    1.7.3.

Same here …

  • Create exerb rbc:
  • then create exe:

Don’t know about cui17z, but I tried the simple

C:\atest>exerb.rb tst_md5exe.rbc

and ran it:

C:\atest>.\tst_md5exe
tst_md5exe.rb:1: [BUG] Segmentation fault
ruby 1.6.8 (2002-12-24) [i586-mswin32]

abnormal program termination

Notice how it reports ruby 1.6.8 and not 1.7.3.

exerb -c cui17z -z md5test.rbc

  • and now when I run it fails after a couple of mp3 files at different
    locations. Examples:

Did not even get that far :frowning:

What am I missing here? Anyone packed up an exe with exerb and md5 that
works flawlessly?
Anyone know how to get on the english-speaking exerb list? The page
for doing so is in japanese.

Yeah !! Also, did anyone figure out why the documentation is *ix like
(Cygwin ?) when the utility is for *doze?

– shanko