Here's the error when the wpantund crashed:
ot-ncp-ftd: /home/engkan2kit/openthread/examples/../src/core/common/message.cpp:562: int ot::Message::Write(uint16_t, uint16_t, const void*): Assertion `aOffset + aLength <= GetLength()' failed.
wpantund[3076]: [-NCP-]: Socket error on read: Input/output error 5
wpantund[3076]: NCPInstance: errno 5 "Input/output error"
wpantund[3076]: Cleaning up. (gRet = 9)
wpantund[3076]: Stopped.
Here's what I did to produce the error:
1. Run two ot-cli-ftd
2. on each CLI, run ifconfig up
3. Run run wpantund with the NCP
4. Set the masterkey, networkname, extpanid, panid, channel using wpanctl for the ncp.
5. enable commissioner using wpanctl.
6. add AABBAABB as passphrase in commissioner
7. let 1 cli join using AABBAABB
8. add ABCD1234 as passphrase in commissioner
9. let 1 cli join but using the passphrase in step 6 (ie. AABBAABB)
10. This will result to a fail to join.
11. Re-add the AABBAABB passphrase in wpanctl.
12. let the cli who failed joining, joiner AABBAABB.
Then it crashes.