[#29911] [Bug #3231] Digest Does Not Build — Charlie Savage <redmine@...>

Bug #3231: Digest Does Not Build

19 messages 2010/05/01

[#29920] [Feature #3232] Loops (while/until) should return last statement value if any, like if/unless — Benoit Daloze <redmine@...>

Feature #3232: Loops (while/until) should return last statement value if any, like if/unless

9 messages 2010/05/01

[#29997] years in Time.utc — Xavier Noria <fxn@...>

Does anyone have a precise statement about the years supported by

13 messages 2010/05/04

[#30010] [Bug #3248] extension 'tk' is finding tclConfig.sh and tkConfig.sh incorrectly — Luis Lavena <redmine@...>

Bug #3248: extension 'tk' is finding tclConfig.sh and tkConfig.sh incorrectly

9 messages 2010/05/05

[#30226] [Bug #3288] Segmentation fault - activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88 — Szymon Jeż <redmine@...>

Bug #3288: Segmentation fault - activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88

10 messages 2010/05/13

[#30358] tk doesn't startup well in doze — Roger Pack <rogerdpack2@...>

Currently with 1.9.x and tk 8.5,the following occurs

12 messages 2010/05/22

[ruby-core:30271] [Backport #3302] segfault in 1.8.6 p398 in Ruby::DL

From: Jarmo Pertman <redmine@...>
Date: 2010-05-16 17:46:01 UTC
List: ruby-core #30271
Backport #3302: segfault in 1.8.6 p398 in Ruby::DL
http://redmine.ruby-lang.org/issues/show/3302

Author: Jarmo Pertman
Status: Open, Priority: Normal

I tried to call a simple method on Windows (XP 32bit, Win7 64bit - didn't matter)
machine and it seems that i will get a segmentation fault depending of
the Ruby version.

Here is the offending code (doc for EnumWindows is at
http://msdn.microsoft.com/en-us/library/ms633497(v=VS.85).aspx):

require 'dl/import'

module Testing

  extend DL::Importable

  dlload "user32.dll"

  USER32 = DL.dlopen("user32")
  EnumWindows = USER32['EnumWindows', 'IPL']

  CALLBACK = DL.callback('ILL') do |curr_hwnd, p|
    p curr_hwnd
    0
  end

  module_function

  def enumerate
    EnumWindows.call(CALLBACK, 0)
  end
end

Testing.enumerate

-------------------

And when trying to run it with different Ruby 1.8.6 patchlevels, i see
the following output:

S:\>ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

S:\>testing.rb
328312

S:\>ruby -v
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]

S:\>testing.rb
393884
S:/testing.rb:20: [BUG] Segmentation fault
ruby 1.8.6 (2010-02-04) [i386-mingw32]


This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.

-------

So, p398 gives me a segfault. On the other hand FFI example at
http://wiki.github.com/ffi/ffi/windows-examples works perfectly. Also using Win32::API works.

Jarmo


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

In This Thread

Prev Next