! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfprint crashes when ran with an argument or by trying to print
Status:
CLOSED: INVALID
Product:
Xfprint4
Component:
General

Comments

Description Michal Varady 2006-08-12 09:26:31 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1b1) Gecko/20060710 Firefox/2.0b1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1b1) Gecko/20060710 Firefox/2.0b1

when I try to run xfprint with an argument, it crashed, for example

xfprint4 --help
Segmentation fault

when I try to run it without parameters, a dialog appears, I select a pure text file and it crashes again. It happens on any types of files.

then I ran it using gdb:

$ gdb
GNU gdb 6.5
Copyright (C) 2006 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 "i686-pc-linux-gnu".
(gdb) exec-file xfprint4
(gdb) run
Starting program: /usr/bin/xfprint4
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
...
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1218251088 (LWP 25181)]
Error while reading shared library symbols:
Cannot find new threads: generic error

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218251088 (LWP 25181)]
---Type <return> to continue, or q <return> to quit---
0x08050de3 in ?? ()
(gdb)

Compiled on gentoo with USE flag "debug"

Tested on gentoo with following settings:

Portage 2.1.1_pre4-r4 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-ck11 i686)
=================================================================
System uname: 2.6.16-ck11 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.12.4
Last Sync: Fri, 11 Aug 2006 18:00:08 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles/ http://gentoo.ynet.sk/pub "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="en C en_US cs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa apache2 apm avi bash-completion berkdb bidi bitmap-fonts cairo cdparanoia cdr cli crypt cups dbus divx4linux dlloader dmi dri dv dvb dvd dvdr dvdread elibc_glibc emboss encode exif exo fbcon firefox foomaticdb fortran ftp gdbm gif gimpprint glitz gnome gnutls gpm gtk gtk2 hal icq imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber jpeg kernel_linux keyboard libg++ libwww linguas_C linguas_cs linguas_en linguas_en_US live lzo mad matroska mikmod mjpeg mmx mng motif mouse mp3 mpeg ncurses network nls nptl nvidia ogg opengl pam panel-plugin pcre pdflib perl pic png pppd python qt qt3 quicktime readline real reflection samba scanner sdl session sndfile spell spl sse ssl startup-notification svg svga tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_nv video_cards_nvidia vorbis wmf xcomposite xml xmms xorg xpm xscreensaver xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Reproducible: Always

Steps to Reproduce:
1. run xfprint4 --help
2. watch the crash (segfault)

or

1. run xfprint4
2. select a file
3. xfprint4 crashes (segfault)

Actual Results:  
Segmenation fault

Expected Results:  
enqueue the file or print the help and quit

already described in details
Comment 1 Jean-François Wauthy editbugs 2006-08-12 09:32:37 CEST
Which version ?

The gdb info you gave are useless, at least try to provide a backtrace but it would propably require to compile glib and gtk+ with the debug USE flag.
Comment 2 Michal Varady 2006-08-13 08:39:43 CEST
It's version 4.3.90.2
It's always reproducible, but only with my own account. I've created a test user, he can run xfprint without any of these problems. I'm not sure, if I should decrease the severity or priority or resolve as won't fix? Please set it, if you can.

Recompiling glib and gtk+ with debug USE flags didn't help, gdb still types the same things.
Comment 3 Jean-François Wauthy editbugs 2006-08-13 10:05:20 CEST
Simple bugzilla users shouldn't be allowed to set priority otherwise all bugs would end up as critical or major. As for the 'won't fix' let me decide of that.

You said gdb didn't show anything valuable, did you try to get a backtrace ? If yes, try using strace on xfprint4 and post the output as an attachment (it's gonna be looonnnggg). The command line to use is 'strace xfprint4 2> output_file'
Comment 4 Michal Varady 2006-08-13 15:49:24 CEST
Created attachment 729 
output of strace xfprint

ok, I ran xfprint4 and selected a file, the output is attached
thanks for help!
Comment 5 Jean-François Wauthy editbugs 2006-08-13 15:53:55 CEST
and did it crash ?
Comment 6 Jean-François Wauthy editbugs 2006-08-13 15:55:00 CEST
ok according to the strace, it crashed
Comment 7 Jean-François Wauthy editbugs 2006-08-13 16:28:48 CEST
The strace doesn't seem to indicate that's the cause of the crash comes from xfprint, I therefore conclude the problem is related to your configuration (see the test user case) and close the bug as invalid.

Bug #2154

Reported by:
Michal Varady
Reported on: 2006-08-12
Last modified on: 2009-07-14

People

Assignee:
Jean-François Wauthy
CC List:
0 users

Version

Attachments

output of strace xfprint (26.69 KB, application/octet-stream)
2006-08-13 15:49 CEST , Michal Varady
no flags

Additional information