From: funnymanva@... Date: 2015-02-24T01:29:04+00:00 Subject: [ruby-core:68271] [Backport200 - Backport #10897] [Open] Segmentation fault with ruby-ldap under rails 4.2.0 during bind Issue #10897 has been reported by Carlton O'Riley. ---------------------------------------- Backport #10897: Segmentation fault with ruby-ldap under rails 4.2.0 during bind https://bugs.ruby-lang.org/issues/10897 * Author: Carlton O'Riley * Status: Open * Priority: High * Assignee: ---------------------------------------- Running the same code from the command line using a script and the same bundler gems works correctly. However, when running inside or rails, or the rails console, when the bind is called a segmentation fault occurs. The basic code is as follows (this is the working command line script, however it is equivalent to the rails one): ~~~ #!/usr/bin/env ruby require 'rubygems' require 'bundler/setup' require 'ldap' username = 'username' connect = LDAP::SSLConn.new( 'ldapserver', 636 ) connect.set_option( LDAP::LDAP_OPT_PROTOCOL_VERSION, 3 ) connect.bind('cn=Login,ou=Service Accounts,dc=example,dc=com','Password') do |conn| connect.perror("bind") scope = LDAP::LDAP_SCOPE_SUBTREE base = "dc=example,dc=com" filter = "(uid=#{username})" result = nil conn.search(base, scope, filter, "dn") do |entry| result = entry.dn end puts result.inspect end ~~~ ---Files-------------------------------- stacktrace.txt (200 KB) -- https://bugs.ruby-lang.org/