-
Notifications
You must be signed in to change notification settings - Fork 194
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
How to debug a potential jit issue #517
Comments
sljit stacktraces might normally contain those, if the crash is in the generated code. if you have a core dump with the crash then a backtrace and a disassemble of the crash |
Assume you mean 10.42. If your application is threaded then probably should upgrade to 10.44. Also see #435 |
gdb usually does not support backtraces for jit code. If the issue can be reproduced easily, than it is better to put a breakpoint before the jit code is executed: You can use |
does this mean anything to anyone that has been kind enough to respond? (gdb) x/16i $pc-32 |
The crash is not in a jit code, it is in Probably this is the location: |
I need to correct myself. If you use |
zherczeg, I appreciate the help here as it allowed me to debug and figure this out. As I mentioned, the docs did not make it completely clear that match data, match context and jit stack all need to be thread local to allow concurrent matching against a pattern (represented by a pcre2_code object. I probably should have read the code first because it becomes very clear what is required to get thread safe concurrent matching. |
My team and I are still working to confirm but we are seeing a crash inside pcre2_jit_match. Unfortunately gdb is not very helpful because we get a huge set of stacks with ??. We might be able to do better if we pull the pcre code into our main code base instead of loading it as a library. However, we are wondering how we can debug? Do you have any suggestions on how we can narrow down the issue we might be encountering. We are using version 42.
The text was updated successfully, but these errors were encountered: