Bug #8803
closedAnother buffer overflow
Description
Hello guys, i was running a little code written in ruby for a few minutes (more exactly https://github.com/Hood3dRob1n/Ding.rb/blob/master/ding2.rb) when it crashed, reason buffer overflow. I did increase opened files limit on my Ubuntu Release 12.04 (precise) 64-bit (Kernel Linux 3.2.0-40-generic) ulimit -n 20000 but no effect.thx in advance
Files
Updated by normalperson (Eric Wong) over 10 years ago
"user021 (a s)" user021@hushmail.com wrote:
Bug #8803: Another buffer overflow
https://bugs.ruby-lang.org/issues/8803
ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
I did increase opened files limit on my Ubuntu Release 12.04 (precise) 64-bit (Kernel Linux 3.2.0-40-generic) ulimit -n 20000 but no effect.thx in advance
Actually, this looks like problem with _FORTIFY_SOURCE usage in Ubuntu.
Please try 1.9.3-p448 or 2.0.0-p247, which contains workaround:
(r39985 in SVN)
Updated by user021 (a s) over 10 years ago
normalperson (Eric Wong) wrote:
"user021 (a s)" user021@hushmail.com wrote:
Bug #8803: Another buffer overflow
https://bugs.ruby-lang.org/issues/8803
ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]I did increase opened files limit on my Ubuntu Release 12.04 (precise) 64-bit (Kernel Linux 3.2.0-40-generic) ulimit -n 20000 but no effect.thx in advance
Actually, this looks like problem with _FORTIFY_SOURCE usage in Ubuntu.
Please try 1.9.3-p448 or 2.0.0-p247, which contains workaround:
(r39985 in SVN)
This might sound silly but how can i run my code with the new ruby 1.9.3-p448 that i installed using rbenv. when i do 'ruby -v' shows the old version and 'rbenv version' shows the newer one.thx
Updated by normalperson (Eric Wong) over 10 years ago
"user021 (a s)" user021@hushmail.com wrote:
This might sound silly but how can i run my code with the new ruby
1.9.3-p448 that i installed using rbenv. when i do 'ruby -v' shows the
old version and 'rbenv version' shows the newer one.thx
I have no familarity with rbenv/rvm, but with any autotooled package,
I will use:
./configure --prefix=/my/choice/of/location $any_other_args
make
make install
And add /my/choice/of/location/bin to the beginning of my $PATH. I do
this for Ruby, and a bunch of other non-Ruby packages I track the
upstream development of.
rbenv/rvm authors should be able to help you if you choose to stick
with them.
Updated by user021 (a s) over 10 years ago
normalperson (Eric Wong) wrote:
"user021 (a s)" user021@hushmail.com wrote:
This might sound silly but how can i run my code with the new ruby
1.9.3-p448 that i installed using rbenv. when i do 'ruby -v' shows the
old version and 'rbenv version' shows the newer one.thxI have no familarity with rbenv/rvm, but with any autotooled package,
I will use:./configure --prefix=/my/choice/of/location $any_other_args
make
make installAnd add /my/choice/of/location/bin to the beginning of my $PATH. I do
this for Ruby, and a bunch of other non-Ruby packages I track the
upstream development of.rbenv/rvm authors should be able to help you if you choose to stick
with them.
Yeah using ruby 1.9.3-p448 fixed my problem, thx alot.
Updated by hsbt (Hiroshi SHIBATA) over 10 years ago
- Status changed from Open to Closed