Ldap Browse Crash & old Schema incuded

Bug #724980 reported by Mario Fetka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: cupsys

LdapBrowse support is broken in aby 1.4.x release of cups
to correct this you have to apply a backport 1.5 patch to correct the proper working with ldapbrowse support

I [25/Feb/2011:13:21:25 +0100] Listening to 192.168.0.2:631 on fd 9...
I [25/Feb/2011:13:21:25 +0100] Resuming new connection processing...
D [25/Feb/2011:13:21:25 +0100] ldap_connect: Setting CA certificate file "/etc/ssl/startssl/ca-bundle.pem"
I [25/Feb/2011:13:21:26 +0100] LDAP connection established
D [25/Feb/2011:13:21:26 +0100] cupsdRegisterPrinter(p=0x7f6487ea7250(HP4650))
D [25/Feb/2011:13:21:26 +0100] cupsdRegisterPrinter(p=0x7f6487e9b7c0(HP5200))
D [25/Feb/2011:13:21:26 +0100] cupsdRegisterPrinter(p=0x7f6487e9e2c0(PDF))
D [25/Feb/2011:13:21:26 +0100] Discarding unused server-started event...
D [25/Feb/2011:13:21:27 +0100] cupsdNetIFUpdate: "lo" = localhost:631
D [25/Feb/2011:13:21:27 +0100] cupsdNetIFUpdate: "eth0" = 192.168.0.2:631
D [25/Feb/2011:13:21:27 +0100] cupsdNetIFUpdate: "eth1" = xxx.xxx.xxx.xxx:0
D [25/Feb/2011:13:21:27 +0100] cupsdNetIFUpdate: "lo" = localhost:631
D [25/Feb/2011:13:21:27 +0100] cupsdNetIFUpdate: "eth0" = fe80::213:d3ff:fe2a:bb7f%eth0:0
D [25/Feb/2011:13:21:27 +0100] cupsdNetIFUpdate: "eth1" = fe80::204:75ff:feac:f797%eth1:0
D [25/Feb/2011:13:21:27 +0100] ldap_search_rec: LDAP entry/object not found
E [25/Feb/2011:13:21:27 +0100] LDAP add for HP4650 failed with status 21: Invalid syntax

http://www.cups.org/str.php?L3392

the second problem is that the ubuntu package contains an old ldap schema

http://<email address hidden>/msg861790.html

Tags: patch

Related branches

Revision history for this message
Mario Fetka (mario-fetka) wrote :

forgot

[349896.880877] type=1505 audit(1298563405.840:31): operation="profile_load" pid=4033 name="/usr/lib/cups/backend/cups-pdf"
[349896.881078] type=1505 audit(1298563405.840:32): operation="profile_load" pid=4033 name="/usr/sbin/cupsd"
[403806.042732] cupsd[11627]: segfault at c ip 00007f93fc8f1721 sp 00007fffcb989e70 error 4 in liblber-2.4.so.2.5.4[7f93fc8eb000+d000]
[403911.785825] cupsd[12745] general protection ip:7f3757098721 sp:7fff83e6a8c0 error:0 in liblber-2.4.so.2.5.4[7f3757092000+d000]
[406634.247211] cupsd[13358] general protection ip:7f10f0e4e721 sp:7fffe1a5ada0 error:0 in liblber-2.4.so.2.5.4[7f10f0e48000+d000]
[416210.386733] cupsd[15208]: segfault at 500000000 ip 00007fb782f1e721 sp 00007fffa5b4dec0 error 4 in liblber-2.4.so.2.5.4[7fb782f18000+d000]
[416896.345541] cupsd[15291]: segfault at 500000000 ip 00007feed58bf721 sp 00007fffb88e1d90 error 4 in liblber-2.4.so.2.5.4[7feed58b9000+d000]

Revision history for this message
Mario Fetka (mario-fetka) wrote :

i hava patched the cups package and integrated the patch and corrected schema file
now cups is not crashing on adding printers to the ldap

the corrected cups package is in my ppa
D [25/Feb/2011:19:05:30 +0100] cupsdNetIFUpdate: "eth0" = fe80::213:d3ff:fe2a:bb7f%eth0:0
D [25/Feb/2011:19:05:30 +0100] cupsdNetIFUpdate: "eth1" = fe80::204:75ff:feac:f797%eth1:0
D [25/Feb/2011:19:05:30 +0100] ldap_search_rec: LDAP entry/object not found
E [25/Feb/2011:19:05:30 +0100] LDAP add for HP4650 failed with status 21: Invalid syntax
D [25/Feb/2011:19:05:30 +0100] update_cups_browse: Refused 175 bytes from 192.168.0.2
D [25/Feb/2011:19:05:31 +0100] update_cups_browse: Refused 153 bytes from 192.168.0.2
D [25/Feb/2011:19:06:01 +0100] ldap_search_rec: LDAP entry/object not found
E [25/Feb/2011:19:06:01 +0100] LDAP add for HP4650 failed with status 21: Invalid syntax
D [25/Feb/2011:19:06:01 +0100] update_cups_browse: Refused 175 bytes from 192.168.0.2
D [25/Feb/2011:19:06:02 +0100] update_cups_browse: Refused 153 bytes from 192.168.0.2

ok there is still another problem but is not crashing

Revision history for this message
Mario Fetka (mario-fetka) wrote :

the other problem is not related to this bug (no Umlauts Büro in ldap entry Location)

affects: cupsys (Ubuntu) → cups (Ubuntu)
Changed in cups (Ubuntu):
status: New → Triaged
tags: added: patch
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

http://www.cups.org/str.php?L3392 is already fixed upstream in CUPS 1.4.6 which we use in Natty.

Remaining is only printer.schema. This file is not fixed in both your package and Natty's package. I have prepared the fix for Natty. Please fix also your package.

Changed in cups (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Mario Fetka (mario-fetka) wrote :

i really thought i fixed the schema file ( i am doing debian packagin for about 1 month so errors)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.4.6-2

---------------
cups (1.4.6-2) unstable; urgency=low

  [ Till Kamppeter ]
  * debian/printer.schema: Added missing "printerType" attribute. Thanks to
    Mario Fetka for the hint (LP: #724980).

  [ Martin Pitt ]
  * ubuntu-upstart.dpatch: Fix start failure if apparmor-profile-load doesn't
    exist. Thanks Zach! (LP: #728592)

  [ Martin-Éric Racine ]
  * Added Recommends:smbclient to cups-client (Closes: #616015).
 -- Martin Pitt <email address hidden> Tue, 15 Mar 2011 15:11:19 +0100

Changed in cups (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.