Hi Guys,
OK I have built a Linaro cross compiler for OS X that closely matches the Bela (4.4.59 kernel, 2.3 glibc, linaro-6.3-2017.02), I have also updated the Eclipse project so it builds, everything works fine. I did try 2.4 glibc but had lots of problems there with TLS, not sure why.
Remote debugging seems to work most of the time, even in the audio thread but occasionally we get a bit of a panic:
Message from syslogd@bela at May 20 08:51:06 ...
kernel:[ 347.388363] Internal error: : 1b [#5] PREEMPT ARM
Message from syslogd@bela at May 20 08:51:06 ...
kernel:[ 347.509629] Process bela-audio (pid: 797, stack limit = 0xdf7c4218)
Message from syslogd@bela at May 20 08:51:06 ...
kernel:[ 347.515924] Stack: (0xdf7c5fb0 to 0xdf7c6000)
Message from syslogd@bela at May 20 08:51:06 ...
kernel:[ 347.520307] 5fa0: 000c07e8 00000000 000c07e8 000519b0
Message from syslogd@bela at May 20 08:51:06 ...
kernel:[ 347.528525] 5fc0: 00000000 b60b8e18 befff7a4 000f0042 b60b8e1c 00000001 00000000 b60b8c04
Message from syslogd@bela at May 20 08:51:06 ...
kernel:[ 347.536742] 5fe0: 000d7b38 b60b8be8 00074b60 000519c8 600d0010 ffffffff 00000000 00000000
Message from syslogd@bela at May 20 08:51:06 ...
kernel:[ 347.544973] Code: f1080080 e3130020 1a000006 e2424004 (e4b40000)
I also tried local gdb with clang compiled code and you get the same issue.
It is intermittent, you can ctrl-c in gdb to get it back but then you cannot continue, a re-run works.
You can force the issue by continuing from the breakpoint quickly, if you wait a couple of seconds it is fine.
Any ideas?