Oh, and yes, adding `-fstack-check` to the CFLAGS even on non-Hardened system/toolchain reproduce the error ;) P.S. As for now, latest Ruby-2.1 release is affected too!mva (Vadim A. Misbakh-Soloviov)
By the way, I just found (with help of the downstream's Ruby team), that adding `-fno-stack-check` to the `CFLAGS` makes it to build fine (and miniruby don't segafults). But I think, it is not the good way to solve this problem :-/ mva (Vadim A. Misbakh-Soloviov)
Uh... Sorry for delay! Somewhy I didn't get email notification from your redmine :( So, I'm not sure, if this is exactly what you asked about (if it is not — I'd be happy to provide output of any gdb command you tell ;) ), but here it...mva (Vadim A. Misbakh-Soloviov)
Hi there! I've discovered, that Ruby 2.2.1 can't be built using Hardened GCC (4.8 and 4.9). Probably, that was introduced in that commit: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/tags/v2_2_1/thread_pthread.c?r1=48992&r2=49578&diff_f...mva (Vadim A. Misbakh-Soloviov)