-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node Crash #90
Comments
I'm suspicious of Promises. Can you verify that there is no crash when it's not wrapped in a promise? |
I was thinking the same, but it seems is not related to the promise. |
ldapjs is a very different beast, it's all javascript-native (and they did a great job of it too). How did you determine that it isn't related to promises? |
because I used the same code without the promise and I got the same error |
Can you please post that code, too? |
I too am getting this issue, seemingly randomly. I have not yet seen any pattern on the appearance of this bug. Edit:
When using
|
I stand corrected, just had the following output from
|
Same Issue in my applicaton. Code: |
I was experiencing this same crash on The problem is that the module is re-using the handle. In the We were able to fix this by setting the handle to NULL in OnDisconnect. Patchdiff --git a/LDAPCnx.cc b/LDAPCnx.cc
index 532317f..8325a78 100644
--- a/LDAPCnx.cc
+++ b/LDAPCnx.cc
@@ -219,6 +219,7 @@ void LDAPCnx::OnDisconnect(LDAP *ld, Sockbuf *sb,
LDAPCnx * lc = (LDAPCnx *)ctx->lc_arg;
if (lc->handle) {
uv_poll_stop(lc->handle);
+ lc->handle=NULL;
}
lc->disconnect_callback->Call(0, NULL);
} Backtrace
|
Looking at the following bug report it would appear that calling uv_poll_stop more than once causes a segfault. Unfortunately I cannot reproduce this issue on node14 however I'm going to check if uv_poll_stop has already been called before attempting to stop it again. jeremycx/node-LDAP#90 Signed-off-by: Joshua Houghton <[email protected]>
Hi,
I'm having a strange problem with your library.
Basically sometimes (it seems random) calling a search command I've the following error:
I've enabled the debug mode on your library and here the output
It happens both on OSX and Ubuntu Server.
Here the code I use to call ldap server (it's Typescript).
It happens with Node 4.x, 5.x and 6.x.
Any hint?
The text was updated successfully, but these errors were encountered: