[csw-users] gtk segmentation fault

Denis I. Morozov d_frost at mail.ru
Mon Jan 16 06:31:23 CET 2006


James Lee пишет:
> On 13/01/06, 03:48:00, Denis "I." Morozov <d_frost at mail.ru> wrote regarding 
> Re: [csw-users] gtk segmentation fault:
> 
> 
>>I executed "$ gdb /opt/csw/bin/gaim ./core":
> 
> 
>>(gdb) where
>>#0  0xfe81f82c in _lwp_kill () from /usr/lib/libc.so.1
>>#1  0xfe7d0a24 in raise () from /usr/lib/libc.so.1
>>#2  0xfe7b6ce0 in abort () from /usr/lib/libc.so.1
>>#3  0xfdf461a8 in __sighndlr () from /usr/lib/libthread.so.1
>>#4  0xfdf3fed8 in call_user_handler () from /usr/lib/libthread.so.1
>>#5  <signal handler called>
>>#6  0x00000000 in ?? ()
>>#7  0xfe2da378 in fbRasterizeTrapezoid () from /opt/csw/lib/libcairo.so.2
>>#8  0xfe2daa70 in pixman_compositeGeneral () from 
> 
> /opt/csw/lib/libcairo.so.2
> 
>>#9  0xfe2caa6c in _cairo_pixman_composite () from 
> 
> /opt/csw/lib/libcairo.so.2
> 
>>#10 0xfe2a5344 in _cairo_image_surface_assume_ownership_of_data ()
>>    from /opt/csw/lib/libcairo.so.2
>>#11 0xfe2a5344 in _cairo_image_surface_assume_ownership_of_data ()
>>    from /opt/csw/lib/libcairo.so.2
>>Previous frame identical to this frame (corrupt stack?)
>>(gdb)
> 
> 
> 
> This is very similar to an error I have seen, see bug:
> http://www.blastwave.org/mantis/view_bug_page.php?f_id=0001318
> 
> What happened was cairo set a function pointer to null, then called it.
> It uses null because it doesn't understand how to use the visual it has
> been given (eg wrong colour depth).  Line #6: the 0x00000000 is a null
> function address and ?? is because it can't have a name.  Line #7 and
> below suggests the cause is in cairo and my own debugging work proved
> this to be so.
> 
> Try replacing pango and gtk2 (my theory is that the fault is in cairo
> but we have to replace the packages that call it).
> 
> # pkgrm CSWpango CSWgtk2
> 
> and install those from stable:
> 
> # pkg-get -s http://path/to/mirror/stable -U -i libpango gtk2

It works! gtk-demo has been started. But, I tried to start gvim , its says:

OV-client$gvim
Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation Fault (core dumped)

I use ldd to find a problem:
OV-client$ldd /opt/csw/bin/gvim
         libgtk-x11-2.0.so.0 =>  /opt/csw/lib/sparcv8/libgtk-x11-2.0.so.0
         libgdk-x11-2.0.so.0 =>  /opt/csw/lib/sparcv8/libgdk-x11-2.0.so.0
      libatk-1.0.so.0 =>      /opt/csw/lib/sparcv8/libatk-1.0.so.0
  libgdk_pixbuf-2.0.so.0 =>/opt/csw/lib/sparcv8/libgdk_pixbuf-2.0.so.0
  libpangoxft-1.0.so.0 =>  /opt/csw/lib/sparcv8/libpangoxft-1.0.so.0
         libpangox-1.0.so.0 =>    /opt/csw/lib/sparcv8/libpangox-1.0.so.0
         libpango-1.0.so.0 =>     /opt/csw/lib/sparcv8/libpango-1.0.so.0
        libgobject-2.0.so.0 =>   /opt/csw/lib/sparcv8/libgobject-2.0.so.0
        libgmodule-2.0.so.0 =>   /opt/csw/lib/sparcv8/libgmodule-2.0.so.0
        libglib-2.0.so.0 =>      /opt/csw/lib/sparcv8/libglib-2.0.so.0
         libintl.so.3 =>  /opt/csw/lib/sparcv8/libintl.so.3
         libgnomeui-2.so.0 =>     /opt/csw/lib/sparcv8/libgnomeui-2.so.0
         libbonoboui-2.so.0 =>    /opt/csw/lib/sparcv8/libbonoboui-2.so.0
         libxml2.so.2 =>  /opt/csw/lib/sparcv8/libxml2.so.2
         libz.so =>       /opt/csw/lib/sparcv8plus+vis/libz.so
         libnet.so =>     /opt/csw/lib/sparcv8/libnet.so
   libgnomecanvas-2.so.0 =>    /opt/csw/lib/sparcv8/libgnomecanvas-2.so.0
         libgnome-2.so.0 =>       /opt/csw/lib/sparcv8/libgnome-2.so.0
         libpopt.so.0 =>  /opt/csw/lib/sparcv8/libpopt.so.0
         libart_lgpl_2.so.2 =>    /opt/csw/lib/sparcv8/libart_lgpl_2.so.2
      libpangoft2-1.0.so.0 =>  /opt/csw/lib/sparcv8/libpangoft2-1.0.so.0
         libgnomevfs-2.so.0 =>    /opt/csw/lib/sparcv8/libgnomevfs-2.so.0
         libbonobo-2.so.0 =>      /opt/csw/lib/sparcv8/libbonobo-2.so.0
         libgconf-2.so.4 =>       /opt/csw/lib/sparcv8/libgconf-2.so.4
libbonobo-activation.so.4 => 
/opt/csw/lib/sparcv8/libbonobo-activation.so.4
         libORBit-2.so.0 =>       /opt/csw/lib/sparcv8/libORBit-2.so.0
        libgthread-2.0.so.0 =>   /opt/csw/lib/sparcv8/libgthread-2.0.so.0
         libSM.so.6 =>    /usr/lib/libSM.so.6
         libICE.so.6 =>   /usr/lib/libICE.so.6
         libXt.so.4 =>    /usr/lib/libXt.so.4
         libX11.so.4 =>   /usr/lib/libX11.so.4
         libncurses.so.5 =>       /opt/csw/lib/sparcv8/libncurses.so.5
         libiconv.so.2 =>         /opt/csw/lib/sparcv8/libiconv.so.2
         libperl.so =>    /opt/csw/lib/sparcv8/libperl.so
         libc.so.1 =>     /usr/lib/libc.so.1
         libresolv.so.2 =>        /usr/lib/libresolv.so.2
         libsocket.so.1 =>        /usr/lib/libsocket.so.1
         libnsl.so.1 =>   /usr/lib/libnsl.so.1
         librt.so.1 =>    /usr/lib/librt.so.1
         libdl.so.1 =>    /usr/lib/libdl.so.1
         libm.so.1 =>     /usr/lib/libm.so.1
         libXi.so.5 =>    /usr/openwin/lib/libXi.so.5
         libXext.so.0 =>  /usr/openwin/lib/libXext.so.0
         libXft.so.2 =>   /opt/csw/lib/libXft.so.2
         libfreetype.so.6 =>      /opt/csw/lib/libfreetype.so.6
         libz.so =>       /opt/csw/lib/libz.so
         libXrender.so.1 =>       /opt/csw/lib/libXrender.so.1
         libfontconfig.so.1 =>    /opt/csw/lib/libfontconfig.so.1
         libpthread.so.1 =>       /usr/lib/libpthread.so.1
         libpangocairo-1.0.so.0 =>        (file not found)
         libcairo.so.2 =>         /opt/csw/lib/libcairo.so.2
         libthread.so.1 =>        /usr/lib/libthread.so.1
     libgnome-keyring.so.0 =>         /opt/csw/lib/libgnome-keyring.so.0
         libjpeg.so.62 =>         /opt/csw/lib/libjpeg.so.62
         libesd.so.0 =>   /opt/csw/lib/libesd.so.0
         libaudiofile.so.0 =>     /opt/csw/lib/libaudiofile.so.0
         libssl.so.0.9.7 =>       /opt/csw/lib/libssl.so.0.9.7
         libcrypto.so.0.9.7 =>    /opt/csw/lib/libcrypto.so.0.9.7
  libORBitCosNaming-2.so.0 =>      /opt/csw/lib/libORBitCosNaming-2.so.0
         libmp.so.2 =>    /usr/lib/libmp.so.2
         libaio.so.1 =>   /usr/lib/libaio.so.1
         libmd5.so.1 =>   /usr/lib/libmd5.so.1
         libz.so.1 (SUNW_1.1) =>  (version not found)
         libexpat.so.0 =>         /opt/csw/lib/sparcv8/libexpat.so.0
         libpng12.so.0 =>         /opt/csw/lib/libpng12.so.0
         /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1
         /usr/platform/SUNW,Sun-Blade-100/lib/libmd5_psr.so.1

As you can see 'libpangocairo-1.0.so.0' not found.

I tried to find this file on blastwave.org but has no results.

Next, I deinstall gvim, and install it from stable branch (as you 
recommended for gtk and pango) , nothing happened, gvim also crashed to 
core.

Thanks, Denis.



More information about the users mailing list