Segmentation fault in feed.rb

7 views
Skip to first unread message

Colin Surprenant

unread,
Oct 13, 2009, 2:15:32 PM10/13/09
to feedzirra
Hi,

Just want to report that, after 3 days running, my feed poller system
which uses feedzirra (pauldix-feedzirra 0.0.18) crashed with:

/usr/lib/ruby/gems/1.8/gems/pauldix-feedzirra-0.0.18/lib/feedzirra/
feed.rb:263: [BUG] Segmentation fault
ruby 1.8.6 (2007-09-24) [x86_64-linux]

This is running on:
- Ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux]
- Ubuntu 8.04 under Amazon EC2

Libs:
- libxml2 2.6.31.dfsg-2ubuntu1.3

Gems:
- pauldix-feedzirra (0.0.18)
- nokogiri (1.3.3)
- taf2-curb (0.5.4.0)

No other information about the crash is available.

feed.rb:263 is the last line of this code snippet:

def self.add_feed_to_multi(multi, feed, feed_queue, responses,
options)
easy = Curl::Easy.new(feed.feed_url) do |curl|
curl.headers["User-Agent"] = (options[:user_agent] ||
USER_AGENT)

Thanks,
Colin

Paul Dix

unread,
Oct 13, 2009, 2:29:45 PM10/13/09
to feed...@googlegroups.com
Hi Colin,
My guess is that segfault has something to do with curb. Can you give
me a specific feed that caused it?

Thanks,
Paul

Jesse Clark

unread,
Oct 13, 2009, 2:47:28 PM10/13/09
to feed...@googlegroups.com
When I was getting seg faults a while back upgrading libxml2 and
reinstalling the gems fixed it.

-Jesse

Colin Surprenant

unread,
Oct 13, 2009, 3:02:04 PM10/13/09
to feedzirra
Paul,

Hmm, the feed poller was working on many different feeds and the
segfault silently terminated the Ruby application so there is no way
to know exactly which feed was being polled at the time of crash.

I will add more debug traces to make sure to catch that the next time
it crashes.

Thanks,
Colin

Colin Surprenant

unread,
Oct 14, 2009, 8:22:29 AM10/14/09
to feedzirra
Jesse,

Were "your" segfaults also potentially related to curb?

Are you using different versions of libxml2 + the gems I listed?

Colin

Jesse Clark

unread,
Oct 14, 2009, 1:50:50 PM10/14/09
to feed...@googlegroups.com
The seg faults I was seeing were caused by libxml2 v. 2.6.16. I
upgraded to libxml2 2.7.3 and reinstalled nokogiri and it fixed my
issue.

Here is the original thread:
http://groups.google.com/group/feedzirra/browse_thread/thread/16181283b6a46a39/6c9246ed604ff2e6?hl=en&lnk=gst&q=segmentation#6c9246ed604ff2e6

Colin Surprenant

unread,
Oct 16, 2009, 9:34:18 AM10/16/09
to feedzirra
Hi,

I just got another segfault but this time I had some traces so the
feed being polled at the time of crash was a Twitter search on
http://search.twitter.com/search.atom?...

This particular feed is being polled very frequently at regular
interval.

I'll check into upgrading libxml2 to 2.7+

Thanks,
Colin


On Oct 13, 3:02 pm, Colin Surprenant <colin.surpren...@gmail.com>
wrote:

Colin Surprenant

unread,
Oct 21, 2009, 11:27:00 AM10/21/09
to feedzirra
To followup, I upgraded to libxml 2.7.5 and haven't seen any segfaults
in the past few days.

Colin

On Oct 16, 9:34 am, Colin Surprenant <colin.surpren...@gmail.com>
wrote:
> Hi,
>
> I just got another segfault but this time I had some traces so the
> feed being polled at the time of crash was a Twitter search onhttp://search.twitter.com/search.atom?...
Reply all
Reply to author
Forward
0 new messages