[cups.bugs] Re: [CRIT] STR #1538: cupsd crash

twaugh.redhat twaugh at redhat.com
Wed Apr 5 09:51:41 PDT 2006


[STR New]

I attached gdb to a running cupsd and carried on with printing things. 
Before too long I managed to catch it:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912532052048 (LWP 16437)]
ippDelete (ipp=0x40354433f461) at ipp.c:743
743       for (attr = ipp->attrs; attr != NULL; attr = next)
(gdb) p attr
Variable "attr" is not available.
(gdb) p ipp
$1 = (ipp_t *) 0x40354433f461
(gdb) p *ipp
Cannot access memory at address 0x40354433f461
(gdb) bt
#0  ippDelete (ipp=0x40354433f461) at ipp.c:743
#1  0x00005555555830bb in unload_job (job=0x555555719920) at job.c:3366
#2  0x000055555558316a in cupsdUnloadCompletedJobs () at job.c:1562
#3  0x0000555555574073 in main (argc=Variable "argc" is not available.
) at main.c:857
(gdb) up
#1  0x00005555555830bb in unload_job (job=0x555555719920) at job.c:3366
3366      ippDelete(job->attrs);
(gdb) p job
$2 = (cupsd_job_t *) 0x555555719920
(gdb) p *job
$3 = {id = -1415713696, priority = 10922, state_value = 2879253600,
  username = 0xc0 <Address 0xc0 out of bounds>,
  dest = 0x4433f461 <Address 0x4433f461 out of bounds>, dtype = 64,
  num_files = 131092, filetypes = 0x40354433f461, compressions =
0x1fe80800a,
  access_time = 65556, sheets = 0x0, hold_until = 1688935776387072,
  state = 0xffffffffffffffff, job_sheets = 0x5c2000005c2, current_file =
64,
  attrs = 0x40354433f461, status_buffer = 0x2fd80400a, print_pipes =
{65556,
    33022}, back_pipes = {0, -5894654}, cost = -1833221634, filters =
{393236,
    -1, -1, 2755, 2755, 64, 131092, 1144255585, 16437, -41926646, 3,
65556,
    33022, 0, -1900030, 1466762494, 393236, -1, -1, 2659, 2659}, backend =
50,
  status = 0, printer = 0x51, tries = 1433369200}
(gdb) up
#2  0x000055555558316a in cupsdUnloadCompletedJobs () at job.c:1562
1562          unload_job(job);

Link: http://www.cups.org/str.php?L1538
Version: 1.2rc1





More information about the cups-devel mailing list