[#30872] segv when reentering into Fiber with callcc — sheepman <sheepman@...>
こんばんは、sheepman です。
ささだです。
遠藤と申します。
ささだです。
遠藤です。
ささだです。
まつもと ゆきひろです
In article <E1Hw9be-0002Rs-Qg@x31>,
まつもと ゆきひろです
[#30920] Integer#prime_division と Prime — TOYOFUKU Chikanobu <nobu_toyofuku@...>
豊福です。
[#30929] secrand.rb — "NAKAMURA, Hiroshi" <nakahiro@...>
-----BEGIN PGP SIGNED MESSAGE-----
In article <4669066C.2080307@sarion.co.jp>,
-----BEGIN PGP SIGNED MESSAGE-----
In article <46694461.4060706@sarion.co.jp>,
-----BEGIN PGP SIGNED MESSAGE-----
In article <46697C0B.8060402@sarion.co.jp>,
-----BEGIN PGP SIGNED MESSAGE-----
In article <4669DAB0.4050705@sarion.co.jp>,
-----BEGIN PGP SIGNED MESSAGE-----
In article <466AA73C.9030407@sarion.co.jp>,
-----BEGIN PGP SIGNED MESSAGE-----
なかだです。
-----BEGIN PGP SIGNED MESSAGE-----
In article <466D5B1D.8030205@sarion.co.jp>,
-----BEGIN PGP SIGNED MESSAGE-----
In article <469253E9.9010203@sarion.co.jp>,
-----BEGIN PGP SIGNED MESSAGE-----
-----BEGIN PGP SIGNED MESSAGE-----
In article <4694338C.7090303@sarion.co.jp>,
-----BEGIN PGP SIGNED MESSAGE-----
In article <4694E6A6.2060303@sarion.co.jp>,
-----BEGIN PGP SIGNED MESSAGE-----
なかだです。
-----BEGIN PGP SIGNED MESSAGE-----
なかだです。
-----BEGIN PGP SIGNED MESSAGE-----
[#30971] Linux/ia64で'ucontext_t' undeclared — akira yamada / やまだあきら <akira@...>
最近のRuby 1.9をLinux/ia64上でmakeしようとすると
まつもと ゆきひろです
Yukihiro Matsumoto さんは書きました:
まつもと ゆきひろです
Yukihiro Matsumoto さんは書きました:
まつもと ゆきひろです
In article <E1HygwQ-0001OA-4f@x31>,
ささだです。
[#30996] new block parameter rule — SASADA Koichi <ko1@...>
ささだです。
[#31002] ("a".."f").step(2) {|x| p x} — Tanaka Akira <akr@...>
string の range の step で引数が効かないように思います。
まつもと ゆきひろです
ささだです。
まつもと ゆきひろです
[#31028] rb_get_interned — Nobuyoshi Nakada <nobu@...>
なかだです。
[#31034] Re: [ruby-cvs:19815] Ruby:r12579 (trunk): * parse.y (rb_intern2): name may not be NUL-terminated. — "U.Nakamura" <usa@...>
こんにちは、なかむら(う)です。
[#31046] Conditional jump or move depends on uninitialised value(s) in TOPLEVEL_BINDING — Tanaka Akira <akr@...>
valgrind をかけたところとりあえず最初のが
ささだです。
[#31063] make error at bcc32 — "Nebata" <tnebata@...>
ねばたです。
[#31066] consts for gdb support — Nobuyoshi Nakada <nobu@...>
なかだです。
[#31068] $&;[] dumps core — "Yusuke ENDOH" <mame@...>
遠藤と申します。
ささだです。
遠藤です。
ささだです。
遠藤です。
[#31072] {*0} dumps core — "Yusuke ENDOH" <mame@...>
遠藤と申します。
ささだです。
[ruby-dev:31042] SAVE_ROOT_JMPBUF
In article <871wge0xxs.fsf@fsij.org>,
Tanaka Akira <akr@fsij.org> writes:
> どうも _tag が cycle になるようで、以下のような assertion を
> 入れて試してますが、これって (スタックの伸長方向を x86 と等
> しいと仮定して) 正しいですかね?
>
> Index: eval_intern.h
> ===================================================================
> --- eval_intern.h (revision 12537)
> +++ eval_intern.h (working copy)
> @@ -127,2 +127,4 @@ char *strrchr _((const char *, const cha
>
> +#include <assert.h>
> +
> #define TH_PUSH_TAG(th) do { \
> @@ -132,2 +134,3 @@ char *strrchr _((const char *, const cha
> _tag.prev = _th->tag; \
> + assert(_th->tag == 0 || &_tag < _th->tag); \
> _th->tag = &_tag;
これですが、x86 でも cycle じゃないんですが、起きます。
% uname -a
Linux nute 2.6.18-4-486 #1 Wed May 9 22:23:40 UTC 2007 i686 GNU/Linux
% gdb miniruby
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) break rb_fiber_start
Breakpoint 1 at 0x80df729: file cont.c, line 522.
(gdb) run -e 'Fiber.new {}.yield'
Starting program: /home/akr/ruby/yarvo2/ruby/miniruby -e 'Fiber.new {}.yield'
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1210476320 (LWP 31013)]
[New Thread -1211208784 (LWP 31016)]
[Switching to Thread -1210476320 (LWP 31013)]
Breakpoint 1, rb_fiber_start () at cont.c:522
522 rb_thread_t *th = GET_THREAD();
(gdb) n
528 TH_PUSH_TAG(th);
(gdb)
522 rb_thread_t *th = GET_THREAD();
(gdb)
528 TH_PUSH_TAG(th);
(gdb)
529 if ((state = EXEC_TAG()) == 0) {
(gdb) p ruby_current_thread->tag
$1 = (struct rb_vm_tag *) 0xbffc0ec8
(gdb) p ruby_current_thread->tag->prev
$2 = (struct rb_vm_tag *) 0xbffc0e94
(gdb) p ruby_current_thread->tag->prev->prev
$3 = (struct rb_vm_tag *) 0xbffc0fa0
(gdb) p ruby_current_thread->tag->prev->prev->prev
$4 = (struct rb_vm_tag *) 0x0
(gdb)
というように、0xbffc0ec8 -> 0xbffc0e94 と prev で増加します。
fiber が起動した時に rb_thread_t の tag を初期化するコードが
必要なように思うんですが、どうでしょうか。
--
[田中 哲][たなか あきら][Tanaka Akira]