Bug #8783

ruby 1.9/2.0 crash on exit on FreeBSD/powerpc64

Added by Justin Hibbits over 1 year ago. Updated about 1 year ago.

[ruby-core:56590]
Status:Closed
Priority:Normal
Assignee:cruby-bsd
ruby -v:ruby 2.0.0p195 (2013-05-14 revision 40734) [powerpc64-freebsd10.0] Backport:1.9.3: DONE, 2.0.0: DONE, 2.1: DONE

Description

On FreeBSD/powerpc64, ruby 1.9 and 2.0 segfault. I traced this to the default stack being too small (12K). A larger stack is required, 4 pages is sufficient.

patch-ppc64-fix-thread_pthread.c Magnifier (746 Bytes) Steve Wills, 01/21/2014 05:42 AM


Related issues

Related to Ruby trunk - Bug #9436: r44670以降Solaris10でthread_pthread.cがコンパイルエラー Closed 01/21/2014

Associated revisions

Revision 44671
Added by Nobuyoshi Nakada over 1 year ago

thread_pthread.c: expand timer thread stack size

  • thread_pthread.c (rb_thread_create_timer_thread): expand timer thread stack size to get rid of segfault on FreeBSD/powerpc64. based on the patch by Steve Wills at . [Bug #8783]

Revision 44671
Added by Nobuyoshi Nakada over 1 year ago

thread_pthread.c: expand timer thread stack size

  • thread_pthread.c (rb_thread_create_timer_thread): expand timer thread stack size to get rid of segfault on FreeBSD/powerpc64. based on the patch by Steve Wills at . [Bug #8783]

History

#1 Updated by Steve Wills over 1 year ago

There is a back trace of this issue here:

http://lists.freebsd.org/pipermail/freebsd-ruby/2014-January/003968.html

And I've attached a proposed patch.

#2 Updated by Nobuyoshi Nakada over 1 year ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r44671.


thread_pthread.c: expand timer thread stack size

  • thread_pthread.c (rb_thread_create_timer_thread): expand timer thread stack size to get rid of segfault on FreeBSD/powerpc64. based on the patch by Steve Wills at . [Bug #8783]

#3 Updated by Nobuyoshi Nakada over 1 year ago

  • Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: REQUIRED, 2.0.0: REQUIRED, 2.1: REQUIRED

#4 Updated by Usaku NAKAMURA about 1 year ago

  • Related to Bug #9436: r44670以降Solaris10でthread_pthread.cがコンパイルエラー added

#5 Updated by Usaku NAKAMURA about 1 year ago

  • Backport changed from 1.9.3: REQUIRED, 2.0.0: REQUIRED, 2.1: REQUIRED to 1.9.3: DONE, 2.0.0: REQUIRED, 2.1: REQUIRED

backported r44670,r44671, and r44675 into ruby_1_9_3 at r44940.

#6 Updated by Tomoyuki Chikanaga about 1 year ago

  • Backport changed from 1.9.3: DONE, 2.0.0: REQUIRED, 2.1: REQUIRED to 1.9.3: DONE, 2.0.0: DONE, 2.1: REQUIRED

r44670, r44671, r44673 and r44675 were backported to ruby_2_0_0 r45006.

#7 Updated by Yui NARUSE about 1 year ago

  • Backport changed from 1.9.3: DONE, 2.0.0: DONE, 2.1: REQUIRED to 1.9.3: DONE, 2.0.0: DONE, 2.1: DONE

r45119

Also available in: Atom PDF