I tried chip-tool onoff on 8888 1 --allow-large-payload true, it tries to establish TCP connection, but the stack called a fatal error handler which stops execution because continuing could corrupt state.
Commissioner Log
[1723844507.478] [615:617][DIS] Checking node lookup status for 85B54CECAA338E8B-00000000000022B8 after 5 ms
[1723844507.478] [615:617] [DIS] Keeping DNSSD lookup active [1723844507.556] [615:617] [DIS] UDP:[fe80::c295:daff:fe01:52ef%mlan0]:5540: new best score: 7 (for 85B54CECAA338E8B-00000000000022B8)
[1723844507.556] [615:617] [DIS] Lookup clearing interface for non LL address [1723844507.556] [615:617] [DIS] UDP:192.168.0.101%mlan0:5540: new best score: 2 (for 85B54CECAA338E8B-00000000000022B8)
[1723844507.556] [615:617] [DIS] Checking node lookup status for 85B54CECAA338E8B-00000000000022B8 after 83 ms [1723844507.556] [615:617] [DIS] Keeping DNSSD lookup active
[1723844507.673] [615:617] [DIS] Checking node lookup status for 85B54CECAA338E8B-00000000000022B8 after 200 ms
[1723844507.673] [615:617] [DIS] OperationalSessionSetup[1:00000000000022B8]: Updating device address to UDP:[fe80::c295:daff:fe01:52ef%mlan0]:5540 while in state 2
[1723844507.673] [615:617] [DIS] OperationalSessionSetup[1:00000000000022B8]: State change 2 --> 3
[1723844507.673] [615:617] [IN] SecureSession[0xffff9c00ba10]: Allocated Type:2 LSID:16675
[1723844507.673] [615:617] [SC] Initiating session on local FabricIndex 1 from 0x000000000001B669 -> 0x00000000000022B8
[1723844507.673] [615:617] [IN] Connecting over TCP with peer at TCP:[fe80::c295:daff:fe01:52ef%mlan0]:5540.
[1723844507.674] [615:617] [IN] Connecting to peer TCP:[fe80::c295:daff:fe01:52ef%mlan0]:5540. [1723844507.676] [615:617] [DIS] OperationalSessionSetup[1:00000000000022B8]: State change 3 --> 4 [1723844507.678] [615:617] [IN] Connection established successfully with TCP:[fe80::c295:daff:fe01:52ef%mlan0]:5540.
[1723844507.678] [615:617] [SC] TCP Connection established with TCP:[fe80::c295:daff:fe01:52ef%mlan0]:5540 before session establishment [1723844507.680] [615:617] [EM] <<< [E:16429i S:0 M:143072787] (U) Msg TX from C6EDEE73A3CE4107 to 0:0000000000000000 [0000] [TCP:[fe80::c295:daff:fe01:52ef%mlan0]:5540] --- Type 0000:30 (SecureChannel:CASE_Sigma1) (B:196)
[1723844507.680] [615:617] [SC] Sent Sigma1 msg to <00000000000022B8, 1> [II:500ms AI:300ms AT:4000ms]
Commissionee Log
[52693] [ERR] [DL] Chip stack locking error at 'src/inet/InetLayer.h:82'. Code is unsafe/racy
[52702] [ERR] [-] chipDie chipDie chipDie
It appears that the Chip stack locking error occurs because NewEndPoint() is called without proper thread-safe locking (assertChipStackLockedByCurrentThread() fails),
Is there a way to force a TCP connection directly from the chip-tool pairing command, similar to how chip-tool onoff … --allow-large-payload true establishes TCP for cluster commands?