The cupsd daemon got crashed when it is configured to populate and fetch printer information from LDAP server on Red Hat Enterprise Linux 6.

Solution Verified - Updated -

Issue

  • The cupsd daemon got crashed when it is configured to populate and fetch printer information from LDAP server on Red Hat Enterprise Linux 6.

  • If three printers are already added on cups. Then configure cups to populate LDAP the crash do not occur.

  • Then use 'lpadmin' is used add one more print queue cups got crashed.

    # service cups status
    cupsd dead but pid file exists
    
    # gdb -c coredump cupsd
    
    (gdb) bt
    #0  0x00007fef6d3d5a45 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
    #1  0x00007fef6d3d7225 in abort () at abort.c:92
    #2  0x00007fef6d3ce9d5 in __assert_fail (assertion=0x7fef6cd18908 "((ber)->ber_opts.lbo_valid==0x2)", file=<value optimized out>, 
        line=186, function=<value optimized out>) at assert.c:81
    #3  0x00007fef6cd14ed2 in ber_free_buf (ber=0x7fef71abb050) at ../../../libraries/liblber/io.c:186
    #4  0x00007fef6cd14f05 in ber_free (ber=0x7fef71abb050, freebuf=<value optimized out>) at ../../../libraries/liblber/io.c:203
    #5  0x00007fef6fc6cf06 in ldap_msgfree (lm=0x7fef71ab94d0) at ../../../libraries/libldap/result.c:1318
    #6  0x00007fef707a6869 in ldap_freeres (entry=<value optimized out>) at dirsvc.c:4041
    #7  0x00007fef707ab877 in send_ldap_browse (p=0x7fef71ac5cf0) at dirsvc.c:4561
    #8  0x00007fef707abfca in cupsdSendBrowseList () at dirsvc.c:946
    #9  0x00007fef707ad536 in main (argc=<value optimized out>, argv=<value optimized out>) at main.c:1019
    
  • The issue not reproducible on Red Hat Enterprise Linux 5 with cups-1.3.x.

Environment

  • Red Hat Enterprise Linux 6
  • cups-1.4.2-48.el6_3.1.x86_64
  • openldap-2.4.23-26.el6_3.2.x86_64
  • Configure cups to populate printer information in LDAP server.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content