-
-
Notifications
You must be signed in to change notification settings - Fork 134
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 on armv6l (rapsberrypi) #925
Comments
Do you have MQTT enabled? It seems, I face the same issue for master branch (as of now) - docker - , but I get something inside the log:
this was thrown just while mqtt publish with newest hassio.cfg. |
Yes, mqtt support is enabled. I also tried adding Can your error be related to configuration parameters (like empty string somewhere)? |
Cant tell. Disabling the hassio.cfg does not raise the crash and ebusd runs ok. |
I can confirm that this issue is MQTT related. ebusd -f -c http://cfg.ebusd.eu --scanconfig -d 192.168.0.2:9999 -p 8888 --latency=30000 --mqtthost=127.0.0.1 --mqttjson --mqttint=/etc/ebusd/mqtt-hassio.cfg --mqttuser=homeassistant --mqttport=1883 --mqttlog ebusd -f -c http://cfg.ebusd.eu --scanconfig -d 192.168.0.2:9999 -p 8888 --latency=30000 |
From few days ago, commit #699f056 seems to start having issue. Current master commit runs flawlessly building with debug symbols: |
(gdb) backtrace I debugged with a couple of cout in src/lib/ebus/stringhelper.cpp: And these are its last words: |
good spot @valeriop but not related to the mentioned commit. |
Thanks for looking into this. I tried the latest but it is sill failing. Proper backtrace with debug symbols below:
pointing at this line: ebusd/src/lib/ebus/datatype.cpp Line 900 in c66bd85
|
Current source c66bd85 works correctly with mqtt options enabled, no more segfault. Thank you! |
I'm pretty sure that the run was not with the latest source as that line of the backtrace can't cause a memory access error |
meanwhile I've verified on a Raspi 2 that commit c66bd85 works fine whereas the previous one crashes with MQTT. so I'm closing this as resolved |
Ok. It is still failing for me but the access to addresses like 0x4, 0x8 and 0xc makes me think it's more related to compiler's setup.
ebusd/src/lib/ebus/datatype.cpp Line 845 in e33810a
I'll try it on another fresh VM and RPi |
Description
ebusd or ebusctl segfaults when installed or build from source.
Result
When built from source I get get this trace:
The binary was build on Ubuntu 20.04.4 (GLIBC 2.31-0ubuntu9.9) with
Actual behavior
No segfaults.
Expected behavior
Segfault
ebusd version
current source from git
ebusd arguments
none
Operating system
Debian 11 (Bullseye) / Ubuntu 20-21 / Raspbian 11 / Raspberry Pi OS 11 (including lite)
CPU architecture
other
Dockerized
None
Hardware interface
adapter 3.1 USB
Related integration
other
Logs
(empty)
The text was updated successfully, but these errors were encountered: