Cups is generating core dump file.

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 6
  • cups-1.4.2-50.el6_4.5.x86_64

Issue

  • Cups is generating coredump file with following messages:

    abrt[422]: Saved core dump of pid 3171 (/usr/sbin/cupsd) to /var/spool/abrt/test-2014-09-15-19:45:01-3171 (11526144 bytes)
    abrtd: Directory 'test-2014-09-15-19:45:01-3171' creation detected
    abrtd: Sending an email...
    abrtd: Email was sent to: root@localhost
    abrtd: New problem directory /var/spool/abrt/test-2014-09-15-19:45:01-3171, processing
    

Resolution

  • Issue has been resolved from the Errata

Diagnostic Steps

  • Check the following messages in coredump file.
gdb) bt
#0  0x00007f2586b3a925 in raise () from /lib64/libc.so.6
#1  0x00007f2586b3c105 in abort () from /lib64/libc.so.6
#2  0x00007f2586b78837 in __libc_message () from /lib64/libc.so.6
#3  0x00007f2586b7e166 in malloc_printerr () from /lib64/libc.so.6
#4  0x00007f2586b80c93 in _int_free () from /lib64/libc.so.6
#5  0x00007f2589f185e7 in cupsdCloseClient (con=0x7f258be5f360) at client.c:793
#6  0x00007f2589f53853 in cupsdDoSelect (timeout=<value optimized out>) at select.c:597
#7  0x00007f2589f2bd77 in main (argc=<value optimized out>, argv=<value optimized out>) at main.c:863
(gdb) f 5
#5  0x00007f2589f185e7 in cupsdCloseClient (con=0x7f258be5f360) at client.c:793 

793     free(con);
(gdb) p con
$30 = (cupsd_client_t *) 0x7f258be5f360
(gdb) p *con
$31 = {http = {fd = -2031516184, blocking = 32549, error = -2031516184, activity = 139799237620560, state = 2347103056, status = 32549, version = HTTP_1_1, keep_alive = HTTP_KEEPALIVE_ON, 
    _hostaddr = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, hostname = "localhost", '\000' <repeats 246 times>, fields = {
      '\000' <repeats 255 times> <repeats 13 times>, "localhost", '\000' <repeats 246 times>, '\000' <repeats 255 times> <repeats 13 times>}, data = 0x0, data_encoding = HTTP_ENCODE_LENGTH, 
    _data_remaining = 75, used = 0, 
    buffer = "\003oot\003t\003ing-user-name\000\004root\003t\003\003tlgw10B\000\024requesting-user-name\000\004root\003t\003name\000\004root\003t\003\003root\003t\003requesting-user-name\000\004root\003t\003\003root\003t\003g-user-name\000\004root\003t\003\003\003e\000\004root\003\060-continue\r\n\r\n", '\000' <repeats 1877 times>, auth_type = 0, md5_state = {count = {0, 0}, abcd = {0, 0, 
        0, 0}, buf = '\000' <repeats 63 times>}, nonce = '\000' <repeats 255 times>, nonce_count = 0, tls = 0x0, encryption = HTTP_ENCRYPT_IF_REQUESTED, input_set = 0x0, expect = 0, cookie = 0x0, 
    _authstring = '\000' <repeats 255 times>, userpass = '\000' <repeats 255 times>, digest_tries = 0, data_remaining = 67, hostaddr = 0x7f258be6312c, addrlist = 0x0, 
    wbuffer = "\001\001\000\000\000\000\000\001 200 OK\r\nDate: Mon, 15 Sep 2014 09:45:01 GMT\r\nServer: CUPS/1.4\r\nConnection: Keep-Alive\r\nKeep-Alive: timeout=30\r\nContent-Language: en_AU\r\nContent-Type: application/ipp\r\nContent-Length: 75\r\n\r\n", '\000' <repeats 1849 times>, wused = 0, field_authorization = 0x0, authstring = 0x0, gssmech = 0x0, gssctx = 0x0, gssname = 0x0}, 
  request = 0x0, response = 0x0, best = 0x7f258bd36780, start = {tv_sec = 1410774301, tv_usec = 503355}, operation = HTTP_POST, bytes = 156, type = 1, 
  username = "root", '\000' <repeats 251 times>, password = '\000' <repeats 32 times>, uri = "/admin/", '\000' <repeats 1016 times>, filename = 0x0, command = 0x0, options = 0x0, 
  query_string = 0x0, file = -1, file_ready = 0, pipe_pid = 0, sent_header = 0, got_fields = 0, header_used = 0, header = '\000' <repeats 2047 times>, language = 0x0, auto_ssl = 0, clientaddr = {
    addr = {sa_family = 1, sa_data = '\000' <repeats 13 times>}, ipv4 = {sin_family = 1, sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, ipv6 = {
      sin6_family = 1, sin6_port = 0, sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
      sin6_scope_id = 0}, un = {sun_family = 1, sun_path = '\000' <repeats 107 times>}, pad = "\001", '\000' <repeats 254 times>}, servername = "localhost", '\000' <repeats 246 times>, 
  serverport = 631, have_gss = 0, gss_creds = 0x0, gss_flags = 0, gss_output_token = {length = 0, value = 0x0}, scon = 0x7f258b6b4524 "UNKNOWN SL", auid = 16400}

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments