[#536] SEVG in bignum.c:505... — Sean Chittenden <sean@...>
$ ruby -e 'p [].to_s.strip.to_i'
5 messages
2002/10/13
[#537] darwin shared library patch — Eric Melville <eric@...>
In Darwin, the preferred way to build shared libraries is with two level
9 messages
2002/10/13
[#539] Re: darwin shared library patch
— "Akinori MUSHA" <knu@...>
2002/10/13
Hi,
[#544] Re: darwin shared library patch
— Eric Melville <eric@...>
2002/10/16
> The patch seems to make ENV[]= coredump.
[#546] Re: darwin shared library patch
— "Akinori MUSHA" <knu@...>
2002/10/16
At Thu, 17 Oct 2002 01:41:49 +0900,
[#541] Patch for MacOS X dln.c — Luc B駘anger <belanglu@...>
I have a patch for the dynamic linker in MacOS X, which permit to load
7 messages
2002/10/13
Re: SEVG in bignum.c:505...
From:
Sean Chittenden <sean@...>
Date:
2002-10-13 19:13:02 UTC
List:
ruby-core #538
> $ ruby -e 'p [].to_s.strip.to_i'
> -e:1: [BUG] Segmentation fault
> ruby 1.7.3 (2002-09-27) [i386-freebsd4]
> Abort (core dumped)
>
> See attached. -sc
FWIW, I'm not sure that I have the right fix because to_f has the same
problem. Was there a change that uncovered this bug, or, has
something else closer to the core changed that'd result in passing a
NULL string to the various methods? Anyway, if this were the correct
fix bug in bignum, then the following would always SEGV ruby. The bug
appears to be in chaining methods together. Hit four methods and
you're SOL. -sc
$ ruby -e "''.strip.to_i"
$ ruby -e "''.to_i"
$ ruby -e "[].to_s.to_i"
$ ruby -e "[].to_s.strip.to_i"
-e:1: [BUG] Segmentation fault
ruby 1.7.3 (2002-09-27) [i386-freebsd4]
Abort (core dumped)
$ ruby -e "[].to_s.delete('a').to_i"
-e:1: [BUG] Segmentation fault
ruby 1.7.3 (2002-09-27) [i386-freebsd4]
Abort (core dumped)
$ ruby -e "[].to_s.to_f"
$ ruby -e "[].to_s.delete('a').to_f"
-e:1: [BUG] Segmentation fault
ruby 1.7.3 (2002-09-27) [i386-freebsd4]
Abort (core dumped)
--
Sean Chittenden