Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2006 12:10:00 +1100
From:      Michael Pope <michael@dtcorp.com.au>
To:        freebsd-ports@freebsd.org
Subject:   cups-base Crashing Gnome apps
Message-ID:  <44025168.2040501@dtcorp.com.au>

next in thread | raw e-mail | index | archive | help
I have a problem with cups under FreeBSD5.4.  In abiword, gedit and 
inkscape I get the same error when going to print when I have the cups 
daemon enabled.  It crashes the application.

I've recompiled cups, gedit and inkscape to the latest builds and with 
debug symbols turned on.  Below you will find my correspondence with Joe 
Clarke (gnome maintainer).  He instructed me that this was more CUPS 
port problem and nothing to do with inkscape.

I have got programs such as firefox printing correctly through cups, so 
it's all working there ok.

I'm not completely sure how to do a backtrace, I've read somewhere that 
all you have to do is type:
$ gdb inkscape inkscape.core

Here is the output of that command:
$ gdb inkscape inkscape.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `inkscape'.
Program terminated with signal 10, Bus error.
Reading symbols from /usr/X11R6/lib/libgtkmm-2.4.so.1...done.
Loaded symbols for /usr/X11R6/lib/libgtkmm-2.4.so.1
Reading symbols from /usr/X11R6/lib/libgdkmm-2.4.so.1...done.
Loaded symbols for /usr/X11R6/lib/libgdkmm-2.4.so.1
Reading symbols from /usr/X11R6/lib/libatkmm-1.6.so.1...done.
Loaded symbols for /usr/X11R6/lib/libatkmm-1.6.so.1
Reading symbols from /usr/X11R6/lib/libpangomm-1.4.so.1...done.
Loaded symbols for /usr/X11R6/lib/libpangomm-1.4.so.1
Reading symbols from /usr/local/lib/libglibmm-2.4.so.1...done.
Loaded symbols for /usr/local/lib/libglibmm-2.4.so.1
Reading symbols from /usr/local/lib/libxslt.so.2...done.
Loaded symbols for /usr/local/lib/libxslt.so.2
Reading symbols from /usr/local/lib/libsigc-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libsigc-2.0.so.0
Reading symbols from /usr/X11R6/lib/libgtkspell.so.0...done.
Loaded symbols for /usr/X11R6/lib/libgtkspell.so.0
Reading symbols from /usr/local/lib/libaspell.so.16...done.
Loaded symbols for /usr/local/lib/libaspell.so.16
Reading symbols from /usr/local/lib/libpng.so.5...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /usr/local/lib/libpopt.so.0...done.
Loaded symbols for /usr/local/lib/libpopt.so.0
Reading symbols from /usr/X11R6/lib/libgnomeprintui-2-2.so.0...done.
Loaded symbols for /usr/X11R6/lib/libgnomeprintui-2-2.so.0
Reading symbols from /usr/X11R6/lib/libgnomeprint-2-2.so.0...done.
Loaded symbols for /usr/X11R6/lib/libgnomeprint-2-2.so.0
Reading symbols from /usr/X11R6/lib/libgnomecanvas-2.so.0...done.
Loaded symbols for /usr/X11R6/lib/libgnomecanvas-2.so.0
Reading symbols from /usr/local/lib/libxml2.so.5...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /usr/local/lib/libart_lgpl_2.so.5...done.
Loaded symbols for /usr/local/lib/libart_lgpl_2.so.5
Reading symbols from /usr/X11R6/lib/libgtk-x11-2.0.so.0...done.
Loaded symbols for /usr/X11R6/lib/libgtk-x11-2.0.so.0
Reading symbols from /usr/X11R6/lib/libgdk-x11-2.0.so.0...done.
Loaded symbols for /usr/X11R6/lib/libgdk-x11-2.0.so.0
Reading symbols from /usr/X11R6/lib/libXrandr.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXrandr.so.2
Reading symbols from /usr/X11R6/lib/libXi.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXi.so.6
Reading symbols from /usr/X11R6/lib/libXinerama.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXinerama.so.1
Reading symbols from /usr/local/lib/libatk-1.0.so.0...done.
Loaded symbols for /usr/local/lib/libatk-1.0.so.0
Reading symbols from /usr/X11R6/lib/libgdk_pixbuf-2.0.so.0...done.
Loaded symbols for /usr/X11R6/lib/libgdk_pixbuf-2.0.so.0
Reading symbols from /usr/X11R6/lib/libpangocairo-1.0.so.0...done.
Loaded symbols for /usr/X11R6/lib/libpangocairo-1.0.so.0
Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
Reading symbols from /usr/X11R6/lib/libXfixes.so.3...done.
Loaded symbols for /usr/X11R6/lib/libXfixes.so.3
Reading symbols from /usr/local/lib/libcairo.so.2...done.
Loaded symbols for /usr/local/lib/libcairo.so.2
Reading symbols from /usr/X11R6/lib/libgnomevfs-2.so.0...done.
Loaded symbols for /usr/X11R6/lib/libgnomevfs-2.so.0
Reading symbols from /usr/local/lib/libbonobo-2.so.0...done.
Loaded symbols for /usr/local/lib/libbonobo-2.so.0
Reading symbols from /usr/X11R6/lib/libgconf-2.so.4...done.
Loaded symbols for /usr/X11R6/lib/libgconf-2.so.4
Reading symbols from /usr/local/lib/libbonobo-activation.so.4...done.
Loaded symbols for /usr/local/lib/libbonobo-activation.so.4
Reading symbols from /usr/local/lib/libORBit-2.so.0...done.
Loaded symbols for /usr/local/lib/libORBit-2.so.0
Reading symbols from /usr/local/lib/libgthread-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgthread-2.0.so.0
Reading symbols from /usr/X11R6/lib/libXft.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXft.so.2
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.1
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libpangoft2-1.0.so.0...done.
Loaded symbols for /usr/X11R6/lib/libpangoft2-1.0.so.0
Reading symbols from /usr/X11R6/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/X11R6/lib/libfontconfig.so.1
Reading symbols from /usr/X11R6/lib/libpango-1.0.so.0...done.
Loaded symbols for /usr/X11R6/lib/libpango-1.0.so.0
Reading symbols from /usr/local/lib/libgobject-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgobject-2.0.so.0
Reading symbols from /usr/local/lib/libgmodule-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgmodule-2.0.so.0
Reading symbols from /usr/local/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.0
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /lib/libz.so.2...done.
Loaded symbols for /lib/libz.so.2
Reading symbols from /usr/local/lib/libgc.so.1...done.
Loaded symbols for /usr/local/lib/libgc.so.1
Reading symbols from /usr/lib/libstdc++.so.4...done.
Loaded symbols for /usr/lib/libstdc++.so.4
Reading symbols from /lib/libm.so.3...done.
Loaded symbols for /lib/libm.so.3
Reading symbols from /usr/lib/libpthread.so.1...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /lib/libc.so.5...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /usr/local/lib/libintl.so.6...done.
Loaded symbols for /usr/local/lib/libintl.so.6
Reading symbols from /usr/lib/libssl.so.3...done.
Loaded symbols for /usr/lib/libssl.so.3
Reading symbols from /lib/libcrypto.so.3...done.
Loaded symbols for /lib/libcrypto.so.3
Reading symbols from /usr/local/lib/libhowl.so.0...done.
Loaded symbols for /usr/local/lib/libhowl.so.0
Reading symbols from /usr/local/lib/libORBitCosNaming-2.so.0...done.
Loaded symbols for /usr/local/lib/libORBitCosNaming-2.so.0
Reading symbols from /usr/local/lib/libexpat.so.5...done.
Loaded symbols for /usr/local/lib/libexpat.so.5
Reading symbols from 
/usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
Reading symbols from 
/usr/X11R6/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-png.so...done.
Loaded symbols for 
/usr/X11R6/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-png.so
Reading symbols from /usr/X11R6/lib/gnome-vfs-2.0/modules/libfile.so...done.
Loaded symbols for /usr/X11R6/lib/gnome-vfs-2.0/modules/libfile.so
Reading symbols from /usr/local/lib/libfam.so.0...done.
Loaded symbols for /usr/local/lib/libfam.so.0
Reading symbols from 
/usr/X11R6/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so...done.
Loaded symbols for 
/usr/X11R6/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from 
/usr/X11R6/lib/pango/1.4.0/modules/pango-basic-fc.so...done.
Loaded symbols for /usr/X11R6/lib/pango/1.4.0/modules/pango-basic-fc.so
Reading symbols from 
/usr/X11R6/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so...done.
Loaded symbols for 
/usr/X11R6/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so
Reading symbols from 
/usr/X11R6/lib/libgnomeprint/2.12.1/modules/libgnomeprintcups.so...done.
Loaded symbols for 
/usr/X11R6/lib/libgnomeprint/2.12.1/modules/libgnomeprintcups.so
Reading symbols from /usr/local/lib/libgnomecups-1.0.so.1...done.
Loaded symbols for /usr/local/lib/libgnomecups-1.0.so.1
Reading symbols from /usr/local/lib/libcups.so.2...done.
Loaded symbols for /usr/local/lib/libcups.so.2
Reading symbols from /usr/local/lib/libgnutls.so.15...done.
Loaded symbols for /usr/local/lib/libgnutls.so.15
Reading symbols from /usr/local/lib/libtasn1.so.2...done.
Loaded symbols for /usr/local/lib/libtasn1.so.2
Reading symbols from /usr/local/lib/libgcrypt.so.13...done.
Loaded symbols for /usr/local/lib/libgcrypt.so.13
Reading symbols from /usr/local/lib/libgpg-error.so.1...done.
Loaded symbols for /usr/local/lib/libgpg-error.so.1
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x296060de in signalcontext () from /lib/libc.so.5
(gdb)


Let me know if this is the wrong way to do it, and if you need any 
testing or more info.

from
Michael

On Tue, 2006-02-14 at 13:04 +1100, Michael Pope wrote:

> > Ok, I've recompiled inkscape and cups-base to the latest version with 
> > the debug symbols set.  I've started up inkscape in gdb and hit the 
> > print button, here is the result.
> > 
> > $ gdb inkscape
> > GNU gdb 6.1.1 [FreeBSD]
> > Copyright 2004 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License, and you are
> > welcome to change it and/or distribute copies of it under certain 
> > conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB.  Type "show warranty" for details.
> > This GDB was configured as "i386-marcel-freebsd"...ru
> > (gdb) run
> > Starting program: /usr/X11R6/bin/inkscape
> > 
> > Program received signal SIGBUS, Bus error.
> > [Switching to Thread 3 (LWP 100205)]
> > 0x2a30a450 in ippWriteIO (dst=0x959b000, cb=0x2a3073bc <httpWrite>,
> >     blocking=1, parent=0x0, ipp=0x95737c0) at ipp.c:1418
> > 1418    {
> > Current language:  auto; currently c
> > (gdb)
> > 
> > Let me know if you need me to test anything or give you any more 
> > information.
>   

This is a crash in cups, not inkscape.  You should collect a full
backtrace, and contact the cups-base maintainer, and probably the CUPS
authors.

Joe


> > 
> > Michael Pope
>
> > 
> > Joe Marcus Clarke wrote:
>   
>> > > On Mon, 2006-02-13 at 12:38 +1100, Michael Pope wrote:
>> > >   
>>     
>>> > >> How do I install these ports with debug symbols?
>>> > >> Do I need something in my Makefile? or make command line option?
>>> > >>     
>>>       
>> > >
>> > > Add the following to /etc/make.conf:
>> > >
>> > > CFLAGS=-O -g -pipe
>> > > STRIP=
>> > >
>> > > Then rebuild cups-base.
>> > >
>> > > Joe
>> > >
>> > >   
>>     
>>> > >> inkscape error
>>> > >> Program received signal SIGBUS, Bus error.
>>> > >> [Switching to Thread 3 (LWP 100272)]
>>> > >> 0x2a30a3b0 in ippWriteIO () from /usr/local/lib/libcups.so.2
>>> > >>
>>> > >> gedit error
>>> > >> Program received signal SIGBUS, Bus error.
>>> > >> 0x2a5e93b0 in ippWriteIO () from /usr/local/lib/libcups.so.2
>>> > >>
>>> > >>
>>> > >> Michael Pope
>>> > >>
>>> > >>
>>> > >> Joe Marcus Clarke wrote:
>>> > >>     
>>>       
>>>> > >>> Synopsis: graphics/inkscape crashes on Printing with CUPS
>>>> > >>>
>>>> > >>> State-Changed-From-To: open->feedback
>>>> > >>> State-Changed-By: marcus
>>>> > >>> State-Changed-When: Sun Nov 13 21:56:52 GMT 2005
>>>> > >>> State-Changed-Why: 
>>>> > >>> You need to rebuild cups and inkscape with debugging symbols, then get
>>>> > >>> a backtrace from gdb before we can figure out what the problem is.
>>>> > >>>
>>>> > >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=88703
>>>> > >>>
>>>> > >>> .
>>>> > >>>
>>>> > >>>   
>>>> > >>>       
>>>>         
> > 
>   
-- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / 
#freebsd-gnome http://www.FreeBSD.org/gnome


Michael

-- 
Michael Pope
Software Engineer

*/Digitech Corporation/*
Ph: +61 3 9642 4032
Fax: +61 3 9602 1889



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44025168.2040501>