Re: [Fxruby-users] segfault with FXTreeList in Ruby 1.8.0
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <jl...@cf...> - 2003-08-25 20:56:52
|
Joel VanderWerf wrote: > If you want to take a look at the code itself, it's at: > > http://PATH.Berkeley.EDU/~vjoel/tree-bug/observable-0.3-alpha.tgz > http://PATH.Berkeley.EDU/~vjoel/tree-bug/foxtails-0.2-alpha.tgz > > The buggy code is in foxtails/examples/tree.rb. I can reproduce the bug, but so far haven't been able to track down the root cause. I did notice that if I quit the program using the File->Quit menu option instead the Ctrl+Q accelerator that I don't get the segfault, but the significance of this is still unclear. At the time of the crash we can see that it's trying to call FXTreeItem::setFocus() on one of the tree items. I added some print statements to see which tree items are getting garbage-collected (and when) and it appears that this tree item is indeed still "alive" at this point, so I concur that it doesn't seem to be a GC-related problem. I also did a quick build against the latest CVS sources for Ruby (post 1.8.0) but this didn't change anything. I'm sort-of shooting in the dark at the moment, but will let you know if I can figure it out :( |