Forum: Ruby-core [ruby-trunk - Bug #8861][Open] segmentation fault with ruby-ldap

017f56208634d223c1ba00eb42c08b83?d=identicon&s=25 francescm (Francesco Malvezzi) (Guest)
on 2013-09-04 11:47
(Received via mailing list)
Issue #8861 has been reported by francescm (Francesco Malvezzi).

----------------------------------------
Bug #8861: segmentation fault with ruby-ldap
https://bugs.ruby-lang.org/issues/8861

Author: francescm (Francesco Malvezzi)
Status: Open
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


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
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 kou (Kouhei Sutou) (Guest)
on 2013-09-05 14:42
(Received via mailing list)
Issue #8861 has been updated by kou (Kouhei Sutou).

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

----------------------------------------
Bug #8861: segmentation fault with ruby-ldap
https://bugs.ruby-lang.org/issues/8861#change-41639

Author: francescm (Francesco Malvezzi)
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


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
This topic is locked and can not be replied to.