[MacOS X] [BUG]Bus Error

U

Une Bévue

i'm using ruby with libxml and libxslt to transfom an xhtml file into an
xbel one thru xslt.

It seems (not deeply verified) the transform itself works but i get the
following error message :

$ ./fir2xbel.rb
../fir2xbel.rb:23: [BUG] Bus Error
ruby 1.8.5 (2006-08-25) [powerpc-darwin8.8.0]

the whole script could be resumed to :

#! /usr/bin/env ruby -wx

require 'xml/libxml'
require 'xml/libxslt'

xslt=XML::XSLT.file(<xsl file>)
xslt.doc=XML::Document.file(<xml file>)
s=xslt.parse
s.apply
f=File.open(<xbel file>,'w')
f.puts s

notice the -wx arg to Ruby.

where could i search for such an error ?
 
P

Peter Booth

Maybe a dumb question but do you have a PPC Mac? I had a bunch of =20
similar errors when I migrated my entire system (including Ruby =20
install) from my PPC Powerbook Pro to an Intel MacBook Pro. The =20
resolution was a complete reinstall of Ruby.

Peter

i'm using ruby with libxml and libxslt to transfom an xhtml file =20
into an
xbel one thru xslt.

It seems (not deeply verified) the transform itself works but i get =20=
the
following error message :

$ ./fir2xbel.rb
./fir2xbel.rb:23: [BUG] Bus Error
ruby 1.8.5 (2006-08-25) [powerpc-darwin8.8.0]

the whole script could be resumed to :

#! /usr/bin/env ruby -wx

require 'xml/libxml'
require 'xml/libxslt'

xslt=3DXML::XSLT.file(<xsl file>)
xslt.doc=3DXML::Document.file(<xml file>)
s=3Dxslt.parse
s.apply
f=3DFile.open(<xbel file>,'w')
f.puts s

notice the -wx arg to Ruby.

where could i search for such an error ?

Peter Booth
(e-mail address removed)
917 445 5663
 
U

Une Bévue

Peter Booth said:
Maybe a dumb question but do you have a PPC Mac? I had a bunch of
similar errors when I migrated my entire system (including Ruby
install) from my PPC Powerbook Pro to an Intel MacBook Pro. The
resolution was a complete reinstall of Ruby.

Yes i do have a PPC Mac the ruby i'm using was installed on this PPC Mac
using MacPorts.

Such a bug is new to me, might be linked to Mac OS X 10.4.9 updat ?

Also it seems this has nothing to do with the xsl file by itself because
i get this error with the simplest one.

I'm sure i didn't have this error on 10.4.8...
 
F

Faisal N Jawdat

I've had a long-running series of errors (Ruby 1.8.4, 1.8.5p12) of =20
this type on a PPC Mac from a scratch install. The problems appeared =20=

to go away when I blew away /usr/local/lib/ruby and reinstalled Ruby =20
(1.8.6) from scratch.

-faisal
-your rubber chicken may vary

Maybe a dumb question but do you have a PPC Mac? I had a bunch of =20
similar errors when I migrated my entire system (including Ruby =20
install) from my PPC Powerbook Pro to an Intel MacBook Pro. The =20
resolution was a complete reinstall of Ruby.

Peter

i'm using ruby with libxml and libxslt to transfom an xhtml file =20
into an
xbel one thru xslt.

It seems (not deeply verified) the transform itself works but i =20
get the
following error message :

$ ./fir2xbel.rb
./fir2xbel.rb:23: [BUG] Bus Error
ruby 1.8.5 (2006-08-25) [powerpc-darwin8.8.0]

the whole script could be resumed to :

#! /usr/bin/env ruby -wx

require 'xml/libxml'
require 'xml/libxslt'

xslt=3DXML::XSLT.file(<xsl file>)
xslt.doc=3DXML::Document.file(<xml file>)
s=3Dxslt.parse
s.apply
f=3DFile.open(<xbel file>,'w')
f.puts s

notice the -wx arg to Ruby.

where could i search for such an error ?

Peter Booth
(e-mail address removed)
917 445 5663
 
U

Une Bévue

Faisal N Jawdat said:
I've had a long-running series of errors (Ruby 1.8.4, 1.8.5p12) of
this type on a PPC Mac from a scratch install. The problems appeared
to go away when I blew away /usr/local/lib/ruby and reinstalled Ruby
(1.8.6) from scratch.

ok, fine thanks !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top