#6128: ghc 7.4.1 does not work with LDAP-0.6.6
-------------------------------+--------------------------------------------
Reporter: magicloud | Owner:
Type: bug | Status: infoneeded
Priority: normal | Milestone:
Component: Compiler | Version: 7.4.2
Keywords: c binding | Os: Linux
Architecture: x86_64 (amd64) | Failure: Incorrect result at runtime
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
-------------------------------+--------------------------------------------
Comment(by magicloud):
Exception has been caught in openldap-2.4.31/libraries/libldap/os-ip.c
line 1123:
rc = poll( sip->si_fds, sip->si_maxfd, to );
This poll call returns -1 and set errno to 4. I have not got the reason.
And following is the full debug:
ldap_open(company.com, 389)
ldap_pvt_gethostbyname_a: host=test.company.com, r=0
ldap_url_parse_ext(ldap://localhost/)
ldap_init: trying /usr/local/etc/openldap/ldap.conf
ldap_init: using /usr/local/etc/openldap/ldap.conf
ldap_init: HOME env is /home/magicloud
ldap_init: trying /home/magicloud/ldaprc
ldap_init: trying /home/magicloud/.ldaprc
ldap_init: trying ldaprc
ldap_init: LDAPCONF env is NULL
ldap_init: LDAPRC env is NULL
ldap_create
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP company.com:389
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 10.254.1.101:389
ldap_pvt_connect: fd: 3 tm: -1 async: 0
ldap_open: succeeded
ldap_simple_bind_s
ldap_sasl_bind_s
ldap_sasl_bind
ldap_send_initial_request
ldap_send_server_request
ldap_result ld 0x755fb0 msgid 1
wait4msg ld 0x755fb0 msgid 1 (infinite timeout)
wait4msg continue ld 0x755fb0 msgid 1 all 1
** ld 0x755fb0 Connections:
* host: company.com port: 389 (default)
refcnt: 2 status: Connected
last used: Mon Jul 16 15:13:19 2012
** ld 0x755fb0 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
ld 0x755fb0 request count 1 (abandoned 0)
** ld 0x755fb0 Response Queue:
Empty
ld 0x755fb0 response count 0
ldap_chkResponseList ld 0x755fb0 msgid 1 all 1
ldap_chkResponseList returns ld 0x755fb0 NULL
ldap_int_select
ldap_int_select returned -1: errno 4
ldap_err2string
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6128#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs