Bug #2789
closedsegfault in DL callbacks with mingw32
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
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