jonlamb-gh / home-phone

1 stars 0 forks source link

Figure out the broken CAS issue with the log globals #22

Closed jonlamb-gh closed 4 years ago

jonlamb-gh commented 4 years ago

In my setup, something is broken around intrinsic/atomic CAS, seen when using a global for the log crate: https://github.com/jonlamb-gh/log/blob/broken-cas/src/lib.rs#L1295

jonlamb-gh commented 4 years ago

Using log::set_logger_racy() for the time being.

jonlamb-gh commented 4 years ago

Running debug build of eth test produces an alignment fault, but the release build works.

## Starting application at 0x00100000 ...
[INFO] running 1 tests
[INFO] test <no_name> ...
[TRACE] tcp_send_recv
[TRACE] [0]: adding
[TRACE] [1]: adding
[DEBUG] Listening
"Synchronous Abort" handler, esr 0x96000021
elr: ffffffffc4e7211c lr : ffffffffc4e72114 (reloc)
elr: 000000000015a11c lr : 000000000015a114
x0 : 00000000000a5994 x1 : 00000000000a599b
x2 : 0000000000000005 x3 : 0000000000125390
x4 : 0000000000000000 x5 : 0000000000000000
x6 : 0000000000000000 x7 : 000000000000000f
x8 : 00000000000004d2 x9 : 0000000000000000
x10: 00000000000a599a x11: 0000000000000000
x12: 0000000000000000 x13: 0000000000000000
x14: 0000000000000000 x15: 0000000000000000
x16: 00000000000a595c x17: 0000000000000000
x18: 00000000000a5a24 x19: 000000003af75dc8
x20: 0000000000000002 x21: 0000000000100000
x22: 000000003af75dc0 x23: 0000000000000002
x24: 000000003b3d4c68 x25: 0000000000000000
x26: 0000000000000000 x27: 0000000000000000
x28: 000000003af75e20 x29: 000000003af58490
jonlamb-gh commented 4 years ago

Not using the rpi4 for the time being.