Project

General

Profile

Actions

Bug #8861

closed

segmentation fault with ruby-ldap

Added by francescm (Francesco Malvezzi) over 10 years ago. Updated over 10 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
[ruby-core:57010]

Description

The following code is wrong as the fourth line should read: mod = LDAP::Mod.new(LDAP::LDAP_MOD_DELETE, "uid", ["uid=malvezzi"])

#encoding: utf-8

require 'ldap'
require 'ldap/ldif'

mod = LDAP::Mod.new(LDAP::LDAP_MOD_DELETE, ["uid"], ["uid=malvezzi"])
puts LDAP::LDIF.mods_to_ldif("uid=malvezzi,ou=people,dc=unimore,dc=it" , [ mod ])

However ruby should not end up with a segmentation fault. Please che attached file seg.txt. ruby-ldap version is ruby-ldap (0.9.15)

thank you,

Francesco


Files

seg.txt (12.4 KB) seg.txt francescm (Francesco Malvezzi), 09/04/2013 06:47 PM

Updated by kou (Kouhei Sutou) over 10 years ago

  • Status changed from Open to Third Party's Issue

It is a ruby-ldap issue not Ruby itself. Please report it to ruby-ldap: https://github.com/alexey-chebotar/ruby-ldap

Actions

Also available in: Atom PDF

Like0
Like0