Gem 0.4 segfaults on winxp upon install

Yes, it does segfaults.

···

Chad Fowler [mailto:chadfowler@gmail.com] helpfully wrote:

> c:/ruby181-13/lib/ruby/site_ruby/1.8/rubygems/builder.rb:61: [BUG]
> Segmentation fault ruby 1.8.2 (2004-05-19) [i386-mswin32]
>
> This application has requested the Runtime to terminate it in an
> unusual way. Please contact the application's support team for more
> information.
>
>

Strange one. I'm not seeing this on my computer at work. I'm
running the windows installer version from RubyForge (latest
one). It looks like the following line from builder.rb is
causing Ruby to segfault on your computer

data = [Zlib::Deflate.deflate(File.open(entry['path'], "rb") {|f|
f.read})].pack("m")

Can you try this from the shell in windows to see if it also
segfaults?

ruby -rzlib -e 'p Zlib::Deflate.deflate("Blah")'

-------------------------------------------
C:\temp\gem\rubygems-0.4.0>ruby -rzlib -e 'p Zlib::Deflate.deflate("Blah")'
-e:1: [BUG] Segmentation fault
ruby 1.8.2 (2004-05-19) [i386-mswin32]

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

kind regards -botp

Chad

Can anyone else confirm that zlib segfaults on this release of ruby on Windows?

Chad

···

On Fri, 4 Jun 2004 19:01:27 +0900, "Peña, Botp" <botp@delmonte-phil.com> wrote:

Chad Fowler [mailto:chadfowler@gmail.com] helpfully wrote:

> > c:/ruby181-13/lib/ruby/site_ruby/1.8/rubygems/builder.rb:61: [BUG]
> > Segmentation fault ruby 1.8.2 (2004-05-19) [i386-mswin32]
> >
> > This application has requested the Runtime to terminate it in an
> > unusual way. Please contact the application's support team for more
> > information.
> >
> >
>
> Strange one. I'm not seeing this on my computer at work. I'm
> running the windows installer version from RubyForge (latest
> one). It looks like the following line from builder.rb is
> causing Ruby to segfault on your computer
>
> data = [Zlib::Deflate.deflate(File.open(entry['path'], "rb") {|f|
> f.read})].pack("m")
>
> Can you try this from the shell in windows to see if it also
> segfaults?
>
> ruby -rzlib -e 'p Zlib::Deflate.deflate("Blah")'

Yes, it does segfaults.

-------------------------------------------
C:\temp\gem\rubygems-0.4.0>ruby -rzlib -e 'p Zlib::Deflate.deflate("Blah")'
-e:1: [BUG] Segmentation fault
ruby 1.8.2 (2004-05-19) [i386-mswin32]

Chad Fowler writes:

···

On Fri, 4 Jun 2004 19:01:27 +0900, "Peña, Botp" <botp@delmonte-phil.com> wrote:
>
> Chad Fowler [mailto:chadfowler@gmail.com] helpfully wrote:
>
> > Can you try this from the shell in windows to see if it also
> > segfaults?
> >
> > ruby -rzlib -e 'p Zlib::Deflate.deflate("Blah")'
>
> Yes, it does segfaults.
>
> -------------------------------------------
> C:\temp\gem\rubygems-0.4.0>ruby -rzlib -e 'p Zlib::Deflate.deflate("Blah")'
> -e:1: [BUG] Segmentation fault
> ruby 1.8.2 (2004-05-19) [i386-mswin32]
>
>

Can anyone else confirm that zlib segfaults on this release of ruby on Windows?

This does *not* segfault on my XP Pro machine, in either a DOS or Cygwin
command window. Perhaps having Cygwin makes a difference, but I'm using the
standard Ruby windows install, not Cygwin's.

Jim
--
Jim Menard, jimm@io.com, http://www.io.com/~jimm/
Crash Windows XP in two lines of code:
    #include <stdio.h>
    main(void) { int i; for(i = 0; i < 5 ; i++) printf("\t\t\b\b\b"); }

This DOES NOT segfault on WinXP Home w/latest Ruby win32 distro...works like a charm. What version of Ruby is being used?

···

On Jun 4, 2004, at 6:46 AM, Chad Fowler wrote:

Can you try this from the shell in windows to see if it also
segfaults?

ruby -rzlib -e 'p Zlib::Deflate.deflate("Blah")'

Yes, it does segfaults.

-------------------------------------------
C:\temp\gem\rubygems-0.4.0>ruby -rzlib -e 'p Zlib::Deflate.deflate("Blah")'
-e:1: [BUG] Segmentation fault
ruby 1.8.2 (2004-05-19) [i386-mswin32]

Can anyone else confirm that zlib segfaults on this release of ruby on Windows?

Chad