[#5219] Segmentation fault in timeout.rb — Michel Pastor <K@...>

Hi,

18 messages 2005/06/16
[#5220] Re: Segmentation fault in timeout.rb — Eric Hodel <drbrain@...7.net> 2005/06/16

[#5221] Re: Segmentation fault in timeout.rb — Michel Pastor <K@...> 2005/06/16

On Fri, 17 Jun 2005 05:03:18 +0900

[#5223] Re: Segmentation fault in timeout.rb — nobu.nokada@... 2005/06/17

Hi,

[#5296] Subversion — Shugo Maeda <shugo@...>

Hi,

64 messages 2005/06/30
[#5297] Re: Subversion — Curt Hibbs <curt@...> 2005/06/30

Shugo Maeda wrote:

[#5298] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/06/30

Curt Hibbs wrote:

[#5301] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, Nikolai Weibull

[#5304] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/06/30

Austin Ziegler wrote:

[#5305] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, Nikolai Weibull

[#5307] Re: Subversion — mathew <meta@...> 2005/06/30

Austin Ziegler wrote:

[#5308] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, mathew <meta@pobox.com> wrote:

[#5311] Re: Subversion — mathew <meta@...> 2005/07/01

Austin Ziegler wrote:

[#5323] Re: Subversion — Austin Ziegler <halostatue@...> 2005/07/01

On 7/1/05, mathew <meta@pobox.com> wrote:

[#5325] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/07/01

Austin Ziegler wrote:

Re: [PATCH] 1.8.3 p1 segfault in array.c- bccwin32 - bcc5.5 (free) compiler bug

From: "Berger, Daniel" <Daniel.Berger@...>
Date: 2005-06-06 18:33:52 UTC
List: ruby-core #5153
> -----Original Message-----
> From: daz [mailto:dooby@d10.karoo.co.uk] 
> Sent: Monday, June 06, 2005 12:21 PM
> To: ruby-core
> Subject: [PATCH] 1.8.3 p1 segfault in array.c- bccwin32 - 
> bcc5.5 (free) compiler bug
> 
> 
> 
> Hi,
> 
> There's a line in array.c which confuses the Borland 5.5 
> compiler optimizer into corrupting a pointer held in a register.
> 
> Use of -O2 flag with the 'free' compiler causes a SEGV in 
> miniruby during the bccwin32 build process.
> 
> I tried to produce a small test case for the Borland 
> community to comment on but without success, so I can't say 
> if this is a known problem or even what the problem is. It 
> doesn't occur anywhere else in the 183p1 source.
> 
> Fix has a much smaller impact than adding 'volatile' would have.
> 
> I don't like the code change, especially as it means the same 
> thing but it will be preferable to the SEGV if you can bear it.

I don't know assembler very well, so forgive my ignorance, but does it
help to add parens?

-    if (TYPE(a) == T_STRING && TYPE(b) == T_STRING) {
+    if ((TYPE(a) == T_STRING) && (TYPE(b) == T_STRING)) {

Just curious.

Dan


In This Thread

Prev Next