[wxruby-users] wxRuby segfault on exit

Alex Fenton alex at pressure.to
Tue Apr 22 04:09:28 EDT 2008


Hi

Lucas Levin wrote:
> I'm running GNOME version 2.22.1 on Ubuntu 8.04 release candidate (it is
> possible this is the problem, I'll use a livecd later to check on an
> earlier ubuntu). I'm using the gem retrieved using 'gem install wxruby',
> which is 1.9.5.
>   
I use current 7.10 Ubuntu, so no need to test there to see if it's the 
distro. The binary gem you installed was built on that.
> As for some code none of the samples I tried worked. Here is nothing.rb
>
>   
OK, there's something wrong if nothing.rb isn't working. Most of the 
bugs that have been fixed in SVN since 1.9.5 are pretty esoteric.
> Gives this:
> minimal/nothing.rb:13: [BUG] Segmentation fault
> ruby 1.8.6 (2007-09-24) [i486-linux]
>   
One thing springs to mind here. The ruby-core team decided it was a good 
idea to change bits of ruby's GC code between two patch levels of ruby 
1.8.6 and this created a problem in wxRuby which is now fixed in SVN. 
This would show up as something like "object allocation during GC" error 
message.

Could you try running it under gdb please? The binary is stripped so it 
may give anything useful, but worth a shot.

 gdb --args ruby -rubygems minimal/nothing.rb

Then at the gdb prompt:

 > r

Then when it crashes:

 > whe

And post back the first 20-odd lines of what results.
>> Again, can you give us a clue about what symbol was missing? And what 
>> wxWidgets you are building against?
>>     
> I'm using 2.8.7.1, BUT I also have version 2.6.3.2 runtime installed for VLC.
>   
The binary gem includes a statically linked version of wxWidgets so your 
system version shouldn't matter. It will matter if you're building 
yourself against a distro package.
> I don't have the i18n package or the wx-common package installed.
> As the the missing symbol, I don't know right now but I'll get back to you.
>   
> If it is of any significance, during installation it said the PrinterDC component would be skipped for some reason.
That's normal on GTK. If that's the only component being skipped, it's 
trying to build everything else including all optional components like 
Scintillla, MediaCtrl, OpenGL. wxRuby's configure should detect if these 
aren't available and skip them, but it could be that this hasn't 
happened and that's the reason for the missing symbol. If we knew the 
symbol that would pin it down

cheers
alex


More information about the wxruby-users mailing list