-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
segfault when linking to unwind library #4675
Comments
@lemmel I'm assuming that you have a solution that depends on libunwind? |
I route all the messages of my application to a custom logger, and when gravity is greater than warning I display the call stack and informations. As i'm currently coding, there is a lot of warning :-), but I can live for the time without it, if it was your question. |
As linker dependency order matters, could you please try locating |
Same result with:
|
Can you try put |
It does the trick but I'm not at ease with it, as gcc_s and libunwind can do the same thing: rewind stack trace. But for the time:
So I consider that I got a satisfactory answer, many thanks to @jianchun ! |
When building a binary linked against the libwunwind, and when there is an exception inside ChakraCore, there is a segfault.
the problem
When using valgrind, I get:
(full valgrind's log: vagrind_log.txt)
an idea/clue
When I look for unwind symbol in ChakraCore :
There are marked as Undefined, and I read here on a similary ticket that it should not.
question
Can you tell me what I'm doing wrong ? This topic is a bit technical for me.
example code
starting with official linux sample
and replacing:
with
in order to generate an exception.
My binary is build:
hardware/software
I'm under linux, using ChakraCore (git log) : commit 3f76911 (HEAD -> master, origin/master, origin/HEAD)
The text was updated successfully, but these errors were encountered: