Project

General

Profile

Bug #8783

ruby 1.9/2.0 crash on exit on FreeBSD/powerpc64

Added by chmeee (Justin Hibbits) over 6 years ago. Updated over 5 years ago.

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

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.


Files

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

Related issues

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

Associated revisions

Revision ad9d4f02
Added by nobu (Nobuyoshi Nakada) almost 6 years 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 [ruby-core:59923]. [ruby-core:56590] [Bug #8783]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 44671
Added by nobu (Nobuyoshi Nakada) almost 6 years 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 [ruby-core:59923]. [ruby-core:56590] [Bug #8783]

Revision 44671
Added by nobu (Nobuyoshi Nakada) almost 6 years 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 [ruby-core:59923]. [ruby-core:56590] [Bug #8783]

Revision 44671
Added by nobu (Nobuyoshi Nakada) almost 6 years 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 [ruby-core:59923]. [ruby-core:56590] [Bug #8783]

Revision 44671
Added by nobu (Nobuyoshi Nakada) almost 6 years 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 [ruby-core:59923]. [ruby-core:56590] [Bug #8783]

Revision 44671
Added by nobu (Nobuyoshi Nakada) almost 6 years 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 [ruby-core:59923]. [ruby-core:56590] [Bug #8783]

Revision 44671
Added by nobu (Nobuyoshi Nakada) almost 6 years 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 [ruby-core:59923]. [ruby-core:56590] [Bug #8783]

Revision 5bcb47db
Added by usa (Usaku NAKAMURA) over 5 years ago

merge revision(s) 44670,44671,44675: [Backport #8783]

    thread_pthread.c: timer thread stack size

    * thread_pthread.c (rb_thread_create_timer_thread): define the stack

size for timer thread at compile time.
* 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 [ruby-core:59923].
[ruby-core:56590] [Bug #8783]

    * thread_pthread.c (rb_thread_create_timer_thread): fix for platforms
      where PTHREAD_STACK_MIN is a dynamic value and not a compile-time
      constant.  [ruby-dev:47911] [Bug #9436]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@44940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision b8cab3fc
Added by nagachika (Tomoyuki Chikanaga) over 5 years ago

merge revision(s) r44670,r44671,r44673,r44675: [Backport #8783]

    thread_pthread.c: timer thread stack size

    * thread_pthread.c (rb_thread_create_timer_thread): define the stack

size for timer thread at compile time.
* 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 [ruby-core:59923].
[ruby-core:56590] [Bug #8783]

    * thread_pthread.c (rb_thread_create_timer_thread): fix for platforms
      where PTHREAD_STACK_MIN is a dynamic value and not a compile-time
      constant.  [ruby-dev:47911] [Bug #9436]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 64e6dd62
Added by naruse (Yui NARUSE) over 5 years ago

merge revision(s) 44670,44671,44673,44675: [Backport #8783]

    thread_pthread.c: timer thread stack size

    * thread_pthread.c (rb_thread_create_timer_thread): define the stack

size for timer thread at compile time.
* 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 [ruby-core:59923].
[ruby-core:56590] [Bug #8783]

    * thread_pthread.c (rb_thread_create_timer_thread): fix for platforms
      where PTHREAD_STACK_MIN is a dynamic value and not a compile-time
      constant.  [ruby-dev:47911] [Bug #9436]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

Updated by nobu (Nobuyoshi Nakada) almost 6 years 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 [ruby-core:59923]. [ruby-core:56590] [Bug #8783]

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

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

Updated by usa (Usaku NAKAMURA) over 5 years ago

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

Updated by usa (Usaku NAKAMURA) over 5 years 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.

Updated by nagachika (Tomoyuki Chikanaga) over 5 years 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.

Updated by naruse (Yui NARUSE) over 5 years 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