cups cupsBackChannelRead & port monitor

velupillai kalyani.vel at gmail.com
Thu Mar 20 08:42:25 PDT 2008


Hello,
Here is the trace of the Segmentation fault

gdb cupsd
(gdb) r -f
Starting program: /home/axiohm/devcups/cups-1.3.6/scheduler/cupsd -f
[Thread debugging using libthread_db enabled]
[New process 5722]
[New Thread -1210530112 (LWP 5722)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210530112 (LWP 5722)]
0xb7dfd8c3 in strlen () from /lib/i686/libc.so.6
(gdb) bt
#0  0xb7dfd8c3 in strlen () from /lib/i686/libc.so.6
#1  0xb7dcda58 in vfprintf () from /lib/i686/libc.so.6
#2  0xb7dee514 in vsnprintf () from /lib/i686/libc.so.6
#3  0xb7dd33a5 in snprintf () from /lib/i686/libc.so.6
#4  0x08086d36 in start_job (job=0x80ff150, printer=0x80d82f8) at job.c:3112
#5  0x080812ca in cupsdCheckJobs () at job.c:484
#6  0x0807af56 in print_job (con=0x80fb668, uri=0x80fee10) at ipp.c:7566
#7  0x0806b40c in cupsdProcessIPPRequest (con=0x80fb668) at ipp.c:487
#8  0x08058215 in cupsdReadClient (con=0x80fb668) at client.c:2126
#9  0x08094421 in cupsdDoSelect (timeout=1) at select.c:537
#10 0x080693b7 in main (argc=2, argv=0xbf9a71e4) at main.c:776
(gdb) frame 4
#4  0x08086d36 in start_job (job=0x80ff150, printer=0x80d82f8) at job.c:3112
3112        snprintf(final_content_type, sizeof(final_content_type),
(gdb) list
3107
3108      if (!printer->remote && !printer->raw &&
3109          ((filter = (mime_filter_t *)cupsArrayLast(filters)) != NULL) &&
3110          filter->dst)
3111      {
3112        snprintf(final_content_type, sizeof(final_content_type),
3113                 "FINAL_CONTENT_TYPE=%s/%s",
3114                 filter->dst->super, filter->dst->type);
3115        envp[envc ++] = final_content_type;
3116      }
(gdb) print filter->dst->super
Cannot access memory at address 0x64
(gdb) print *filter->dst->type
Cannot access memory at address 0x74
(gdb) print filter->dst->type
Cannot access memory at address 0x74
(gdb) print filter->dst
$1 = (mime_type_t *) 0x60
(gdb) print filter
$2 = (mime_filter_t *) 0xbf99c334
(gdb) print *filter
$3 = {src = 0xbf99c348, dst = 0x60, cost = 134778805,
  filter = "/usr/lib/cups/monitor/ax_pm\000\001\000\000\000�#\n\b\001\000\000\000\230�\231�]b\t\bp�\n\bd�\231���\231��^\t\b\b\000\000\000�\225\n\b\005\000\000\000\223W\n\b\000\000\000\000\001\000\000\000�\000\000\000\201(\n\b�\r\v\b�\000\000\000 \210\r\b\207�\017/\220�\017\b\201(\n\bP�\017\b�\202\r\b\v@��j�\231� ���\021\000\000\000L���L���\000\000\000\000P��� \000\000\000 �\231���������\024�\231�;S߷���� ���\030\020\000\000\234�\231�"...}
(gdb)print final_content_type
$7 = "FINAL_CONTENT_TYPE=�\000\000\000\000\020���\000�\n\b`�\231���\231��\231��\000�\n\b\000\000\000\000\000\000\000\000�u\n\b��\f\b����\037\000\000\000��\231�\000�\n\b�u\n\b��\f\b\000\000\000\000\037\000\000\000��\231�I [20/Mar/2008:14:16:23 +0100] ", '\0' <repeats 30 times>, "�\b@ \001\000\000\177\003 \001", '\0' <repeats 20 times>, "\200\037\000\000\000\000\000\000SCRIPT_NAME=/printers/Telesto\000"...
(gdb)




More information about the cups-devel mailing list