<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Alex,<div><br></div><div>It would be useful to get a stack trace from the crash - if you have gdb on your system you can run:</div><div><br></div><div>    sudo gdb /usr/sbin/cupsd</div><div>    run -f</div><div>    bt</div><div><br></div><div>and then send the output back in your reply.</div><div><br></div><div><br></div><div><div><div>On 2012-10-18, at 5:29 PM, Alex Korobkin <<a href="mailto:korobkin+cups@gmail.com">korobkin+cups@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi team, <div><br></div><div>I've recently updated my Ubuntu 10.04 print server to CUPS 1.5.4 and encountered this problem: </div><div><br></div><div>When i try to get a list of completed jobs via web-interface (Jobs > Show Completed Jobs), server prints page header, waits for about a minute, then displays nothing below the header. </div>

<div><br></div><div>With help of <i>top</i> I see that as soon as i hit "Show Completed Jobs" button, CUPS starts to use 100% of CPU, then gets killed and respawned with a new PID. <i>error_log</i> shows that CUPS receives job listing request, finds out it needs to process 749 completed jobs from 53 printers, reads their attributes one by one, and then suddenly dies as if something has killed it.</div>

<div><br></div><div>Is there an internal timeout (60 sec?) that would kill cupsd in this situation? </div><div>Is there a way to make CUPS process these jobs page by page in order to reply faster, instead of going through all those completed jobs? </div>

<div><br></div><div>Here is an excerpt from the error_log (debug2):</div><div><br></div><div>== Server starts: </div><div><font face="courier new, monospace">I [18/Oct/2012:19:47:52 +0000] Resuming new connection processing...</font></div>

<div><div><font face="courier new, monospace"><snip></font></div><div><font face="courier new, monospace">D [18/Oct/2012:19:47:52 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"</font></div>

<div><font face="courier new, monospace"><snip></font></div><div><font face="courier new, monospace">D [18/Oct/2012:19:47:52 +0000] Discarding unused server-started event...</font></div><div><font face="courier new, monospace"><snip></font></div>

<div><font face="courier new, monospace">D [18/Oct/2012:19:47:52 +0000] Report: clients=1</font></div><div><font face="courier new, monospace">D [18/Oct/2012:19:47:52 +0000] Report: jobs=749</font></div><div><font face="courier new, monospace">D [18/Oct/2012:19:47:52 +0000] Report: jobs-active=0</font></div>

<div><font face="courier new, monospace">D [18/Oct/2012:19:47:52 +0000] Report: printers=53</font></div><div><font face="courier new, monospace">D [18/Oct/2012:19:47:52 +0000] Report: printers-implicit=0</font></div><div>

<font face="courier new, monospace">D [18/Oct/2012:19:47:52 +0000] Report: stringpool-string-count=648288</font></div><div><font face="courier new, monospace">D [18/Oct/2012:19:47:52 +0000] Report: stringpool-alloc-bytes=39360</font></div>

<div><font face="courier new, monospace">D [18/Oct/2012:19:47:52 +0000] Report: stringpool-total-bytes=11849752</font></div></div><div><font face="courier new, monospace"><snip></font></div><div><br></div><div>== Server tries to create a report on completed jobs:</div>

<div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] get_jobs: job->id=167215, dest="james-color", username="johndoe", state_value=9, attrs=(nil)</font></div><div><font face="courier new, monospace">D [18/Oct/2012:19:49:48 +0000] [Job 167215] Loading attributes...</font></div>

<div><div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] cupsdCheckGroup(username="anonymous", user=(nil), groupname="OWNER")</font></div><div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] get_md5_password(username="anonymous", group="OWNER", passwd=0x7fff8fb6d3b0)</font></div>

<div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] cupsdCheckGroup(username="anonymous", user=(nil), groupname="root")</font></div><div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] get_md5_password(username="anonymous", group="root", passwd=0x7fff8fb6d3b0)</font></div>

<div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] cupsdCheckGroup(username="anonymous", user=(nil), groupname="cups-admins")</font></div><div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] get_md5_password(username="anonymous", group="cups-admins", passwd=0x7fff8fb6d3b0)</font></div>

<div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] copy_attrs(to=0x7f0811633380, from=0x7f08113dd9b0, ra=0x7f081163dec0, group=2, quickcopy=0)</font></div><div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] copy_attribute(0x7f0811633380, 0x7f08113ddcd0[time-at-creation,2,21])</font></div>

<div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] copy_attribute(0x7f0811633380, 0x7f08113ddd10[time-at-processing,2,21])</font></div><div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] copy_attribute(0x7f0811633380, 0x7f08113ddd50[time-at-completed,2,21])</font></div>

<div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] copy_attribute(0x7f0811633380, 0x7f08113ddd90[job-id,2,21])</font></div><div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] copy_attribute(0x7f0811633380, 0x7f08113dddd0[job-state,2,23])</font></div>

<div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] copy_attribute(0x7f0811633380, 0x7f08113dde10[job-media-sheets-completed,2,21])</font></div><div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] copy_attribute(0x7f0811633380, 0x7f08113dde90[job-k-octets,2,21])</font></div>

<div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] copy_attribute(0x7f0811633380, 0x7f08113ddfd0[job-printer-state-message,2,41])</font></div><div><font face="courier new, monospace">d [18/Oct/2012:19:49:48 +0000] get_jobs: job->id=167216, dest="james-color", username="joesmith", state_value=9, attrs=(nil)</font></div>

<div><b><font face="courier new, monospace">D [18/Oct/2012:19:49:48 +0000] [Job 167216] Loading attributes...</font></b></div><div><font face="courier new, monospace">I [18/Oct/2012:19:49:48 +0000] Remote access is enabled.</font></div>

<div><font face="courier new, monospace">I [18/Oct/2012:19:49:48 +0000] Loaded configuration file "/etc/cups/cupsd.conf"</font></div><div><font face="courier new, monospace">I [18/Oct/2012:19:49:48 +0000] Using default TempDir of /var/spool/cups/tmp...</font></div>

</div><div><br></div><div>Highlighted line is where server suddenly dies and restarts. No indication why would it die. </div><div><br></div><div>Any hints are much appreciated. </div><div>-Alex</div>
_______________________________________________<br>cups mailing list<br><a href="mailto:cups@easysw.com">cups@easysw.com</a><br>http://lists.easysw..com/mailman/listinfo/cups<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>__________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer, PWG Chair<br></div></span>

</div>
<br></div></body></html>