« Return to Thread: Optware cups segfaults on TS-119

Re: Optware cups segfaults on TS-119

by Kay Hannay-2 :: Rate this Message:

Reply to Author | View in Thread

Hello again,

cups-pdf is also working now. There were a few things I had to do:

- copy cups-pdf.conf from /opt/etc/ to /opt/etc/cups/
- create the temp directory for gs (/opt/var/tmp) or set the variable GSTmp to a different directory in cups-pdf.conf
- set "Grp administrators" in cups-pdf.conf
- set the GhostScript binary to "GhostScript /opt/bin/gs" in cups-pdf.conf

Now I get proper PDF documents.


Regards
Kay

--- In nslu2-linux@..., "Kay Hannay" <mskbike@...> wrote:

>
> Hi Brian,
>
> I have updated the cups package and it seems to work now. I have to test later with my printer at home. I tried the cups-pdf printer, which does not work. But this seems to be related to the cups-pdf package itself.
>
> I can connect to the web interface etc without problems.
>
> Thank you!!
>
> Best regards
> Kay
>
> --- In nslu2-linux@..., "Brian Zhou" <b88zhou@> wrote:
> >
> > Please re-test with 1.3.10-2.
> >
> > I made the change to turn off stack-protector in gcc compilation option.
> >
> > Regards,
> >
> > -Brian
> >
> > --- In nslu2-linux@..., "Kay Hannay" <mskbike@> wrote:
> > >
> > > Hi,
> > >
> > > I have installed the cupsd package from optware on my Qnap TS-119.
> > > When I try to start cupsd, I just get a segmentation fault. The same
> > > for other cups related binaries like accept, cupsctl, lpadmin etc.
> > > I have the new Firmware version 3.0.0 Build 0430T on my TS-119.
> > >
> > > Here are the last lines of strace after starting cupsd:
> > >
> > > open("/opt/lib/libsasl2.so.2", O_RDONLY) = 3
> > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\3500\0\0004\0\0\0"..., 512) = 512
> > > fstat64(3, {st_mode=S_IFREG|0755, st_size=86212, ...}) = 0
> > > mmap2(NULL, 117872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4049f000
> > > mprotect(0x404b4000, 28672, PROT_NONE)  = 0
> > > mmap2(0x404bb000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0x404bb000
> > > close(3)                                = 0
> > > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x404bc000
> > > syscall_983045(0x404bc7f0, 0x400256ec, 0x404bcec8, 0x40025050, 0x40, 0x40025000, 0, 0xf0005, \
> > >     0x40025730, 0x1, 0, 0xbefdc55c, 0, 0xbefdc540, 0x88, 0x4000221c, 0x20000010, 0x404bc7f0, \
> > >     0, 0, 0xdb1c, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = 0
> > > mprotect(0x4049b000, 4096, PROT_READ)   = 0
> > > mprotect(0x40470000, 4096, PROT_READ)   = 0
> > > mprotect(0x40460000, 4096, PROT_READ)   = 0
> > > mprotect(0x40309000, 4096, PROT_READ)   = 0
> > > mprotect(0x402fb000, 4096, PROT_READ)   = 0
> > > mprotect(0x40249000, 4096, PROT_READ)   = 0
> > > munmap(0x4001f000, 17045)               = 0
> > > set_tid_address(0x404bc398)             = 12577
> > > SYS_338(0x404bc3a0, 0xc, 0x404bc7f0, 0xffffffec, 0x4001e400) = 0
> > > rt_sigaction(SIGRTMIN, {0x40230f74, [], SA_SIGINFO|0x4000000}, NULL, 8) = 0
> > > rt_sigaction(SIGRT_1, {0x40230e4c, [], SA_RESTART|SA_SIGINFO|0x4000000}, NULL, 8) = 0
> > > rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
> > > getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
> > > --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> > > +++ killed by SIGSEGV +++
> > >
> > > Does anybody have the same behaviour with cups?
> > >
> > > Thanks!
> > >  
> > >  
> > > Best regards
> > > Kay
> > >
> >
>


 « Return to Thread: Optware cups segfaults on TS-119