I'm working on a BeagleBone Blue running the latest image (2018-10-7) suggested in the Strawson online manual, flashed to onboard storage.
I've started getting frequent crashes working in python, controlling dc motors. A typical crash output is included below.
I can reproduce the issue reliably with steps like:
- Run code via Cloud9 to move my little robot around
- Click Stop in the IDE
- Run the code again through the IDE
- Segmentation fault
Most of the time, it crashes with a segmentation fault in Python. Sometimes it will exhibit other erratic behavior, like move one motor but not the other, or run at 100% duty cycle when 20% was specified. Sometimes, it runs fine. It looks like something isn't getting properly cleaned up.
I was also able to duplicate the issue as follows, outside of the cloud9 IDE:
- Boot the Beagle and connect via ssh
- run 'rc_test_motors -s .2' (which works fine) and cancel
- run 'rcpy_test_motors -s .2' (which does nothing) and cancel
- run 'rc_test_motors -s 2' again, resulting in a segmentation fault
Console output:
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.114586] Internal error: : 1028 [#1] PREEMPT SMP ARM
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.233418] Process rc_test_motors (pid: 1884, stack limit = 0xd2026218)
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.240148] Stack: (0xd2027e18 to 0xd2028000)
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.244526] 7e00: 00000001 00000320
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.252745] 7e20: 00001f40 d2027e7c db422900 c081df48 db422920 00001f40 00000000 dc6ce910
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.260962] 7e40: d2027e74 d2027e50 c081b72c c081df54 c1504dc8 00000000 dc60c994 db422900
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.269180] 7e60: 00000004 dc568b80 d2027eb4 d2027e78 c081be7c c081b618 00001f40 00009c40
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.277396] 7e80: 00001f40 00000000 00000001 77533b88 00000004 c081be00 dc6ce900 00000003
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.285613] 7ea0: 00000000 d2027f68 d2027ecc d2027eb8 c092f108 c081be0c c092f0e0 dc6ce900
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.293830] 7ec0: d2027ee4 d2027ed0 c03855c4 c092f0ec 00000004 dc6ce900 d2027f1c d2027ee8
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.302048] 7ee0: c0384c10 c0385580 00000003 00000000 db5fa988 c0384b18 dc788480 bed0d558
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.310265] 7f00: d2027f68 00000000 bed0d558 00000004 d2027f34 d2027f20 c02f9258 c0384b24
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.318482] 7f20: 00000004 dc788480 d2027f64 d2027f38 c02f943c c02f923c 00000000 c031bba0
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.326699] 7f40: c1504dc8 dc788480 00000003 00000000 dc788480 bed0d558 d2027fa4 d2027f68
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.334916] 7f60: c02f96a4 c02f9394 00000003 00000000 d2027fa4 77533b88 c030e758 b6f30620
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.343133] 7f80: b6f30000 00000041 00000004 c01090e4 d2026000 00000000 00000000 d2027fa8
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.351351] 7fa0: c0108f00 c02f9654 b6f30620 b6f30000 00000003 bed0d558 00000004 b6f3061c
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.359568] 7fc0: b6f30620 b6f30000 00000041 00000004 00000000 00000000 004fd000 00000000
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.367785] 7fe0: 00000000 bed0d554 b6ef2363 b6ed13b6 200d0030 00000003 00000000 00000000
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.446978] Code: e5980000 e6ffa07e eb049325 e5985028 (e1d570b0)
Segmentation fault
Thoughts or additional troubleshooting suggestions appreciated!
Thanks,
I'm working on a BeagleBone Blue running the latest image (2018-10-7) suggested in the Strawson online manual, flashed to onboard storage.
I've started getting frequent crashes working in python, controlling dc motors. A typical crash output is included below.
I can reproduce the issue reliably with steps like:
Most of the time, it crashes with a segmentation fault in Python. Sometimes it will exhibit other erratic behavior, like move one motor but not the other, or run at 100% duty cycle when 20% was specified. Sometimes, it runs fine. It looks like something isn't getting properly cleaned up.
I was also able to duplicate the issue as follows, outside of the cloud9 IDE:
Console output:
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.114586] Internal error: : 1028 [#1] PREEMPT SMP ARM
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.233418] Process rc_test_motors (pid: 1884, stack limit = 0xd2026218)
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.240148] Stack: (0xd2027e18 to 0xd2028000)
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.244526] 7e00: 00000001 00000320
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.252745] 7e20: 00001f40 d2027e7c db422900 c081df48 db422920 00001f40 00000000 dc6ce910
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.260962] 7e40: d2027e74 d2027e50 c081b72c c081df54 c1504dc8 00000000 dc60c994 db422900
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.269180] 7e60: 00000004 dc568b80 d2027eb4 d2027e78 c081be7c c081b618 00001f40 00009c40
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.277396] 7e80: 00001f40 00000000 00000001 77533b88 00000004 c081be00 dc6ce900 00000003
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.285613] 7ea0: 00000000 d2027f68 d2027ecc d2027eb8 c092f108 c081be0c c092f0e0 dc6ce900
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.293830] 7ec0: d2027ee4 d2027ed0 c03855c4 c092f0ec 00000004 dc6ce900 d2027f1c d2027ee8
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.302048] 7ee0: c0384c10 c0385580 00000003 00000000 db5fa988 c0384b18 dc788480 bed0d558
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.310265] 7f00: d2027f68 00000000 bed0d558 00000004 d2027f34 d2027f20 c02f9258 c0384b24
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.318482] 7f20: 00000004 dc788480 d2027f64 d2027f38 c02f943c c02f923c 00000000 c031bba0
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.326699] 7f40: c1504dc8 dc788480 00000003 00000000 dc788480 bed0d558 d2027fa4 d2027f68
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.334916] 7f60: c02f96a4 c02f9394 00000003 00000000 d2027fa4 77533b88 c030e758 b6f30620
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.343133] 7f80: b6f30000 00000041 00000004 c01090e4 d2026000 00000000 00000000 d2027fa8
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.351351] 7fa0: c0108f00 c02f9654 b6f30620 b6f30000 00000003 bed0d558 00000004 b6f3061c
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.359568] 7fc0: b6f30620 b6f30000 00000041 00000004 00000000 00000000 004fd000 00000000
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.367785] 7fe0: 00000000 bed0d554 b6ef2363 b6ed13b6 200d0030 00000003 00000000 00000000
Message from syslogd@beaglebone at Oct 18 19:38:42 ...
kernel:[ 222.446978] Code: e5980000 e6ffa07e eb049325 e5985028 (e1d570b0)
Segmentation fault
Thoughts or additional troubleshooting suggestions appreciated!
Thanks,