Backport #5299

Segmentation fault when using TweetStream gem in ruby 1.9.3

Added by Dushyanth Maguluru over 3 years ago. Updated over 3 years ago.

[ruby-core:39380]
Status:Closed
Priority:Urgent
Assignee:Motohiro KOSAKI

Description

=begin
=== Using tweetstream gem like this results in segfault:
TweetStream::Client.new('username','password').track('term1', 'term2') do |status|
puts "#{status.text}"
end

=== Environment:
ruby 1.9.3dev (2011-09-02 revision 33163) [x86_64-linux]

CentOS 5.2 (2.6.18-238.19.1.el5.centos.plus)

=== Attached files:
(1) List of gems installed (bundler's Gemfile)
(2) Ruby trace
(3) GDB trace
=end

Gemfile (2.16 KB) Dushyanth Maguluru, 09/09/2011 05:52 AM

ruby_trace.txt Magnifier (33.4 KB) Dushyanth Maguluru, 09/09/2011 05:52 AM

gdb_trace.txt Magnifier (16.3 KB) Dushyanth Maguluru, 09/09/2011 05:52 AM

Gemfile.txt Magnifier (2.16 KB) Dushyanth Maguluru, 09/09/2011 05:55 AM


Related issues

Related to Ruby trunk - Bug #5306: Application Hangs Due to Recent rb_thread_select Changes Closed 09/10/2011

Associated revisions

Revision 33231
Added by Nobuyoshi Nakada over 3 years ago

  • thread.c (rb_thread_select): fix a typo to initialize efds properly. [Bug #5299]

Revision 33258
Added by Motohiro KOSAKI over 3 years ago

  • Backport r33231.

  • thread.c (rb_thread_select): fix a typo to initialize efds
    properly. [Bug #5299]

History

#1 Updated by Dushyanth Maguluru over 3 years ago

#2 Updated by Dushyanth Maguluru over 3 years ago

Please note that this happens outside of a rails app as well.

#3 Updated by Nobuyoshi Nakada over 3 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r33231.
Dushyanth, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • thread.c (rb_thread_select): fix a typo to initialize efds properly. [Bug #5299]

#4 Updated by Nobuyoshi Nakada over 3 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby trunk to Backport193
  • Status changed from Closed to Assigned
  • Assignee set to Motohiro KOSAKI
  • Priority changed from Normal to Urgent
  • Target version deleted (1.9.3)

#5 Updated by Motohiro KOSAKI over 3 years ago

Yes, it's regression. we need to backport it soon.

#6 Updated by Charlie Savage over 3 years ago

Does "backport it soon" means backport it for the 1.9.3 release? I hope the answer is yes, its a pretty important bug for us.

#7 Updated by Motohiro KOSAKI over 3 years ago

Does "backport it soon" means backport it for the 1.9.3 release?  I hope the answer is yes, its a pretty important bug for us.

Yes, I mean backport it for 1.9.3p0.

#8 Updated by Motohiro KOSAKI over 3 years ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r33258.
Dushyanth, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • Backport r33231.

  • thread.c (rb_thread_select): fix a typo to initialize efds
    properly. [Bug #5299]

Also available in: Atom PDF