# What's wrong with Windows? (Was: Re: String segfault with wi

**URL:** <https://www.ruby-forum.com/t/whats-wrong-with-windows-was-re-string-segfault-with-wi/95318>\
**Category:** Ruby\
**Created:** [May 28, 2006, 9:29am UTC](https://www.ruby-forum.com/t/whats-wrong-with-windows-was-re-string-segfault-with-wi/95318 "2006-05-28T09:29:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [May 28, 2006, 9:29am UTC](https://www.ruby-forum.com/t/whats-wrong-with-windows-was-re-string-segfault-with-wi/95318/1 "2006-05-28T09:29:34Z")

</div>

Dear Dan,

I tried your code using Ruby 1.8.4, Windows XP, Cygwin.  
I do not get a segmentation fault there.  
So it doesn’t appear to have to do with Ruby.  
Recently, there were quite some people posting about  
segfault problems when running applications on Windows -  
ruby-gsl, fxruby, and now win32api.  
Does anybody know anything why Windows behaves that way?

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [May 28, 2006, 5:22pm UTC](https://www.ruby-forum.com/t/whats-wrong-with-windows-was-re-string-segfault-with-wi/95318/2 "2006-05-28T17:22:19Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Best regards,
> 
> Axel

I don’t think the bug I posted (which now appears to be sporadic, btw)  
is necessarily related to the bugs reported in ruby-gsl or fxruby.

It could be a bug in string.c. Or, it could be a compiler bug. Or, it  
could be some issue with regards to Windows IO stream, since a ‘puts’  
will sometimes mysteriously solve (or cause) a segfault.

Regards,

Dan
