[#9869] a block argument within a block which argument has the same name leaks — <noreply@...>

Bugs item #7680, was opened at 2007-01-08 22:53

34 messages 2007/01/08
[#9871] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Yukihiro Matsumoto <matz@...> 2007/01/08

Hi,

[#9872] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Evan Webb <evan@...> 2007/01/08

On Jan 8, 2007, at 2:30 PM, Yukihiro Matsumoto wrote:

[#9873] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Yukihiro Matsumoto <matz@...> 2007/01/08

Hi,

[#9876] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — dblack@... 2007/01/09

Hi --

[#9878] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Yukihiro Matsumoto <matz@...> 2007/01/09

Hi,

[#9879] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — dblack@... 2007/01/09

Hi --

[#9880] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Yukihiro Matsumoto <matz@...> 2007/01/09

Hi,

[#9882] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Evan Phoenix <evan@...> 2007/01/09

[#9885] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Yukihiro Matsumoto <matz@...> 2007/01/09

Hi,

[#9887] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Evan Phoenix <evan@...> 2007/01/09

[#9888] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Charles Oliver Nutter <charles.nutter@...> 2007/01/09

Evan Phoenix wrote:

[#9892] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Yukihiro Matsumoto <matz@...> 2007/01/09

Hi,

[#9899] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Charles Oliver Nutter <charles.nutter@...> 2007/01/10

Yukihiro Matsumoto wrote:

[#9904] Re: [ ruby-Bugs-7680 ] a block argument within a block which argument has the same name leaks — Yukihiro Matsumoto <matz@...> 2007/01/10

Hi,

[#9960] Scoping and locating definitions — Jos Backus <jos@...>

Consider the following:

17 messages 2007/01/18
[#9964] Re: Scoping and locating definitions — Pit Capitain <pit@...> 2007/01/19

Jos Backus schrieb:

[#9966] Re: Scoping and locating definitions — Jos Backus <jos@...> 2007/01/19

On Fri, Jan 19, 2007 at 06:40:03PM +0900, Pit Capitain wrote:

[#9972] Re: Scoping and locating definitions — Jos Backus <jos@...> 2007/01/19

On Sat, Jan 20, 2007 at 02:18:19AM +0900, Jos Backus wrote:

[#9996] new method dispatch rule (matz' proposal) — SASADA Koichi <ko1@...>

Hi,

50 messages 2007/01/23
[#10002] Re: new method dispatch rule (matz' proposal) — Daniel DeLorme <dan-ml@...42.com> 2007/01/23

SASADA Koichi wrote:

[#10003] Re: new method dispatch rule (matz' proposal) — Yukihiro Matsumoto <matz@...> 2007/01/23

Hi,

[#10004] Re: new method dispatch rule (matz' proposal) — James Edward Gray II <james@...> 2007/01/23

On Jan 23, 2007, at 7:41 AM, Yukihiro Matsumoto wrote:

[#10017] Re: new method dispatch rule (matz' proposal) — Daniel DeLorme <dan-ml@...42.com> 2007/01/24

Yukihiro Matsumoto wrote:

[#10018] Re: new method dispatch rule (matz' proposal) — Yukihiro Matsumoto <matz@...> 2007/01/24

Hi,

[#10024] Re: new method dispatch rule (matz' proposal) — Daniel DeLorme <dan-ml@...42.com> 2007/01/24

Yukihiro Matsumoto wrote:

[#10027] Re: new method dispatch rule (matz' proposal) — Yukihiro Matsumoto <matz@...> 2007/01/24

Hi,

[#10048] Re: new method dispatch rule (matz' proposal) — Evan Phoenix <evan@...> 2007/01/25

The more this discussion goes on, the more I worry that Joe Q Public

[#10019] stable branch policy & schedule for 1.8.6 — "Akinori MUSHA" <knu@...>

Core developers,

29 messages 2007/01/24
[#10021] Re: stable branch policy & schedule for 1.8.6 — Charles Oliver Nutter <charles.nutter@...> 2007/01/24

Akinori MUSHA wrote:

[#10032] Re: stable branch policy & schedule for 1.8.6 — Joel VanderWerf <vjoel@...> 2007/01/24

Charles Oliver Nutter wrote:

[#10085] Collaborative Ruby Language Specification — "John Lam (CLR)" <jflam@...>

Hi Everyone,

36 messages 2007/01/28
[#10108] Re: Collaborative Ruby Language Specification — Charles Oliver Nutter <charles.nutter@...> 2007/01/29

M. Edward (Ed) Borasky wrote:

[#10112] Re: Collaborative Ruby Language Specification — "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@...> 2007/01/30

-----BEGIN PGP SIGNED MESSAGE-----

[#10114] add usage of uri.userinfo to open-uri.rb — <noreply@...>

Patches item #8309, was opened at 2007-01-30 15:25

16 messages 2007/01/30
[#10131] Re: [ ruby-Patches-8309 ] add usage of uri.userinfo to open-uri.rb — Yukihiro Matsumoto <matz@...> 2007/01/31

[#10132] Re: [ ruby-Patches-8309 ] add usage of uri.userinfo to open-uri.rb — Paulo Kh <paulo.koch@...> 2007/01/31

On 2007/01/31, at 06:07, Yukihiro Matsumoto wrote:

[#10137] Re: [ ruby-Patches-8309 ] add usage of uri.userinfo to open-uri.rb — Yukihiro Matsumoto <matz@...> 2007/01/31

Hi,

[#10139] Re: [ ruby-Patches-8309 ] add usage of uri.userinfo to open-uri.rb — Sam Roberts <sroberts@...> 2007/01/31

On Thu, Feb 01, 2007 at 01:19:34AM +0900, Yukihiro Matsumoto wrote:

[#10143] Re: [ ruby-Patches-8309 ] add usage of uri.userinfo to open-uri.rb — Yukihiro Matsumoto <matz@...> 2007/02/01

Hi,

[ ruby-Bugs-7603 ] miniruby segfaults while building ruby 1.8.5p2 on ppc/linux

From: <noreply@...>
Date: 2007-01-05 19:33:49 UTC
List: ruby-core #9861
Bugs item #7603, was opened at 2007-01-05 20:33
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7603&group_id=426

Category: None
Group: 1.8.5
Status: Open
Resolution: None
Priority: 3
Submitted By: Arkadiusz Miskiewicz (arekm)
Assigned to: Nobody (None)
Summary: miniruby segfaults while building ruby 1.8.5p2 on ppc/linux

Initial Comment:

segfaults randomly on this case:

[builder2@forge ruby-1.8.5-p2]$ ./miniruby ./ext/extmk.rb
/home/users/builder2/rpm/BUILD/ruby-1.8.5-p2/lib/mkmf.rb:887: [BUG] Segmentation fault
ruby 1.8.5 (2006-12-04) [powerpc-linux]

Aborted

Configured as:

  $ ./configure LDFLAGS=-Wl,--as-needed  CFLAGS=-O2 -fno-strict-aliasing -fwrapv -fsigned-char -gdwarf-2 -g2  CXXFLAGS=-O2 -fno-strict-aliasing -fwrapv -fsigned-cha
r -gdwarf-2 -g2  FFLAGS=-O2 -fno-strict-aliasing -fwrapv -fsigned-char -gdwarf-2 -g2  CPPFLAGS= CC=ppc-pld-linux-gcc CXX=ppc-pld-linux-g++ --host=ppc-pld-linux --bu
ild=ppc-pld-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/
usr/lib --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --x-libraries=/usr/lib --enable-share
d --enable-pthread


gdb run:

[builder2@forge ruby-1.8.5-p2]$ gdb --args ./miniruby ./ext/extmk.rb
GNU gdb 6.6
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 "ppc-pld-linux"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /home/users/builder2/rpm/BUILD/ruby-1.8.5-p2/miniruby ./ext/extmk.rb

Program received signal SIGSEGV, Segmentation fault.
scope_dup (scope=0x4a0) at eval.c:8100
8100        scope->flags |= SCOPE_DONT_RECYCLE;
(gdb) print scope
$1 = (struct SCOPE *) 0x4a0
(gdb) print scope->flags
Cannot access memory at address 0x4b0
(gdb) where
#0  scope_dup (scope=0x4a0) at eval.c:8100
#1  0x100188d8 in rb_call0 (klass=0, recv=0, id=0, oid=6561, argc=0, argv=0x0, body=0x0, flags=0) at eval.c:5966
#2  0x10018f08 in rb_call (klass=4160469360, recv=4160463456, mid=11401, argc=1, argv=0xffb9b5e0, scope=1) at eval.c:6048
#3  0x1001f6a8 in rb_eval (self=4160463456, n=<value optimized out>) at eval.c:3458
#4  0x100227ec in rb_eval (self=4160463456, n=<value optimized out>) at eval.c:3173
#5  0x100206c0 in rb_eval (self=4160463456, n=<value optimized out>) at eval.c:3624
#6  0x10018b28 in rb_call0 (klass=4160469360, recv=4160463456, id=11441, oid=0, argc=2, argv=0xffba25b0, body=0xf7f5f6d8, flags=-4597828) at eval.c:5954
#7  0x10018f08 in rb_call (klass=4160469360, recv=4160463456, mid=11441, argc=2, argv=0xffba25b0, scope=1) at eval.c:6048
#8  0x1001f6a8 in rb_eval (self=4160463456, n=<value optimized out>) at eval.c:3458
#9  0x1001f480 in rb_eval (self=4160463456, n=<value optimized out>) at eval.c:3437
#10 0x10020754 in rb_eval (self=4160463456, n=<value optimized out>) at eval.c:3639
#11 0x10018b28 in rb_call0 (klass=4160469360, recv=4160463456, id=11001, oid=1, argc=0, argv=0x0, body=0xf7f489f8, flags=0) at eval.c:5954
#12 0x10018f08 in rb_call (klass=4160469360, recv=4160463456, mid=11001, argc=0, argv=0x0, scope=2) at eval.c:6048
#13 0x1001f820 in rb_eval (self=4160463456, n=<value optimized out>) at eval.c:3464
#14 0x10026830 in rb_load (fname=4160225568, wrap=<value optimized out>) at eval.c:6843
#15 0x10026e60 in rb_require_safe (fname=4160383272, safe=0) at eval.c:7162
#16 0x10027044 in rb_f_require (obj=<value optimized out>, fname=1184) at eval.c:7046
#17 0x1000ff0c in call_cfunc (func=0xf7fa91a8, recv=114, len=<value optimized out>, argc=1476396066, argv=0x1001860c) at eval.c:5660
#18 0x10018bb8 in rb_call0 (klass=4160469192, recv=4160463456, id=9689, oid=4290428144, argc=1, argv=0xffbacce0, body=0xf7fa9118, flags=2) at eval.c:5810
#19 0x10018f08 in rb_call (klass=4160469192, recv=4160463456, mid=9689, argc=1, argv=0xffbacce0, scope=1) at eval.c:6048
#20 0x1001f6a8 in rb_eval (self=4160463456, n=<value optimized out>) at eval.c:3458
#21 0x10027270 in ruby_exec_internal () at eval.c:1604
#22 0x100272cc in ruby_exec () at eval.c:1624
#23 0x1002731c in ruby_run () at eval.c:1634
#24 0x1000c5d8 in main (argc=2, argv=0x1, envp=<value optimized out>) at main.c:46
(gdb) frame 1
#1  0x100188d8 in rb_call0 (klass=0, recv=0, id=0, oid=6561, argc=0, argv=0x0, body=0x0, flags=0) at eval.c:5966
5966                POP_SCOPE();
(gdb) l
5961                if (event_hooks) {
5962                    EXEC_EVENT_HOOK(RUBY_EVENT_RETURN, body, recv, id, klass);
5963                }
5964                POP_VARS();
5965                POP_CLASS();
5966                POP_SCOPE();
5967                ruby_cref = saved_cref;
5968                if (safe >= 0) ruby_safe_level = safe;
5969                switch (state) {
5970                  case 0:
(gdb)                                                              

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7603&group_id=426

In This Thread

Prev Next