Bug #8861

segmentation fault with ruby-ldap

Added by Francesco Malvezzi 8 months ago. Updated 8 months ago.

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

Description

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

#encoding: utf-8

require 'ldap'
require 'ldap/ldif'

mod = LDAP::Mod.new(LDAP::LDAPMODDELETE, ["uid"], ["uid=malvezzi"])
puts LDAP::LDIF.modstoldif("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

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

History

#1 Updated by Kouhei Sutou 8 months 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

Also available in: Atom PDF