Project

General

Profile

Actions

Bug #5259

closed

Bus Error at startup when compiled for ARMHF architecture

Added by Shaun Schembri over 6 years ago. Updated over 6 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Crashes
Target version:
-
Start date:
2018-10-14
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-926
Affected Versions:

Description

Hi everyone,

I have been trying to crosscompile for my mediabox (KII Pro Amlogic S905 running Libreelec 8.2), the latest version from the master branch and while it successfully compiles, I do get a bus error immediately as I execute the binary. I have analysed via gdb the coredump created and the output point at this particular line the code.

Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `./tvheadend -c tvh'.
Program terminated with signal SIGBUS, Bus error.
#0 htsmsg_field_set_msg (sub=0xac8c22c8, f=<optimized out>, f=<optimized out>) at src/htsmsg.c:604

Code in src/htsmsg.c:604 is m->hm_data_size = 0; which seems innocent enough.

I have eventually traced back that the last version that works for me is 4.3-925. The subsequent commit (https://github.com/tvheadend/tvheadend/commit/d35359fd828ea4011a6ae22e723269d2b04b8b31) broke tvheadend for me, with the above mentioned error.

Since my knowledge of C is almost non-existent, I was wondering if you guys are aware of this issue and what can be done to fix it. Are there any compiler flags I can use, or does the code needs to be modified to work for my box? I have already tried using both the toolchain built by LibreELEC's build process and the the cross-compiler supplied by Ubuntu 18.04.

Thanks for your help guys and keep up the awesome work.

Actions

Also available in: Atom PDF