Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > libxml-ruby segfault on CentOS 5 (64 bit)

Reply
Thread Tools

libxml-ruby segfault on CentOS 5 (64 bit)

 
 
Sebastian W.
Guest
Posts: n/a
 
      11-22-2008
Hello all,
Wondering if anyone has had issues with libxml-ruby segfaulting on
64-bit CentOS 5. This problem is reproducible both using the yum
installed version of Ruby (1.8.5) and Ruby 1.8.7-p72 (compiled from
source). I'm at my wits end here -- the problem seems to be reproducible
only on 64 bit linux.

-bash-3.1$ ruby -v
ruby 1.8.5 (2006-08-25) [x86_64-linux]
-bash-3.1$ uname -a
Linux myhost 2.6.18-8.el5 #1 SMP Thu Mar 15 19:46:53 EDT 2007 x86_64
x86_64 x86_64 GNU/Linux
-bash-3.1$ rake all
(in /path/to/my/rake/file)
my_script_which_uses_libxml_ruby.rb:65: [BUG] Segmentation fault
ruby 1.8.5 (2006-08-25) [x86_64-linux]

I'm not really sure where to begin in asking for help -- I've never had
this kind of issue before. The offending method looks as follows:

def set_cdata_client_mapping_by_name(name, cdata)
node = get_vcs_root_by_name(name)
client_mapping = node.first.find("param[@name='client-mapping']")
client_mapping.first.first.remove! #Segfault here - this is line 65
client_mapping.first.child_add XML::Node.new_cdata(cdata)
end

Anyone have any insight? I would be very grateful.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
jens wille
Guest
Posts: n/a
 
      11-22-2008
hi sebastian!

Zitat von "Sebastian W." <>:
> Wondering if anyone has had issues with libxml-ruby segfaulting on
> 64-bit CentOS 5. This problem is reproducible both using the yum
> installed version of Ruby (1.8.5) and Ruby 1.8.7-p72 (compiled from
> source). I'm at my wits end here -- the problem seems to be reproducible
> only on 64 bit linux.

you might want to have a look at the 0.9.3 release charlie just put out (see
[1]). haven't tried it myself yet as i'm not at home right now, but i suppose
it should fix the issue.

[1]
<http://rubyforge.org/tracker/index.php?func=detail&aid=22909&group_id=494&atid= 1971>

cheers
jens


 
Reply With Quote
 
 
 
 
Sebastian W.
Guest
Posts: n/a
 
      11-24-2008

> you might want to have a look at the 0.9.3 release charlie just put out


Yes, yes, oh yay! OMG...so happy. This appears to have fixed the issue.
I re-ran my tests after updating to 0.9.4 (fast team - a new release
between Friday and today!) and now they're all green.

Thanks so much jens!

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Jens Wille
Guest
Posts: n/a
 
      11-25-2008
Sebastian W. [2008-11-25 00:58]:
> Yes, yes, oh yay! OMG...so happy. This appears to have fixed the
> issue. I re-ran my tests after updating to 0.9.4 (fast team - a
> new release between Friday and today!) and now they're all green.

yeah, me too

> Thanks so much jens!

thank you, but it's charlie who deserves all the gratitude!

cheers
jens

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
invoking a segfault within a segfault handler - is this undefinedbehavior? Andrey Vul C Programming 8 07-30-2010 02:14 PM
Re: Problem building python in virtual machine running centos Paul Boddie Python 2 04-25-2008 02:31 PM
CentOS and redhat qianz99@gmail.com C Programming 10 06-23-2007 10:54 AM
Error 1 during install of python 2.5 on CentOS nat Python 0 03-08-2007 01:23 AM
Python RPM and CentOS rbt Python 2 05-17-2005 02:54 PM



Advertisments