Content-Type: multipart/alternative; boundary="------------000206040703080507050609" --------------000206040703080507050609 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Kou, i found it, narrowed it down to the attached script. tested it with rg2 Revision: 3589 affected ruby versions: ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux] ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux] here are my results: ruby `for x in /opt/ruby-gnome2/*; do echo -n "-I$x/lib -I$x=20 -I$x/src/lib -I$x/src "; done ` ruby/gc_bug_attempt.rb "ruby:1.8.6, gtk:[2, 14, 7],rg2:[0, 19, 0]" "start 02" "created: #" "start 03" "destroying: #" ruby/gc_bug_attempt.rb:33: [BUG] object allocation during garbage=20 collection phase ruby 1.8.6 (2008-08-11) [i686-linux] ruby/gc_bug_attempt.rb:33: [BUG] Segmentation fault ruby 1.8.6 (2008-08-11) [i686-linux] unaffected ruby version: ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-lin= ux] ruby `for x in /opt/ruby-gnome2/*; do echo -n "-I$x/lib -I$x=20 -I$x/src/lib -I$x/src "; done ` ruby/gc_bug_attempt.rb Xlib: extension "RANDR" missing on display ":0.0". "ruby:1.8.6, gtk:[2, 14, 7],rg2:[0, 19, 0]" "start 02" "created: #" "start 03" "destroying: #" ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed "created: #" "start 04" "destroying: #" ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already=20 destroyed "created: #" ... if i trigger GC myself, then it needs 2 runs, if not, it needs around 11=20 runs on my athlon64/x86_32/3G ram, gentoo just run it and press the button until the bug appears. another thing, i got a question, at line 42 there is a block, is there=20 wrong something with that? i'd like to use that, i want to save some=20 settings done by the user on TreeViewColumn.destroy hope it helps finding it thank you balint Kouhei Sutou wrote: > Hi, > > In <497F7BB1.4010405@gmail.com> > "Re: [ruby-gnome2-devel-en] problem with garbaje collection phase" on= Tue, 27 Jan 2009 23:25:05 +0200, > Dobai-Pataky B=C3=A1lint wrote: > > =20 >> i was attempting to write a small script to catch the bug, but very so= on ended >> up with the attached one resulting this: >> >> $ ruby gc_bug_attempt.rb >> Xlib: extension "RANDR" missing on display ":0.0". >> "1.8.6" >> [2, 14, 7] >> [0, 18, 1] >> Segmentation fault >> >> clicking the button segfaults. >> this is not the garbage allocation bug. >> >> can you reproduce this? >> =20 > > Thanks for show a sample program. > But I can't reproduce it with: > > * ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] > * Ruby-GNOME2 trunk > > If you can, could you try Ruby-GNOME2 trunk? > > % cd /tmp > % svn co https://ruby-gnome2.svn.sourceforge.net/svnroot/ruby-gnome2/= ruby-gnome2/trunk ruby-gnome2 > % cd ruby-gnome2 > % ruby extconf.rb > % make > /dev/null > % ruby `for x in /tmp/ruby-gnome2/*; do echo -n "-I$x/lib -I$x -I$x/s= rc/lib -I$x/src "; done ` /tmp/gc_bug_attempt.rb > > > Thanks, > -- > kou > > -----------------------------------------------------------------------= ------- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > ruby-gnome2-devel-en mailing list > ruby-gnome2-devel-en@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > =20 --------------000206040703080507050609 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Kou, i found it, narrowed it down to the attached script.

tested it with=C2=A0
r= g2 Revision: 3589

affected ruby versions:
ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]

here are my results:
ruby `for x in /opt/ruby-gnome2/*; do echo -n "-I$x/lib -I$x -I$x/src/lib -I$x/src "; done ` ruby/gc_bug_attempt.rb
"ruby:1.8.6, gtk:[2, 14, 7],rg2:[0, 19, 0]"
"start 02"
"created: #<Gtk::TreeView:0xb5dc76c4 ptr=3D0x827f050>"
"start 03"
"destroying: #<Gtk::TreeView:0xb5dc76c4 ptr=3D0x827f050>"
ruby/gc_bug_attempt.rb:33: [BUG] object allocation during garbage collection phase
ruby 1.8.6 (2008-08-11) [i686-linux]

ruby/gc_bug_attempt.rb:33: [BUG] Segmentation fault
ruby 1.8.6 (2008-08-11) [i686-linux]


unaffected ruby version: ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux]
ruby `for x in /opt/ruby-gnome2/*; do echo -n "-I$x/lib -I$x -I$x/src/lib -I$x/src "; done ` ruby/gc_bug_attempt.rb
Xlib:=C2=A0 extension "RANDR" missing on display ":0.0".
"ruby:1.8.6, gtk:[2, 14, 7],rg2:[0, 19, 0]"
"start 02"
"created: #<Gtk::TreeView:0xb5d7f720 ptr=3D0x845a030>"
"start 03"
"destroying: #<Gtk::TreeView:0xb5d7f720 ptr=3D0x845a030>"
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
"created: #<Gtk::TreeView:0xb5d7f6f8 ptr=3D0x845a200>"
"start 04"
"destroying: #<Gtk::TreeView:0xb5d7f6f8 ptr=3D0x845a200>"
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
ruby/gc_bug_attempt.rb:20: warning: GRClosure invoking callback: already destroyed
"created: #<Gtk::TreeView:0xb5d7f6bc ptr=3D0x845a3d0>"
...

if i trigger GC myself, then it needs 2 runs, if not, it needs around 11 runs on my athlon64/x86_32/3G ram, gentoo
just run it and press the button until the bug appears.

another thing, i got a question, at line 42 there is a block, is there wrong something with that? i'd like to use that, i want to save some settings done by the user on TreeViewColumn.destroy

hope it helps finding it
thank you
balint


Kouhei Sutou wrote:
Hi,

In <497F7BB1.4010405@gmail.com>
  "Re: [ruby-gnome2-devel-en] problem with garbaje collection phase" on T=
ue, 27 Jan 2009 23:25:05 +0200,
  Dobai-Pataky B=C3=A1lint <dpblnt@gmail.com> wrote:

  
i was attempting to write a small script to catch the =
bug, but very soon ended
up with the attached one resulting this:

$ ruby gc_bug_attempt.rb
Xlib:=C2=A0 extension "RANDR" missing on display ":0.0".
"1.8.6"
[2, 14, 7]
[0, 18, 1]
Segmentation fault

clicking the button segfaults.
this is not the garbage allocation bug.

can you reproduce this?
    

Thanks for show a sample program.
But I can't reproduce it with:

  * ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
  * Ruby-GNOME2 trunk

If you can, could you try Ruby-GNOME2 trunk?

  % cd /tmp
  % svn co https://ruby-=
gnome2.svn.sourceforge.net/svnroot/ruby-gnome2/ruby-gnome2/trunk ruby=
-gnome2
  % cd ruby-gnome2
  % ruby extconf.rb
  % make > /dev/null
  % ruby `for x in /tmp/ruby-gnome2/*; do echo -n "-I$x/lib -I$x -I$x/src=
/lib -I$x/src "; done ` /tmp/gc_bug_attempt.rb


Thanks,
--
kou

-------------------------------------------------------------------------=
-----
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
ruby-gnome2-devel-en mailing list
ruby-gnome2-devel-en@lists.sourceforge.net
https://lists.sourceforge.net/lists/=
listinfo/ruby-gnome2-devel-en
  
--------------000206040703080507050609--