ChriD / Raumserver

Raumserver - A HTTP Request Server to control the RF-Multiroom System
32 stars 11 forks source link

Catch SIGSEGV errors #36

Open ChriD opened 7 years ago

ChriD commented 7 years ago

It seems to be that there are some critical errors when using eual pointer to objects at the same time when threading. I thought i have designed the whole kernel to be very thread safe but it seems that there are some cases wich cause problems. For this i have to add a sigsegv handler which will return the stacktrace where the error occured.

"backtrace.h" lib runs well for X64 linux but on ARM there is only one line of stack whic is not very usefull, so i switched to another lib (libunwind). This works well on X64 too but i have to cross compile it for ARMv5 and ARMv7 with but there are some errors with my toolchain :-/