[#47790] [ruby-trunk - Bug #7097][Open] Thread locals don't work inside Enumerator — "tenderlovemaking (Aaron Patterson)" <aaron@...>

32 messages 2012/10/01
[#47791] [ruby-trunk - Bug #7097][Assigned] Thread locals don't work inside Enumerator — "kosaki (Motohiro KOSAKI)" <kosaki.motohiro@...> 2012/10/01

[#47792] Re: [ruby-trunk - Bug #7097][Assigned] Thread locals don't work inside Enumerator — Aaron Patterson <tenderlove@...> 2012/10/01

On Tue, Oct 02, 2012 at 03:05:17AM +0900, kosaki (Motohiro KOSAKI) wrote:

[#47798] Re: [ruby-trunk - Bug #7097][Assigned] Thread locals don't work inside Enumerator — SASADA Koichi <ko1@...> 2012/10/01

(2012/10/02 3:12), Aaron Patterson wrote:

[#47800] Re: [ruby-trunk - Bug #7097][Assigned] Thread locals don't work inside Enumerator — SASADA Koichi <ko1@...> 2012/10/01

(2012/10/02 8:22), SASADA Koichi wrote:

[#47832] [ruby-trunk - Feature #7106][Open] FileUtils.touch should allow touching the symlink itself rather than the file the link points to — "cirrusthinking (Alessandro Diaferia)" <alessandro@...>

18 messages 2012/10/04

[#47847] [ruby-trunk - Bug #7110][Open] CGI: Add support for HTML5 <header> tag — "stomar (Marcus Stollsteimer)" <redmine@...>

16 messages 2012/10/05

[#47870] [ruby-trunk - Bug #7123][Open] Segmentation fault in ruby 1.9.3-p194 — "mscottford (M. Scott Ford)" <scott@...>

13 messages 2012/10/09

[#47880] [ruby-trunk - Bug #7134][Open] Signal handling bug in Mac OS X — "auastro (Andy Kitchen)" <kitchen.andy+rubybug@...>

17 messages 2012/10/10

[#47881] [ruby-trunk - Bug #7135][Open] GC bug in Ruby 1.9.3-p194? — "alexdowad (Alex Dowad)" <alexinbeijing@...>

21 messages 2012/10/10

[#47887] [ruby-trunk - Bug #7137][Open] Date.parse overly lenient when attempting to parse Monday? — "garysweaver (Gary Weaver)" <garysweaver@...>

12 messages 2012/10/10

[#47930] [ruby-trunk - Feature #7148][Open] Improved Tempfile w/o DelegateClass — "Glass_saga (Masaki Matsushita)" <glass.saga@...>

14 messages 2012/10/12

[#47970] [ruby-trunk - Bug #7158][Open] require is slow in its bookkeeping; can make Rails startup 2.2x faster — "gregprice (Greg Price)" <price@...>

30 messages 2012/10/14

[#48027] [Backport93 - Backport #7172][Open] [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2) — "mpapis (Michal Papis)" <mpapis@...>

13 messages 2012/10/16

[#48053] [ruby-trunk - Bug #7180][Open] set_trace_func with error in proc block locks up Ruby with 100% cpu usage and no way to exit without killing proc — "garysweaver (Gary Weaver)" <garysweaver@...>

8 messages 2012/10/17

[#48072] [ruby-trunk - Bug #7184][Open] --disable-gems commandline parameter does not show up with ruby -h — "steenslag (siep korteling)" <s.korteling@...>

10 messages 2012/10/18

[#48130] [ruby-trunk - Bug #7200][Open] Setting external encoding with BOM| — "brixen (Brian Ford)" <brixen@...>

14 messages 2012/10/21

[#48191] [ANN] 2.0.0 feature freeze — Yusuke Endoh <mame@...>

Japanese later; 日本語は後で

37 messages 2012/10/24
[#48696] Re: [ANN] 2.0.0 feature freeze — SASADA Koichi <ko1@...> 2012/11/01

(2012/10/24 5:39), Yusuke Endoh wrote:

[#48260] [ruby-trunk - Bug #7214][Open] Ruby 2.0 breaks support for some debugging tools — "banister (john mair)" <jrmair@...>

22 messages 2012/10/25

[#48315] [ruby-trunk - Bug #7220][Open] StringIO#initialize_copy causes aliasing between the objects — "brixen (Brian Ford)" <brixen@...>

13 messages 2012/10/26

[#48413] [ruby-trunk - Bug #7221][Open] Unable to compile kgio under 1.9.3 with error: ruby-1.9.3-<plvl>/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert nil into Integer (TypeError) — "davidderyldowney (David Deryl Downey)" <me@...>

9 messages 2012/10/27

[#48549] [ruby-trunk - Feature #7240][Open] Inheritable #included/#extended Hooks For Modules — "apotonick (Nick Sutterer)" <apotonick@...>

14 messages 2012/10/29

[#48551] [ruby-trunk - Feature #7241][Open] Enumerable#to_h proposal — "nathan.f77 (Nathan Broadbent)" <nathan.f77@...>

23 messages 2012/10/29

[#48552] [ruby-trunk - Bug #7242][Open] Bignum mathematical accuracy regression in r31695 — "mhall (Matthew Hall)" <mhall@...>

11 messages 2012/10/29

[ruby-core:48661] [ruby-trunk - Bug #5990][Assigned] Random Segmentation Fault when running on Linux Fedora

From: "mame (Yusuke Endoh)" <mame@...>
Date: 2012-10-31 11:41:30 UTC
List: ruby-core #48661
Issue #5990 has been updated by mame (Yusuke Endoh).

Status changed from Feedback to Assigned
Assignee set to tenderlovemaking (Aaron Patterson)

Aaron, do you know anything?

-- 
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #5990: Random Segmentation Fault when running on Linux Fedora
https://bugs.ruby-lang.org/issues/5990#change-32091

Author: blairsilverberg (Blair Silverberg)
Status: Assigned
Priority: Normal
Assignee: tenderlovemaking (Aaron Patterson)
Category: 
Target version: 
ruby -v: 1.9.2p290


I am parsing a large library of html documents with ruby mechanize/nokogiri. Randomly, I encounter a segmentation fault.

This happens on both ruby 1.9.2 (ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]) and 1.9.3 (ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux])

I am running Linux Fedora Laughlin 16 on rackspace

Linux 2.6.35.6-45.fc14.x86_64 #1 SMP Mon Oct 18 23:57:44 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

Fedora release 14 (Laughlin)
Kernel \r on an \m (\l)



/root/code/myteam/classes/profile_page_scraper.rb:116: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

-- control frame ----------
c:0022 p:0010 s:0088 b:0086 l:000085 d:000085 METHOD /root/code/myteam/classes/profile_page_scraper.rb:116
c:0021 p:0027 s:0082 b:0080 l:000079 d:000079 METHOD /root/code/myteam/classes/profile_page_scraper.rb:120
c:0020 p:0017 s:0076 b:0074 l:001ed8 d:000073 BLOCK  /root/code/myteam/classes/mysite_scraper.rb:115
c:0019 p:0015 s:0069 b:0069 l:000059 d:000068 BLOCK  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:239
c:0018 p:---- s:0066 b:0066 l:000065 d:000065 FINISH
c:0017 p:---- s:0064 b:0064 l:000063 d:000063 CFUNC  :upto
c:0016 p:0023 s:0060 b:0060 l:000059 d:000059 METHOD /usr/local/rvm/gems/ruby-1.9.2-p290/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238
c:0015 p:0924 s:0056 b:0056 l:001ed8 d:001ed8 METHOD /root/code/myteam/classes/mysite_scraper.rb:113
c:0014 p:0032 s:0045 b:0045 l:000036 d:000044 BLOCK  /root/code/myteam/scrape_user.rb:23
c:0013 p:---- s:0042 b:0042 l:000041 d:000041 FINISH
c:0012 p:---- s:0040 b:0040 l:000039 d:000039 CFUNC  :each
c:0011 p:0120 s:0037 b:0037 l:000036 d:000036 TOP    /root/code/myteam/scrape_user.rb:21
c:0010 p:---- s:0034 b:0034 l:000033 d:000033 FINISH
c:0009 p:---- s:0032 b:0032 l:000031 d:000031 CFUNC  :require
c:0008 p:0036 s:0028 b:0028 l:000027 d:000027 METHOD /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
c:0007 p:0056 s:0021 b:0021 l:000012 d:000020 BLOCK  /root/code/myteam/helpers/helpers.rb:7
c:0006 p:---- s:0018 b:0018 l:000017 d:000017 FINISH
c:0005 p:---- s:0016 b:0016 l:000015 d:000015 CFUNC  :each
c:0004 p:0066 s:0013 b:0013 l:000012 d:000012 METHOD /root/code/myteam/helpers/helpers.rb:5
c:0003 p:0050 s:0007 b:0007 l:0000b8 d:002340 EVAL   ./scrape_user.rb:6
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0000b8 d:0000b8 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
./scrape_user.rb:6:in `<main>'
/root/code/myteam/helpers/helpers.rb:5:in `require_all'
/root/code/myteam/helpers/helpers.rb:5:in `each'
/root/code/myteam/helpers/helpers.rb:7:in `block in require_all'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/root/code/myteam/scrape_user.rb:21:in `<top (required)>'
/root/code/myteam/scrape_user.rb:21:in `each'
/root/code/myteam/scrape_user.rb:23:in `block in <top (required)>'
/root/code/myteam/classes/mysite_scraper.rb:113:in `scrape_user'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:in `upto'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:239:in `block in each'
/root/code/myteam/classes/mysite_scraper.rb:115:in `block in scrape_user'
/root/code/myteam/classes/profile_page_scraper.rb:120:in `get_my_url'
/root/code/myteam/classes/profile_page_scraper.rb:116:in `get_my_id'

-- C level backtrace information -------------------------------------------
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_vm_bugreport+0x5f) [0x7fc76ec380cf]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x60564) [0x7fc76eb17564]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_bug+0xb3) [0x7fc76eb18493]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x1143b5) [0x7fc76ebcb3b5]
/lib64/libpthread.so.0() [0x328540eeb0]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_method_entry_get_without_cache+0x20) [0x7fc76ec25750]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x176965) [0x7fc76ec2d965]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x176f5b) [0x7fc76ec2df5b]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_yield+0x47) [0x7fc76ec32e57]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0xaa161) [0x7fc76eb61161]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x17afa6) [0x7fc76ec31fa6]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x1710ee) [0x7fc76ec280ee]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x176f5b) [0x7fc76ec2df5b]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_yield+0x47) [0x7fc76ec32e57]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_ary_each+0x46) [0x7fc76eae6816]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x17afa6) [0x7fc76ec31fa6]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x1710ee) [0x7fc76ec280ee]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x176f5b) [0x7fc76ec2df5b]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_iseq_eval+0x1f0) [0x7fc76ec33340]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x6a0d0) [0x7fc76eb210d0]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_require_safe+0x6cf) [0x7fc76eb225cf]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x17afa6) [0x7fc76ec31fa6]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x1710ee) [0x7fc76ec280ee]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x176f5b) [0x7fc76ec2df5b]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_yield+0x47) [0x7fc76ec32e57]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_ary_each+0x46) [0x7fc76eae6816]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x17afa6) [0x7fc76ec31fa6]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x1710ee) [0x7fc76ec280ee]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x176f5b) [0x7fc76ec2df5b]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_iseq_eval_main+0xb1) [0x7fc76ec33441]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x66a1a) [0x7fc76eb1da1a]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(ruby_exec_node+0x1d) [0x7fc76eb1e88d]
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(ruby_run_node+0x1e) [0x7fc76eb20afe]
ruby(main+0x4b) [0x40091b]
/lib64/libc.so.6(__libc_start_main+0xfd) [0x3284c1ee5d]
ruby() [0x400809]

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html



-- 
http://bugs.ruby-lang.org/

In This Thread