Segfault in timer.rb

E

Erlend Oye

Hi,
I am running RSSScraper and get segfault on both 1.8.2 and 1.9.1
built from CVS under cygwin

-----
% ruby scrape_server.rb
[2005-01-09 18:59:25] INFO WEBrick 1.3.1
[2005-01-09 18:59:25] INFO ruby 1.8.2 (2005-01-09) [i386-cygwin]
[2005-01-09 18:59:25] INFO WEBrick::HTTPServer#start: pid=2012 port=4049
localhost - - [09/Jan/2005:19:00:43 GMT-8:00] "GET /RubyGardenWiki
HTTP/1.1" 200 121337
...
[...snip]
...
/usr/local/lib/ruby/1.8/timeout.rb:40: [BUG] Segmentation fault
ruby 1.8.2 (2005-01-09) [i386-cygwin]

zsh: 2012 abort (core dumped) ruby scrape_server.rb
-----

This problem does not happen if I run scraper_server using

% /cygdrive/c/ruby/bin/ruby.exe -v
ruby 1.8.2 (2004-12-25) [i386-mswin32]

One other difference I've noted is that the Log output above does not
get displayed when running under i386-mswin32 version.

Help?
-Erlend Oye
 
E

Erlend Oye

I am seeing this on 2 different machines with fresh install. Compiling
Ruby with

-ggdb -g3 -O0

prints something more useful but still fails all over.

/usr/local/lib/ruby/1.8/timeout.rb:40: [BUG] rb_gc_mark() called for
broken object
ruby 1.8.2 (2005-01-10) [i386-cygwin]

zsh: 13060 abort (core dumped) ruby scrape_server.rb
-------
/usr/local/lib/ruby/1.8/rexml/text.rb:295: [BUG] Segmentation fault
ruby 1.8.2 (2005-01-10) [i386-cygwin]

zsh: 22780 abort (core dumped) ruby scrape_server.rb
--------
/usr/local/lib/ruby/1.8/timeout.rb:40: [BUG] rb_gc_mark(): unknown data
type 0x2e(0x1037d178) non object
ruby 1.8.2 (2005-01-10) [i386-cygwin]

zsh: 5032 abort (core dumped) ruby -d scrape_server.rb
 
F

Florian Gross

Erlend said:
/usr/local/lib/ruby/1.8/timeout.rb:40: [BUG] rb_gc_mark() called for
broken object
ruby 1.8.2 (2005-01-10) [i386-cygwin]

[...]
zsh: 22780 abort (core dumped) ruby scrape_server.rb

Any other libraries that it's using? YAML used to do something similar.
 

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

Similar Threads

Debugger not available 0
Segfault in 1.8.1p3 8
RoR example and segmentation fault! 5
Segfault in Ruby/ODBC 2
Segfault in vgetargskeywords 0
Instiki install 3
Bug In REXML 0
Ruby broken in Fedora Core 4? 7

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top