Forum: Ruby-core segmentation fault/buffer overrun in pack.c (encodes)

35bc0582873faaf59f5fda1869b7b1f1?d=identicon&s=25 unknown (Guest)
on 2014-07-30 18:49
(Received via mailing list)
Issue #10019 has been updated by Will Wood.


Well the reproducibility issue appears to be a toolset problem.  If I
build with -O2 the code works fine.  I think ultimately the
optimizations (O3) for gcc 4.7.2 at least with the mingw toolset are
causing the issue here for windows.  I've subsequently built with the
mingw 4.9.1 toolset and it works fine with O3, so I guess there's a
4.7.2 gcc bug that's in the way here.

----------------------------------------
Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
https://bugs.ruby-lang.org/issues/10019#change-48139

* Author: Will Wood
* Status: Feedback
* Priority: Normal
* Assignee:
* Category: core
* Target version:
* ruby -v: ruby 2.1.2p168 (2014-07-06 revision 46721) [i386-mingw32]
* Backport: 2.0.0: REQUIRED, 2.1: DONE
F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2014-08-04 14:29
(Received via mailing list)
(2014/07/31 1:48), wkwood@gmail.com wrote:
> Well the reproducibility issue appears to be a toolset problem.  If I build with
-O2 the code works fine.  I think ultimately the optimizations (O3) for gcc 
4.7.2
at least with the mingw toolset are causing the issue here for windows.  I've
subsequently built with the mingw 4.9.1 toolset and it works fine with O3, so I
guess there's a 4.7.2 gcc bug that's in the way here.

Couldn't you try the trunk?
This topic is locked and can not be replied to.