[fxruby-users] FXTableItem.new segmentation fault

Len Lawrence lcl at tarazed.demon.co.uk
Thu Sep 25 03:55:20 EDT 2008


Tim Smith wrote:
>
> Does the following code crash for anyone else? My app is unpredictably 
> crashing with a segmentation fault, which I can sometimes reproduce 
> with this contrived test case.
>
> require 'fox16'; include Fox
>  
> start = Time.now
> count = 0
> items = []
> while true
>   28125.times {|i|
>     items[i] = FXTableItem.new ''
>   }
>   count += 1
>   puts "#{count}, after #{Time.now - start} seconds"
> end
>
> The eventual error:
>
> c:/program files/ruby/lib/ruby/gems/1.8/gems/fxruby-1.6.16-x86-mswin32-60/lib/fox16/kwargs.rb:2367: [BUG] Segmentation fault
> ruby 1.8.6 (2007-09-24) [i386-mswin32]
>
> I’ve had this code crash on XP and Vista (but not Linux), often in 
> under a minute, though not always. Does anyone know what might be 
> going on?
>
> Thanks for any help,
>
Hi Tim

It has been running for nearly an hour now on kernel
2.6.24.7-desktop-1mnb
with ruby 1.8.7 (2008-05-31 patchlevel 0) [x86_64-linux]
fxruby 1.6.14
swapping cores at regular intervals, average cpu use 50%.
4 Gb RAM.
Count 4641 after 3680 seconds.

Len




More information about the fxruby-users mailing list