! 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 !
Segfault when PRINTER variable not set, using LPRng
Status:
RESOLVED: DUPLICATE
Product:
Xfprint4
Component:
General

Comments

Description mauri2001 2007-05-07 17:06:23 CEST
Trying to print for example a ps file from the command line

:~# xfprint4 filename.ps

with the PRINTER variable missing, the program exits with segfault.

I digged a little bit in to the code. Around line 409 of xfprint/print_dialog.c,
looks like the fault is caused by referencing default_printer->name, as default_printer has NULL value.

xfprint4 works perfectly with PRINTER variable set to one of the names in /etc/printcap or /usr/etc/printcap
Comment 1 Jean-François Wauthy editbugs 2008-02-22 07:27:25 CET
I forgot this bug and fixed 3816 which seems to have the same cause.

*** This bug has been marked as a duplicate of bug 3816 ***

Bug #3214

Reported by:
mauri2001
Reported on: 2007-05-07
Last modified on: 2009-07-14

People

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

Version

Attachments

Additional information