[#5219] Segmentation fault in timeout.rb — Michel Pastor <K@...>

Hi,

18 messages 2005/06/16
[#5220] Re: Segmentation fault in timeout.rb — Eric Hodel <drbrain@...7.net> 2005/06/16

[#5221] Re: Segmentation fault in timeout.rb — Michel Pastor <K@...> 2005/06/16

On Fri, 17 Jun 2005 05:03:18 +0900

[#5223] Re: Segmentation fault in timeout.rb — nobu.nokada@... 2005/06/17

Hi,

[#5296] Subversion — Shugo Maeda <shugo@...>

Hi,

64 messages 2005/06/30
[#5297] Re: Subversion — Curt Hibbs <curt@...> 2005/06/30

Shugo Maeda wrote:

[#5298] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/06/30

Curt Hibbs wrote:

[#5301] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, Nikolai Weibull

[#5304] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/06/30

Austin Ziegler wrote:

[#5305] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, Nikolai Weibull

[#5307] Re: Subversion — mathew <meta@...> 2005/06/30

Austin Ziegler wrote:

[#5308] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, mathew <meta@pobox.com> wrote:

[#5311] Re: Subversion — mathew <meta@...> 2005/07/01

Austin Ziegler wrote:

[#5323] Re: Subversion — Austin Ziegler <halostatue@...> 2005/07/01

On 7/1/05, mathew <meta@pobox.com> wrote:

[#5325] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/07/01

Austin Ziegler wrote:

Re: [ ruby-Bugs-2038 ] ruby 1.8 CVS do not work with --enable-pthread configure option

From: ville.mattila@...
Date: 2005-06-20 06:27:06 UTC
List: ruby-core #5254
Hello,

>
>Index: eval.c
>===================================================================
>RCS file: /src/ruby/eval.c,v
>retrieving revision 1.616.2.101
>diff -u -r1.616.2.101 eval.c
>--- eval.c 12 Jun 2005 16:58:41 -0000    1.616.2.101
>+++ eval.c 19 Jun 2005 08:03:33 -0000
>@@ -133,9 +133,17 @@
>* It is not required that setjmp is called at run time, since the problem
is
>* register usage.
>*/
>+#if defined (__GNUC__) && (defined(sparc) || defined(__sparc__))
>+#define DUMMY_SETJMP \
>+ ({ __asm__ volatile ("" : : :  \
>+    "%o0", "%o1", "%o2", "%o3", "%o4", "%o5", "%o7", \
>+    "%l0", "%l1", "%l2", "%l3", "%l4", "%l5", "%l6", "%l7", \
>+    "%i0", "%i1", "%i2", "%i3", "%i4", "%i5", "%i7"); })
>+#else
>static jmp_buf dummy_setjmp_jmp_buf;
>int dummy_setjmp_false = 0;
>#define DUMMY_SETJMP (dummy_setjmp_false ? setjmp(dummy_setjmp_jmp_buf) :
0)
>+#endif
>#define ruby_longjmp(env, val) rb_jump_context(env, val)
>#define ruby_setjmp(j) ((j)->status = 0, DUMMY_SETJMP,
>getcontext(&(j)->context), (j)->status)
>#else

 This patch works correctly. It passes the ruby tests correctly. Could you
put this to CVS. Thanks for very intersting
 gdb session and analysis. Maybe there is bug in somewhere in solaris
setjmp function family? In linux this works just fine.


 - Ville




In This Thread

Prev Next