openambitproject / openambit

openambit
281 stars 82 forks source link

double free or corruption #283

Open matusf opened 3 years ago

matusf commented 3 years ago

Hi, I compiled the openambit with cmake (from master), launched it and started synchronization. After a while the app crashed with following logs:

Vendor: 1493, Product: 1b
libambit_komposti: 2 4 59 0
Komposit version: 2 4 59 0
Start reading log...
double free or corruption (out)

When I tried to relaunch it, it crashed with these logs:

Vendor: 1493, Product: 1b
libambit_komposti: 2 4 59 0
Komposit version: 2 4 59 0
free(): double free detected in tcache 2

Then I unplugged the watch and relaunched the app again and it started normally.

I run Ubuntu 20.04 with x86_64 architecture and the watch is a Ambit 3 Peak. I'm happy to provide more information if needed.

centic9 commented 3 years ago

Sounds like the driver for Ambit 3 can cause this in some case. Unfortunately I don't have that hardware so cannot take a look myself. If you can reproduce it, it would be good to run Openambit with https://valgrind.org/ to get a stacktrace when invalid access or free is done.