Project

General

Profile

Actions

Bug #2789

closed

segfault in DL callbacks with mingw32

Added by Ethan (Ethan -) about 14 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]
[ruby-core:28330]

Description

=begin
Attempting to use a callback with DL in mingw32 causes segmentation fault.
(I apologize if I'm in the wrong place - I could not find any bug tracker or any sort of community for DL itself, and since it is included with ruby, I figured the tracker for ruby would be the appropriate place - I'd appreciate it if somebody could point me to where I should be, if that's incorrect.)

The attached script works correctly in ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32].
It segfaults in any mingw32 build I try including:
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32] (this is the latest release candidate, RC2, from rubyinstaller.org)
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32] (this is the latest release candidate, RC2, from rubyinstaller.org)
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32] (this is the second-latest release candidate, RC1, from rubyinstaller.org)

Running the attached script, this is the output:

calling enumwindows ...
hwnd is 329524
dl_18_callback_mingw32.rb:10: [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.
=end


Files

dl_18_callback_mingw32.rb (443 Bytes) dl_18_callback_mingw32.rb Script to reproduce segfault on mingw32 Ethan (Ethan -), 02/25/2010 02:19 AM
Actions #1

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Project changed from Backport186 to Ruby master
  • Description updated (diff)
  • Status changed from Open to Closed
  • Backport set to 2.5: UNKNOWN, 2.6: UNKNOWN
Actions

Also available in: Atom PDF

Like0
Like0