-
Notifications
You must be signed in to change notification settings - Fork 284
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
Getting segmentation fault after receiving some callbacks from NAN layer #1543
Comments
Full backtrace:
|
Hello @gireeshpunathil , |
hello @jay11ca39 - how are you, nice to see you after some time! Like last time, I am suspecting this has to do with one or more of: object scope, access or life cycle. Can you please provide your code of |
Hi @gireeshpunathil , Following is the uv callback:
I am calling uvAsynCallback from the callback that I received from the native layer as follows: Regarding the pub-sub model:
|
Hi @gireeshpunathil , |
I guess the failure is coming from: ((data ->nSubscriber)->jsCallback).Call(2, argv); wherein the /cc @addaleax for an expert opinion. |
Yes @gireeshpunathil , When I commented this line, It was working fine. Hello @addaleax |
nodejs/nan#813 is probably unrelated, but might be worth looking at. My guess is that |
Hello @addaleax , Following are the logs: gyp info it worked if it ends with ok CXX(target) Release/obj.target/npubsub/src/nmessage.o |
Hello @addaleax and @gireeshpunathil , |
Hello @addaleax and @gireeshpunathil , Previously I was using: Now, I used: But, still it is giving the same crash.. :( Can you please help me in this.? |
@jay11ca39 - if I understand correctly, @addaleax 's suggestion was to:
and then run to crash with will you please follow that and get the stack? |
Hello @gireeshpunathil ,
Following is the output of $ bt full
|
Following are my software version:
|
Hello @addaleax and @gireeshpunathil ,
Result: It is working fine.
Result: It is crashing after receiving some events. Here, what I am suspecting is : Can you please provide your opinion on this ? |
Hello @gireeshpunathil , |
@jay11ca39 - is this resolved? |
inactive, closing |
Hello All,
I have written a native addon [Using NAN] for my cpp [pub-sub] library.
So, my native addon is providing wrapper APIs for cpp library.
For callback implementation in addon, I followed: #1171
Issue:
After receving some events on subscriber side, subscriber sample is crashing [Segmentation fault].
Crash logs:
Observation:
There is a strange observation on my subscriber sample:
subscriber = new subscriber(ip, port);
Result: It is working fine.
var subscriber = new subscriber(ip, port);
Result: It is crashing after receiving some events.
Environment details:
I am struggling with this issue since quite long. Any help will be appreciated.
Thanks in advance.
The text was updated successfully, but these errors were encountered: