-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Incoming SMS on a SIM800C USB modem will crash #53
Comments
Having stack trace from the segfault would help. Most likely this is actually an issue in the Gammu library. |
@nijel Where are the dumps? I have a system where I can repro this, but I dont know how to get the dump of stack trace. |
I know how to get a dump, but I can only do it from my production system, but that system contains too many secrets. |
See https://wiki.archlinux.org/title/Debugging/Getting_traces#Getting_the_trace for guide to get trace from the core dump. |
I am using WSL 1.0 and it does not support core dumps. However I updated the issue with the callback info. Gamma.c is referencing the null pointer of the callback function. |
Looking at home-assistant/core#56552, the problem is probably in using Gammu functions from the callback, what is not safe. I'm not sure if this is somewhere documented, but it can definitely cause problems. |
When using SMS callbacks with a SIM800C modem, the call to ReadDevice crash the process:
gammu/src/gammu.c:430
More info
(gdb) print *sm
The text was updated successfully, but these errors were encountered: