hplip generates segfaults an does not print

Asked by Conrad Kostecki

Hi!
I've just some serious problems :(
I am unable to print anything with hplip and cups. Additionally, hplip segfaults.

1. Your Linux Distribution and version.
-> Gentoo Linux, so no "version"

2. Your printer make/model.
-> HP Photosmart C309a (Premium All-in-One)

3. If possible, run 'hp-check -t' and post the output.
-> http://pastebin.com/f66b5ca3d
-> As you can see, at the end, there is an segfault.

4. A detailed explanation of your problem.
-> Unable to print via CUPS. It says "/usr/libexec/cups/filter/hpcups failed"
-> Attaching Output: http://pastebin.com/m3700b846

5. Steps to recreate the problem.
-> Try to print via CUPS or use some hp tools.

Just don't know, what to do now?

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #484355.

Revision history for this message
anup (osta6161) said :
#1

It seems to be a question with configuration problems. For better maintainenance in launch-pad moving it to questions.

However, if it is found as a bug in HPLIP we will mark it as a bug.

Thanks for the support to HPLIP!

A

Revision history for this message
anup (osta6161) said :
#2

From the log, I observe the network build support as not enabled as part of configuration.

163.[configure]
164.network-build=no

How did you install HPLIP? Can you please re-install HPLIP with network build configuration enabled. Below instructions should ease you out in installation.

http://hplipopensource.com/hplip-web/install/manual/distros/gentoo.html

Please note the configuration settings are different for 32 bit and 64 bit OS.

Thanks,

A

Revision history for this message
cheryl (cheryl) said :
#3

I've built this too w/ the specified configuration and get the same result, and can confirm.

./hpcups
Segmentation fault

and gdb gives this:

Core was generated by `./hpcups'.
Program terminated with signal 11, Segmentation fault.
[New process 24144]
#0 0xb74cca3c in *__GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=0, loc=0xb75df380) at strtol_l.c:298
298 while (ISSPACE (*s))

(gdb) bt
#0 0xb74cca3c in *__GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=0, loc=0xb75df380) at strtol_l.c:298
#1 0xb74cc7a0 in *__GI_strtol (nptr=0x0, endptr=0x0, base=10) at strtol.c:110
#2 0x0804b954 in HPCupsFilter::StartPrintJob (this=0x80a1380, argc=1, argv=0xbfdfd154) at /usr/include/stdlib.h:286
#3 0x0804be2f in main (argc=1, argv=0xbfdfd154) at prnt/hpcups/HPCupsFilter.cpp:44

built against kernel 2.6.32, gcc (GCC) 4.4.3 20091122, glibc 2.11.1

Revision history for this message
Raghothama Cauligi (raghothama-cauligi) said :
#4

The executable hpcups is not meant to be run as a standalone executable with no command line args. This segfault is happening
because the expected command line args are missing. Thanks for pointing this out, I have moved the check for command line
args before trying to access it.
CUPS runs it as
hpcups job-id username title copies options [inputfile]
Raghu

Revision history for this message
comprookie2000 (david-linuxcrazy) said :
#5

After an update to cups and hpcups I had to delete then reconfigure my printers from the web interface http://localhost:631/ I am also using Gentoo;

net-print/cups-1.4.2-r1 USE="X acl dbus gnutls jpeg ldap pam perl php png python ssl tiff -debug -java -kerberos -samba -slp -static -xinetd"

net-print/hplip-3.9.10 USE="gtk hpcups libnotify policykit -doc -fax -hpijs -minimal -new-hpcups -parport -qt3 -qt4 -scanner -snmp -static-ppds -udev-acl"

Can you help with this problem?

Provide an answer of your own, or ask Conrad Kostecki for more information if necessary.

To post a message you must log in.