Your message dated Sun, 1 May 2016 22:16:53 +0200
with message-id <20160501201653.GA91435@sx>
and subject line Re: #330919: libldap-ruby1.8: Use of LDAP::Entry#[](attr) 
leads to excessive memory use
has caused the Debian Bug report #330919,
regarding libldap-ruby1.8: Use of LDAP::Entry#[](attr) leads to excessive 
memory use
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
330919: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=330919
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libldap-ruby1.8
Version: 0.9.0-1
Severity: important

Executing the following simple program leads to execssive memory use (>
500MB within seconds):

  ldap.simple_bind(Admin, Pass) do |conn|
    conn.search("ou=DNS,#{Root}", LDAP_SCOPE_SUBTREE,
                "(|(ildusOwner=bram)(ildusOwner=paul))") do |entry|
      puts "dn: #{entry.dn}"
      entry.attrs.each do |attr|
        entry[attr].each do |val|
          puts "#{attr}: #{val}"
        end
      end
      puts
    end
  end

However, when "entry[attr].each" is replaced by its (according to the
documentation[1]) aliased version "entry.vals(attr).each" it works
fine.  Also "entry.to_ldif" seems to suffer from the same problem.

Paul

1: http://ruby-ldap.sourceforge.net/rdoc/classes/LDAP/Entry.html#M000010


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.12-1-686-smp
Locale: LANG=C, LC_CTYPE=nl_NL.UTF8@euro (charmap=UTF-8)

Versions of packages libldap-ruby1.8 depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libldap2                      2.1.30-11  OpenLDAP libraries
ii  libruby1.8                    1.8.2-9    Libraries necessary to run Ruby 1.
ii  libssl0.9.7                   0.9.7g-2   SSL shared libraries

libldap-ruby1.8 recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Thank you for your report, unfortunately other persons have tried
reproducing it, but were unsuccessful. As this bug is from 2005,
it's likely it's been fixed in the meantime in some upstream
version.

If this bug still persists, please reopen this report.

-- 
 ,''`.  Christian Hofstaedtler <[email protected]>
: :' :  Debian Developer
`. `'   7D1A CFFA D9E0 806C 9C4C  D392 5C13 D6DB 9305 2E03
  `-

--- End Message ---

Reply via email to