[#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-7989 ] signal 4, Illegal instruction.

From: <noreply@...>
Date: 2007-01-19 00:41:45 UTC
List: ruby-core #9961
Bugs item #7989, was opened at 19/01/2007 01:41
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7989&group_id=426

Category: Core
Group: 1.8.5
Status: Open
Resolution: None
Priority: 3
Submitted By: Jerome L (yayel)
Assigned to: Nobody (None)
Summary: signal 4, Illegal instruction.

Initial Comment:
Hi

Got a ruby crash while executing the following rails controller if @gallery is nil at line #11 :


class EspacemariesController < ApplicationController

  verify :only => 'show',
         :params => :client,
         :redirect_to => { :action => 'index' }

  def index    
  end

  def show
    if @gallery = Gallery.find_by_client( params[:client].downcase, :conditions => 'is_archived IS NULL OR is_archived = 0' )
      
      @pictures = Picture.find( :all,
                                :include => 'media_type',
                                :conditions => ['gallery_id = ? AND media_types.type = "Image"', @gallery.id ],
                                :order => 'medias.position') || [ ]
      

      @movies = Media.find( :all,
                            :include => 'media_type',
                            :conditions => ['gallery_id = ? AND media_types.type = "Movie"', @gallery.id ]) || [ ]
    else
      flash[:error] = 'D辿sol辿, nous ne retrouvons pas ce nom de famille.'
      redirect_to :index
    end
  end

end



Here is the gdb trace:

(gdb) core-file ruby18.core
warning: core file may not match specified executable file.
Core was generated by `ruby18'.
Program terminated with signal 4, Illegal instruction.
Loaded symbols for /usr/local/lib/libruby18.so.18
Loaded symbols for /lib/libcrypt.so.3
Loaded symbols for /lib/libm.so.4
Loaded symbols for /usr/lib/libpthread.so.2
Loaded symbols for /lib/libc.so.6
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/readline.so
Loaded symbols for /lib/libreadline.so.6
Loaded symbols for /lib/libncurses.so.6
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/digest/sha2.so
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/digest.so
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/openssl.so
Loaded symbols for /usr/lib/libssl.so.4
Loaded symbols for /lib/libcrypto.so.4
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/fcntl.so
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/strscan.so
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/stringio.so
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/syck.so
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/socket.so
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/etc.so
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/digest/md5.so
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/nkf.so
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/racc/cparse.so
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/iconv.so
Loaded symbols for /usr/local/lib/libiconv.so.3
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd6/zlib.so
Loaded symbols for /lib/libz.so.3
Loaded symbols for /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/mysql.so
Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.15
Loaded symbols for /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/RMagick.so
Loaded symbols for /usr/local/lib/libfreetype.so.9
Loaded symbols for /usr/local/lib/libMagick.so.10
Loaded symbols for /usr/local/lib/libjbig.so.1
Loaded symbols for /usr/local/lib/liblcms.so.1
Loaded symbols for /usr/local/lib/libtiff.so.4
Loaded symbols for /usr/local/lib/libjasper.so.4
Loaded symbols for /usr/local/lib/libjpeg.so.9
Loaded symbols for /usr/local/lib/libpng.so.5
Loaded symbols for /usr/local/lib/libfpx.so.1
Loaded symbols for /usr/X11R6/lib/libfontconfig.so.1
Loaded symbols for /usr/lib/libbz2.so.2
Loaded symbols for /usr/local/lib/libxml2.so.5
Loaded symbols for /usr/local/lib/libWand.so.10
Loaded symbols for /usr/lib/libstdc++.so.5
Loaded symbols for /usr/local/lib/libexpat.so.6
Loaded symbols for /libexec/ld-elf.so.1
#0  0x280a014c in rb_eval (self=Cannot access memory at address 0xbf9fff5c
) at eval.c:2897
2897    {
[New LWP 100486]
(gdb) backtrace
#0  0x280a014c in rb_eval (self=Cannot access memory at address 0xbf9fff5c
) at eval.c:2897
#1  0x280a128c in rb_eval (self=165042340, n=0x88f2aac) at eval.c:3050
#2  0x280a45ae in rb_call0 (klass=143199220, recv=165042340, id=44745, oid=165042340, argc=0, argv=0xbfa007a4, body=0x88f2818, flags=0) at eval.c:5954
#3  0x280a537e in rb_call (klass=143199220, recv=165042340, mid=44745, argc=1, argv=0xbfa007a0, scope=1) at eval.c:6048
#4  0x280a080e in rb_eval (self=165042340, n=0x88f2aac) at ruby.h:654
#5  0x280a0762 in rb_eval (self=165042340, n=0x88f2aac) at eval.c:3453
#6  0x280a45ae in rb_call0 (klass=143199220, recv=165042340, id=45241, oid=165042340, argc=0, argv=0xbfa010e4, body=0x88ebcd4, flags=4) at eval.c:5954
#7  0x280a537e in rb_call (klass=143199220, recv=165042340, mid=45241, argc=1, argv=0xbfa010e0, scope=1) at eval.c:6048
#8  0x280a080e in rb_eval (self=165042340, n=0x88f2aac) at ruby.h:654
#9  0x280a45ae in rb_call0 (klass=143199220, recv=165042340, id=45241, oid=165042340, argc=0, argv=0xbfa01664, body=0x88ebcd4, flags=4) at eval.c:5954
#10 0x280a537e in rb_call (klass=143199220, recv=165042340, mid=45241, argc=1, argv=0xbfa01660, scope=1) at eval.c:6048
#11 0x280a080e in rb_eval (self=165042340, n=0x88f2aac) at ruby.h:654
#12 0x280a45ae in rb_call0 (klass=143199220, recv=165042340, id=45241, oid=165042340, argc=0, argv=0xbfa01be4, body=0x88ebcd4, flags=4) at eval.c:5954
#13 0x280a537e in rb_call (klass=143199220, recv=165042340, mid=45241, argc=1, argv=0xbfa01be0, scope=1) at eval.c:6048
#14 0x280a080e in rb_eval (self=165042340, n=0x88f2aac) at ruby.h:654
#15 0x280a45ae in rb_call0 (klass=143199220, recv=165042340, id=45241, oid=165042340, argc=0, argv=0xbfa02164, body=0x88ebcd4, flags=4) at eval.c:5954
#16 0x280a537e in rb_call (klass=143199220, recv=165042340, mid=45241, argc=1, argv=0xbfa02160, scope=1) at eval.c:6048
#17 0x280a080e in rb_eval (self=165042340, n=0x88f2aac) at ruby.h:654
#18 0x280a45ae in rb_call0 (klass=143199220, recv=165042340, id=45241, oid=165042340, argc=0, argv=0xbfa026e4, body=0x88ebcd4, flags=4) at eval.c:5954
#19 0x280a537e in rb_call (klass=143199220, recv=165042340, mid=45241, argc=1, argv=0xbfa026e0, scope=1) at eval.c:6048
#20 0x280a080e in rb_eval (self=165042340, n=0x88f2aac) at ruby.h:654
#21 0x280a45ae in rb_call0 (klass=143199220, recv=165042340, id=45241, oid=165042340, argc=0, argv=0xbfa02c64, body=0x88ebcd4, flags=4) at eval.c:5954
#22 0x280a537e in rb_call (klass=143199220, recv=165042340, mid=45241, argc=1, argv=0xbfa02c60, scope=1) at eval.c:6048
#23 0x280a080e in rb_eval (self=165042340, n=0x88f2aac) at ruby.h:654
#24 0x280a45ae in rb_call0 (klass=143199220, recv=165042340, id=45241, oid=165042340, argc=0, argv=0xbfa031e4, body=0x88ebcd4, flags=4) at eval.c:5954

(...) 

#4406 0x280a537e in rb_call (klass=135330340, recv=148918640, mid=10513, argc=1, argv=0xbfbfa6d0, scope=1) at eval.c:6048
#4407 0x280a080e in rb_eval (self=148918640, n=0x88f2aac) at ruby.h:654
#4408 0x280a3720 in rb_eval (self=148918640, n=0x88f2aac) at eval.c:3173
#4409 0x280a772d in rb_yield_0 (val=165047900, self=148918640, klass=0, flags=134681800, avalue=2) at eval.c:4987
#4410 0x280a0a58 in rb_eval (self=148914220, n=0x88f2aac) at eval.c:3248
#4411 0x280a30cf in rb_eval (self=148914220, n=0x88f2aac) at eval.c:3283
#4412 0x280a772d in rb_yield_0 (val=6, self=148914220, klass=0, flags=135614480, avalue=0) at eval.c:4987
#4413 0x280adaef in rb_f_loop () at eval.c:5131
#4414 0x280a4a3d in rb_call0 (klass=134769820, recv=148914220, id=3937, oid=165042340, argc=0, argv=0x0, body=0x8085130, flags=2) at eval.c:5656
#4415 0x280a537e in rb_call (klass=134769820, recv=148914220, mid=3937, argc=0, argv=0x0, scope=1) at eval.c:6048
#4416 0x280a080e in rb_eval (self=148914220, n=0x88f2aac) at ruby.h:654
#4417 0x280a3720 in rb_eval (self=148914220, n=0x88f2aac) at eval.c:3173
#4418 0x280a772d in rb_yield_0 (val=3417358, self=148914220, klass=0, flags=135614400, avalue=0) at eval.c:4987
#4419 0x280b225d in rb_f_catch (dmy=148914220, tag=3417358) at eval.c:12972
#4420 0x280a4a2d in rb_call0 (klass=134769820, recv=148914220, id=4001, oid=165042340, argc=1, argv=0xbfbfc3b0, body=0x8084ed8, flags=2) at eval.c:5659
#4421 0x280a537e in rb_call (klass=134769820, recv=148914220, mid=4001, argc=1, argv=0xbfbfc3b0, scope=1) at eval.c:6048
#4422 0x280a080e in rb_eval (self=148914220, n=0x88f2aac) at ruby.h:654
#4423 0x280a3720 in rb_eval (self=148914220, n=0x88f2aac) at eval.c:3173
#4424 0x280a45ae in rb_call0 (klass=135459660, recv=148914220, id=10569, oid=165042340, argc=0, argv=0x0, body=0x8154f70, flags=0) at eval.c:5954
#4425 0x280a537e in rb_call (klass=135459660, recv=148914220, mid=10569, argc=0, argv=0x0, scope=0) at eval.c:6048
#4426 0x280a069f in rb_eval (self=148918640, n=0x88f2aac) at ruby.h:654
#4427 0x280a3720 in rb_eval (self=148918640, n=0x88f2aac) at eval.c:3173
#4428 0x280a45ae in rb_call0 (klass=135330340, recv=148918640, id=10249, oid=165042340, argc=0, argv=0x0, body=0x8072b5c, flags=0) at eval.c:5954
#4429 0x280a537e in rb_call (klass=135330340, recv=148918640, mid=10249, argc=0, argv=0x0, scope=0) at eval.c:6048
#4430 0x280a069f in rb_eval (self=134620600, n=0x88f2aac) at ruby.h:654
#4431 0x280a772d in rb_yield_0 (val=2622734, self=134620600, klass=0, flags=134695720, avalue=0) at eval.c:4987
#4432 0x280b225d in rb_f_catch (dmy=134620600, tag=2622734) at eval.c:12972
#4433 0x280a4a2d in rb_call0 (klass=134769820, recv=134620600, id=4001, oid=165042340, argc=1, argv=0xbfbfdc50, body=0x8084ed8, flags=2) at eval.c:5659
#4434 0x280a537e in rb_call (klass=134769820, recv=134620600, mid=4001, argc=1, argv=0xbfbfdc50, scope=1) at eval.c:6048
#4435 0x280a080e in rb_eval (self=134620600, n=0x88f2aac) at ruby.h:654
#4436 0x280a3720 in rb_eval (self=134620600, n=0x88f2aac) at eval.c:3173
#4437 0x280a45ae in rb_call0 (klass=134620520, recv=134620600, id=5041, oid=165042340, argc=0, argv=0xbfbfe5b4, body=0x807517c, flags=0) at eval.c:5954
#4438 0x280a537e in rb_call (klass=134620520, recv=134620600, mid=5041, argc=1, argv=0xbfbfe5b0, scope=0) at eval.c:6048
#4439 0x280a069f in rb_eval (self=134765040, n=0x88f2aac) at ruby.h:654
#4440 0x280ada3c in ruby_exec_internal () at eval.c:1604
#4441 0x280ada82 in ruby_exec () at eval.c:1624
#4442 0x280aebbf in ruby_run () at eval.c:1634
#4443 0x08048694 in main ()
(gdb) 


Any idea ?

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

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

In This Thread

Prev Next