lpinfo -v doesnt shows my new backend

shermin sherminismail at gmail.com
Thu Aug 7 00:00:43 PDT 2008


Hi,
When i run my backend in command prompt no error shows.I run it as root.When i tried to access cups web page,i checked in error log saying my backend crashed with signal 11.I got the debug info as "could not set config 1:operation not permitted".What could be the reason

D [07/Aug/2008:10:48:21 +0400] [CGI] usb_find_devices=5
D [07/Aug/2008:10:48:21 +0400] [CGI] usb_set_debug: Setting debugging level to 9 (on)
D [07/Aug/2008:10:48:21 +0400] [CGI] USB error: could not set config 1: Operation not permitted


Regards,
Shermin

> Hi,
> My list_devices return successful and in usb.c ,it is returning CUPS_BACKEND_OK.What that means.?I am still unable to find the signal 11 crash.
> shermin
>
> > shermin wrote:
> > > Hi,
> > > I checked the log output and it shows
> > >      I [04/Aug/2008:11:26:59 +0400] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=27920)
> > > I [04/Aug/2008:11:27:02 +0400] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=27921)
> > > I [04/Aug/2008:11:27:02 +0400] Started "/usr/lib/cups/daemon/cups-deviced" (pid=27922)
> > > E [04/Aug/2008:11:27:02 +0400] [cups-deviced] PID 27933 (card_usb) crashed on signal 11!
> > > What it means????
> >
> > Signal 11 is "segmentation fault", which usually means you tried to
> > dereference a NULL pointer.
> >
> > > Also in the usb.c file if i have the command line arguments is 1,it just list the uri and return CUPS_BACKEND_OK.I am always getting arguments as 1 not 6 or 7.What could be the reason.?
> >
> > You'll get argc == 1 for discovery, 6 or 7 for printing.
> >
> >  > How will we get the 6 or 7 command line arguments??
> >
> > When printing, you'll get the complete command-line - 6 when using a
> > print driver and 7 when doing raw printing.
> >
> > > Also what i understood is that after writing my custom backend it should display in the cups web page while adding the printer.Is that correct right?
> >
> > Yes, as long as your backend writes one or more valid information
> > lines, as documented in "man backend".
> >
> > --
> > ______________________________________________________________________
> > Michael R Sweet                        Senior Printing System Engineer
> >
>





More information about the cups mailing list